The CheckGradients
option in
optimoptions
will be removed in a future release. With
appropriate code changes, use the checkGradients
function
instead.
For additional information, see checkGradients
.
Update existing code to use checkGradients
instead. For
example:
Old | New |
---|---|
opts = optimoptions("fmincon",SpecifiObjectiveGradient=true,...
|
tf = checkGradients(fun, x0);
|