How to change patternsearch options for paretosearch algorithm?

1 visualizzazione (ultimi 30 giorni)
I need to change the options for patternsearch like the 'MeshExpansionFactor' for the paretosearch algorithm. How can i acheive that using optimoptions.
My Code:
oldoptions = optimoptions('patternsearch', 'MeshExpansionFactor', 4.0)
options = optimoptions('paretosearch', 'ParetoSetSize', 500, oldoptions)
[x, fval, exitflag, output] = paretosearch(fun, nvars, [], [], Aeq, beq, lb, ub, [], options);
Error:
Error using optimoptions (line 108)
Invalid option name specified. Provide a character vector or scalar string (such as 'Display').
A list of options can be found on the PARETOSEARCH documentation page.
Error in optimizationn (line 19)
options = optimoptions('paretosearch', 'ParetoSetSize', 500, oldoptions)

Risposta accettata

Alan Weiss
Alan Weiss il 5 Ago 2020
Did you look in the documentation of options for paretosearch? It states clearly that MeshExpansionFactor is for patternsearch only.
Obviously, this is not your real problem, it is just your way of addressing your problem. Since the easiest way of addressing your problem is not supported, perhaps you will tell us what you are really trying to do and maybe we will have some alternate suggestions.
Alan Weiss
MATLAB mathematical toolbox documentation
  5 Commenti
Alan Weiss
Alan Weiss il 6 Ago 2020
Perhaps you would have luck giving an initial population using the InitialPoints option. I don't think that there is anything that you can do to make the iterations faster other than rewriting the solver yourself. But if you give a good initial set of points it might be possible that the algorithm will converge faster. I don't know what a good initial set of points might be, but perhaps you have some idea based on your experiments so far.
It is also possible that you can stop the iterations early using an output function and then use fgoalattain to finish the iterations, along the lines of this example (see Run fgoalattain Manually from paretosearch Solution Points).
Good luck,
Alan Weiss
MATLAB mathematical toolbox documentation
Surya Saket Dasika
Surya Saket Dasika il 6 Ago 2020
I will try the example and see how it works. Thank you.

Accedi per commentare.

Più risposte (0)

Prodotti


Release

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by