why I can't work with the optimization Toolbox?

조회 수: 43 (최근 30일)
Negin Rahmati
Negin Rahmati 2022년 5월 27일
댓글: Negin Rahmati 2022년 5월 28일
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일
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
Walter Roberson
Walter Roberson 2022년 5월 28일
Ask your university to provide the license
Negin Rahmati
Negin Rahmati 2022년 5월 28일
Thanks

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

추가 답변 (0개)

카테고리

Help CenterFile 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!

Translated by