fmincon optimization not responding to options settings

1 visualización (últimos 30 días)
Roel
Roel el 7 de Nov. de 2017
Comentada: Alan Weiss el 13 de Nov. de 2017
I am performing an optimization where every objective function evaluation involves a time-consuming algorithm. To see whether things are working properly, I thought I'd set the 'MaxFunctionEvaluations' option to a low value. But it seems the optimization is not responding to whatever options I set whatsoever.
My options and fmincon call are:
options = optimoptions('fmincon','Display','iter','Algorithm','sqp','MaxFunctionEvaluations',4,'StepTolerance',1e-2); % 4 eval for tests
[x, fval, exitflag, output, lambda] = fmincon(@(x)this.jumphigh_obj(x),x0,A,b,Aeq,beq,lb,ub,@(x)this.jumpcon(x),options);
I feel like I am missing something basic. I appreciate any help.

Respuesta aceptada

Alan Weiss
Alan Weiss el 7 de Nov. de 2017
It is possible that you have more than 4 dimensions in the problem. No matter what you set for MaxFunctionEvaluations, fmincon will take at least N + 1 function evaluations in order to estimate a gradient, where N is the number of problem variables.
Alan Weiss
MATLAB mathematical toolbox documentation
  6 comentarios
Roel
Roel el 13 de Nov. de 2017
Thanks, I have drastically downscaled my number of variables and it works now. A small change in a variable yielded no change in the outcome of the objective function. With less variables actual iterations occur.
Alan Weiss
Alan Weiss el 13 de Nov. de 2017
Thanks for letting us know what happened. You might be interested in this documentation (I guess now that you are optimizing a simulation, but I was not aware of that before).
Alan Weiss
MATLAB mathematical toolbox documentation

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Solver Outputs and Iterative Display en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by