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)
Best Answer