Suppress linprog 'Optimal solution found' message.

10 ビュー (過去 30 日間)
Philip Geßner
Philip Geßner 2016 年 5 月 17 日
回答済み: Xinlei Wang 2017 年 5 月 4 日
Hi,
whatever I try, linprog always displays 'Optimal solution found'. As I'm running a rather large for loop this message is extremely annoying. I've already searched for solutions but the display options 'off' and 'none' don't change anything.
options = optimoptions('linprog','Algorithm','dual-simplex','Display','none','OptimalityTolerance',1.0000e-07);
[s,Z,exitflag,output,lambda] = linprog(v,A_ineq,b_ineq,A_eq,b_eq,lb,[],[],options);
This is the way I call linprog in MATLAB 2016a.
Thanks in advance, Philip

採用された回答

Alan Weiss
Alan Weiss 2016 年 5 月 17 日
I cannot reproduce your problem. Using your code (with my own variables) I do not get the exit message when using the stated options.
I suggest that you double-check your options just before calling linprog.
Alan Weiss
MATLAB mathematical toolbox documentation
  1 件のコメント
Philip Geßner
Philip Geßner 2016 年 5 月 20 日
Somehow my own code seemed to work after restarting Matlab and disabling Owncloud which was producing .coflict files all the time.... Thanks for your answer !

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

その他の回答 (1 件)

Xinlei Wang
Xinlei Wang 2017 年 5 月 4 日
Hi! I think you could set the options such that the Display field is 'off'.
Do it like this:
options = optimset('linprog');
options.Display = 'off';
Hope that helps.

カテゴリ

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