Error in fmincon - getIpOptions not found

3 ビュー (過去 30 日間)
Samuel Schiess
Samuel Schiess 2019 年 3 月 1 日
回答済み: Sina Kian 2019 年 11 月 14 日
Good morning
I have retaken a code for an optimization of an image processing problem. I face now an error in the function "fmincon, line 811", as it says, that the function or variable "getIpOptions" is not defined.
I am using Matlab R2018a and the path to fmincon is correct (uses the same version).
The problem occurs in this part of the code:
opt = optimset('Display', 'off');
[bestT2,~,~,~,~,grad, H] = fmincon(f, bestT1, [], [], [], [], bestT1-[1.5 1.5 degtorad(15)], bestT1+[1.5 1.5 degtorad(15)], [], opt);
Thank you for some help on this problem

回答 (2 件)

Stephan
Stephan 2019 年 3 月 1 日
Hi,
use:
options = optimoptions(@fmincon,'Display','off');
Best regards
Stephan
  1 件のコメント
Samuel Schiess
Samuel Schiess 2019 年 3 月 26 日
Hi,
thanks a lot. At first, this does solve one problem (with optimset and optimoptions).
But the function getIpOptions from fmincon can still not be called, and raises the same error. It apparently has to be a problem of the Matlab version, as the code runs up til Matlab 2017a.
Thank you for some further help.

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


Sina Kian
Sina Kian 2019 年 11 月 14 日
Dear friends,
I have a code which I used in matlab 2014 and it was working properly. then I uninstal it and I instaldd 2019 now I have problem with the code. The error is :
Unrecognized function or variable 'getIpOptions'.
Error in fmincon (line 822)
options = getIpOptions(options,sizes.nVar,mEq,flags.constr,defaultopt,10,0.01);
Error in ex2 (line 25)
[RES,FVAL]=fmincon(err,X,[],[],[],[],[0 0 0 0 0],[1 1 100 10 5],[])
What should I do?
Best Regards

カテゴリ

Help Center および File ExchangeSolver Outputs and Iterative Display についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by