why I can't work with the optimization Toolbox?

When I run this code: options = optimoptions('patternsearch');, Matlab keeps displaying the error below:
'optimoptions' requires Optimization Toolbox.
I use my university lisence and I don't have access to any account related to it but when I check Add-ons or type ver it shows that both Global optimization toolbox (Version 4.4 ) and optimization toolbox (Version 9) are installed. (Matlab is version R2020b)
I don't know how to fix this problem. I would be grateful if you could help me out with it.

 採用された回答

Jan
Jan 2022 年 5 月 27 日

0 投票

ver tells you, if the toolbox is installed. This shows, if you have an active license for this toolbox:
license('test', 'Optimization_Toolbox')
If this replies 0, try:
[status, msg] = license('checkout', 'Optimization_Toolbox')

3 件のコメント

Negin Rahmati
Negin Rahmati 2022 年 5 月 28 日
編集済み: Negin Rahmati 2022 年 5 月 28 日
Thank you for you help.
it displays:
'License checkout failed.
License Manager Error -5
Cannot find a license for Optimization_Toolbox.
Troubleshoot this issue by visiting:
https://www.mathworks.com/support/lme/R2020b/5
Diagnostic Information:
Feature: Optimization_Toolbox
License path: C:\Users\rahmatna\AppData\Roaming\MathWorks\MATLAB\R2020b_licenses;C:\Program Files\MATLAB\R2020b\licenses\license.dat;C:\Program Files\MATLAB\R2020b\licenses\network.lic
Licensing error: -5,147.'
So although it shows that this toolbox is installed, I can't use it.
what can I do now?
Thank you again
Walter Roberson
Walter Roberson 2022 年 5 月 28 日
Ask your university to provide the license
Negin Rahmati
Negin Rahmati 2022 年 5 月 28 日
Thanks

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

その他の回答 (0 件)

カテゴリ

質問済み:

2022 年 5 月 27 日

コメント済み:

2022 年 5 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by