Effacer les filtres
Effacer les filtres

optimization problem exceeding high limit

1 vue (au cours des 30 derniers jours)
Faten Bd
Faten Bd le 9 Avr 2020
rtx=2;
objective= @(a) a;
options=optimoptions('fmincon', 'Display','iter','MaxFunctionEvaluations',30000);
a0=0.8;
A = [];
b = [];
Aeq = [];
beq = [];
lb=0.5;
ub=1;
nonlincon=@nl2 ;
a=fmincon(objective,a0,A,b,Aeq,beq,lb,ub,nonlincon,options)
fmincon stopped because it exceeded the function evaluation limit,
options.MaxFunctionEvaluations = 3.000000e+04.
i have the following optimization probelm and the result is as follows. i tried to inrease the MaxFunctionEvaluation and decrease StepTolerance but it always exceed the limit. Any ideas how to fix such problem to obtain an optimal value?

Réponses (1)

Chidvi Modala
Chidvi Modala le 15 Avr 2020
As nl2 function definition is not known I am unable to reproduce the error. With the provided information, Setting lower bond equal to upper bound might be causing the error.
If you set a lower bound equal to an upper bound, iterations can violate constraints. You can refer to this

Catégories

En savoir plus sur Get Started with Optimization Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by