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
2024년 4월 8일
0 개 추천
The Optimization Tool interface (optimtool) was removed in release R2021a. The Optimization Toolbox has not been removed.
댓글 수: 7
Sergio
2024년 4월 8일
Steven Lord
2024년 4월 8일
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
2024년 4월 8일
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
2024년 4월 8일
Steven Lord
2024년 4월 8일
Sergio
2024년 4월 9일
카테고리
도움말 센터 및 File Exchange에서 Get Started with Optimization Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


