Closed salomonl closed 2 years ago
The initial solution is used to set the initial mean of the sample distribution. It is not evaluated (often/usually the real-world user already has evaluated this solution anyways, hence to evaluate it first seems a little strange) and its f-value is anyway not used to proceed. The default way to emphasize the importance of the initial solution is to choose a smaller value for the initial sigma.
In the above example already in the third iteration, all new solutions are better than the initial solution.
A rather non-standard way to "respect" the initial solution would be to set the 'CMA_elitist'
option to "initial"
:
cma.CMAOptions('elit')
{'CMA_elitist': 'False #v or "initial" or True, elitism likely impairs global search performance'}
Ok I did not understand the meaning of x0
. Thank you for your quick answer.
I thank you for the development of this open-source solver.
I had a problem, for which the decision space is quite small. To guide the search, I gave a feasible point x0 to the solver, but it does not seem to take it into account.
Here is a following example, taken from the notebook:
On my machine (mac os), I obtain the following:
Note that the problem is not related to constrained optimization, I get the same behavior when using
cma
on an unconstrained problem. Here is the following example, taken from a notebook.Here is what I get (mac os):
Do you know how to force the use of the point
x0
?