Optimization toolbox installed, but MATLAB says it has been removed
Show older comments
I installed MATLAB ra2024, and before on rb2023 I had Optimization toolbox well working. Nevertheless, when trying to run it in MATLAB ra2024 I get:


So what can I do to run it?
When I chose the recommened solution, I get a mlx file with a bunch of stuff that I haven't written. Then trying to insert the code
options = optimoptions('fminunc', 'SpecifyObjectiveGradient', true, ...
'Display', 'iter','Algorithm','quasi-newton');
k = fminunc(@enzymeGeneral,k0,options);
Nothing happens, like the Optimization Toolbox does not even exist.
Any help welcome.
Thanks
Answers (1)
Steven Lord
on 8 Apr 2024
0 votes
The Optimization Tool interface (optimtool) was removed in release R2021a. The Optimization Toolbox has not been removed.
7 Comments
Sergio
on 8 Apr 2024
Steven Lord
on 8 Apr 2024
Yes, that's the Add-On Explorer entry for the toolbox. The Optimization Tool (optimtool) used to be part of the toolbox, but as I said that particular part of the toolbox was removed in release R2021a. The Optimize Live Task is now part of the toolbox and you should use it in a similar way to how you used to use optimtool.
Steven Lord
on 8 Apr 2024
Click on one of the two buttons in that dialog box to open up an example that shows how to use the Live Task for solving a problem using one of the two approaches.
If you want to include the Optimize Live Task in your own code, open up a Live Script (using the New Live Script button on the Home tab of the Toolstrip) and make the Live Script the active document in the Editor. Next, select the Insert tab of the Toolstrip. Finally on that tab select to insert a Task and scroll down the list to Optimize.
Sergio
on 8 Apr 2024
Steven Lord
on 8 Apr 2024
Sergio
on 9 Apr 2024
Categories
Find more on Get Started with Optimization Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

