Hi,
Does the function fmincon requie the optimization toolbox for it to run or does it invoke the toolbox at any time while running it? I have an optimization code in MATLAB 2017b that uses fmincon function; I need to run this code through a third party software so I wanted to make sure if I need to have the optimization toolbox installed while running the code.
Thank you.

 採用された回答

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2021 年 5 月 25 日

0 投票

Hi,
Yes, you'd need to have optim toolbox installed in order to run a code containing fmincon().
Good luck.

3 件のコメント

Prabin Adhikari
Prabin Adhikari 2021 年 5 月 25 日
Thank you. Could you tell me how do we know if it is required by looking into the fmincon() function definition?
John D'Errico
John D'Errico 2021 年 5 月 25 日
You do not have fmincon at all if you do not have the optimization toolbox. So if you can actually look at the function itself, you must have the toolbox.
If however, you have taken fmincon from some other MATLAB installation, copying fmincon over to some other system, then no, fmincon will NOT run. It REQUIRES you to have a valid license for the optimization toolbox for fmincon to run. How would you know that? MATLAB will tell you if you try to use it without a valid license.
Prabin Adhikari
Prabin Adhikari 2021 年 5 月 26 日
Thank you very much.

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品

リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by