필터 지우기
필터 지우기

Why doesn't my installation include the option "SpecifyCo​nstraintGr​adient" for the solver fmincon?

조회 수: 1 (최근 30일)
I am trying to fit a function with nonlinear inequality constraints, for which I will also provide the gradient. Following the example "Nonlinear Constraints - Including Gradients in Constraint Functions" , I am attempting to set options for the optimizer (fmincon) but am running into the following error:
options = optimoptions(@fmincon,'SpecifyConstraintGradient',true);
Error using optimoptions (line 105)
'SpecifyConstraintGradient' is not an option for FMINCON.
A list of options can be found on the FMINCON documentation page.
(After several attempts, I copied and pasted this command directly from the example, with the same result, and I have ensured that the algorithm is not "trust-region-reflective".)
I do have the global optimization toolbox, verified with 'ver' at the commandline. However, I also noticed that the help documentation for this toolbox is missing from the default location (the only two "...MATLAB_R2015b.app/help/toolbox/" directories that I see are 'coder' and 'stats').
Are these problems related, and if so, is there a way to fix it without reinstallation of Matlab?
If they are not related, how can I set the optimizer to use the supplied gradients?
I am running Matlab 2015b on MacOSX El Capitan, and intend to run the same routine with minimal changes on a machine running Scientific Linux and Matlab 2013a.
Many thanks, D. H. S.

채택된 답변

Steven Lord
Steven Lord 2016년 10월 31일
Many of the options were renamed in release R2016a, as indicated by the first item in the Release Notes for that release of Optimization Toolbox. See the "Current and Legacy Option Name Tables" in that item for the equivalent names you should use in your release.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Surrogate Optimization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by