Optimization toolbox installed, but MATLAB says it has been removed

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)

The Optimization Tool interface (optimtool) was removed in release R2021a. The Optimization Toolbox has not been removed.
Instead of the old Optimization Tool, use the Optimize Live Task.

7 Comments

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 To do that, I pressed "Optimization" button under the Apps, and then I got the error message....
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.
That has been already done, that button doesn't give any functional Optimization Toolbox.
You've opened the Editor not the Live Editor. Create a new Live Script not a new Script.

Sign in to comment.

Categories

Products

Release

R2024a

Asked:

on 8 Apr 2024

Commented:

on 9 Apr 2024

Community Treasure Hunt

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

Start Hunting!