a problem with setting fmincon options?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Abdelrahman Taha
am 16 Jan. 2020
Bearbeitet: Matt J
am 16 Jan. 2020
I am doing optimization using fmincon, and while trying to set the objective limit to (1) using this command:
options = optimoptions('fmincon','ObjectiveLimit',1.0);
i get this error:
Error using optimfcnchk (line 99)
NONLCON must be a function.
Error in fmincon (line 427)
confcn = optimfcnchk(NONLCON,'fmincon',length(varargin),funValCheck,flags.gradconst,false,true);
So, what could be casuing this problem? given that the function is working properly without setting that limit and the error is certainly caued by this above posted command.
1 Kommentar
Matt J
am 16 Jan. 2020
and the error is certainly caued by this above posted command.
No, not necessarily.
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!