Unable to set OptimOptions for Solvers in Curvefitting

1 view (last 30 days)
I have a multivariable non-linear regression code which was working fine in Matlab 2014b. Now setting the options for lsqcurvefit (or any fit) throws an error in Matlab 2020a. I am following the documentation. Does any toolbox need to be activated for this code snippet?
options = optimoptions('lsqcurvefit');
% Throws this error:
% Error using optimoptions (line 124)
% Empty keys are not allowed in this container.
  7 Comments
Ameer Hamza
Ameer Hamza on 29 Sep 2020
Glad that it worked out finally. Did you reinstall the optimization toolboxes?
hisenbug
hisenbug on 29 Sep 2020
I installed R2020b with all Optimization Toolboxes. That worked.

Sign in to comment.

Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!