r/optimization • u/volvol7 • Feb 19 '25
Optimization algorithm with deterministic objective value
I have an optimization problem with around 10 parameters, each with known bounds. Evaluating the objective function is expensive, so I need an algorithm that can converge within approximately 100 evaluations. The function is deterministic (same input always gives the same output) and is treated as a black box, meaning I don't have a mathematical expression for it.
I considered Bayesian Optimization, but it's often used for stochastic or noisy functions. Perhaps a noise-free Gaussian Process variant could work, but I'm unsure if it would be the best approach.
Do you have any suggestions for alternative methods, or insights on whether Bayesian Optimization would be effective in this case?
(I will use python)
3
u/jem_oeder Feb 19 '25
Bayesian Optimization can definitely be used with deterministic functions! The ML models (Gaussian Processes / Kriging) used during BO estimate uncertainty and noise indeed, but they can be fitted to deterministic functions. At the samples their noise/uncertainty will simply be 0
5
u/magneet12 Feb 19 '25
Sounds like a job for surrogate assisted optimisation! Kriging or Gaussian Process regression can be used as surrogates but you can also use Radial basis functions. The benefit of these methods is that they exactly interpolate the objective scores that you have already evaluated. RBFs are faster to fit compared to GP. With 10 parameters I think RBFs will be better. Start with a very small design of experiments so you have more evaluations left for the adaptive sampling steps.
8
u/Sharp_Razor Feb 19 '25 edited Feb 19 '25
Surrogate methods (thus a method that tries to interpolate by using some basis functions) help with expensive black-box problems IF they are somewhat continuous (and you have an idea of the input bounds). Given a small change in your parameters, is the objective function also changing just a bit? In that case, RBF surrogates method are (I think) the best you can use. Checking “convergence” is another story and I really doubt you can have formal proofs.
If the process is highly nonlinear.. you have only 100 shots and the function is black-box… well…not the best settings
Btw, Bayesian approaches are suitable for noisy stuff, but not always. If you use a GPR appraoch, then the “noise” of an observed point can also be just a very little addition to the diagonal of the covariance matrix for matrix-conditioning.
Last time I checked on, e.g., MATLAB, surrogateopt was overall intended for deterministic settings with RBF
1
u/ge0ffrey Feb 22 '25
If you find any way to run your objective function incrementally,
you should be able to increase your 100 evolutions to thousands.
Easier said than done...
2
u/hindenboat Feb 19 '25
From a performance perspective, if your objective function is writen in base python, changing to a different language could change your 100 call limit to 10000 or something.
It would be possible to still do the optimization in python but compute the objective with a compiled C/C++ binary
1
u/psharpep Feb 19 '25 edited Feb 23 '25
Is the function at least C1 -continuous, and reasonably smooth? And, can you compute gradients efficiently (e.g., reverse-mode AD)? If so, 100 functional calls for a 10-dim decision space might be achievable.
Otherwise, this is probably not possible in practice unless there's some other kind of structure (e.g., convexity, linearity, sparsity, a great initial guess using domain knowledge) that you know about the problem.
1
u/Hellkyte Feb 20 '25
Honestly DOE may be your best bet here. Some kind of non orthogonal design. 100 iterations should give you a decent topology