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

답변 (1개)

Steven Lord
Steven Lord 2024년 4월 8일

0 개 추천

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

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.
Sergio
Sergio 2024년 4월 8일
편집: Sergio 2024년 4월 8일
@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.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Get Started with Optimization Toolbox에 대해 자세히 알아보기

제품

릴리스

R2024a

질문:

2024년 4월 8일

댓글:

2024년 4월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by