문제

I want to hide messages like

CPLEX 12.5.1.0: integer infeasible.
319 MIP simplex iterations
0 branch-and-bound nodes
No basis.

I don't mind hiding successful messages or not, but I don't want unsuccessful messages.

I have tried

  • option cplex_options 'wantsol=8';
  • option cplex_options 'logfile=rubbishFile.txt';
  • option cplex_options 'tunedisplay=0';
  • option cplex_options 'incompat=0';

But don't work.

도움이 되었습니까?

해결책

I suspect that those lines are actually printed by the AMPL environment. Depending on what you want, please try these after suppressing all output from CPLEX:

  • option cplex_options 'outlev=0'; (this should quiet CPLEX) and

  • option solver_msg 0; or

  • solve >rubbishFile.txt;

Hope this helps.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top