Optimization toolbox installed, but MATLAB says it has been removed

51 ビュー (過去 30 日間)
Sergio
Sergio 2024 年 4 月 8 日
コメント済み: Sergio 2024 年 4 月 9 日
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 日
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 件のコメント
Steven Lord
Steven Lord 2024 年 4 月 8 日
You've opened the Editor not the Live Editor. Create a new Live Script not a new Script.
Sergio
Sergio 2024 年 4 月 9 日
@Steven Lord worked. Thanks!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGet Started with Optimization Toolbox についてさらに検索

製品


リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by