Linprog: suppress output message "Optimal solution found"

I have the same problem as in this question. No matter what I do linprog outputs the message "Optimal solution found". I use the function in a cycle of many iterations and it slows down everything considerably. I tried the solution suggested in the second answer to no avail, the original answer has solved the problem by disabling Owncloud but I don't use Owncloud. Does someone have other ideas?
Here's how I call the function:
D=linprog(ones(1,n),-I, (I-W)*I(:,l), [],[],zeros(n,1));

댓글 수: 2

Did you use optimoptions?
Do you mean this?
options = optimset('linprog');
options.Display = 'off';
I tried this

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

 채택된 답변

Stephan
Stephan 2018년 10월 13일
Hi,
try:
options = optimoptions('linprog','Display','none');
D=linprog(ones(1,n),-I, (I-W)*I(:,l), [],[],zeros(n,1),options);
I guess the reason is that you call linprog without the options. Then the Standard options are used.
Best regards
Stephan

댓글 수: 2

user438666
user438666 2018년 10월 13일
편집: user438666 2018년 10월 13일
Hi, thank you for the answer, that unfortunately did not work, it's very weird
EDIT: I didn't notice you added the argument options to the call, now it works, thank you! By the way, you're required to insert an upper bound before the options, but I had a trivial one fortunately
Thanks for sharing, it works!

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Linear Programming and Mixed-Integer Linear Programming에 대해 자세히 알아보기

태그

질문:

2018년 10월 13일

댓글:

2023년 6월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by