Oriol
Oriol

Reputation: 288290

How can I hide CPLEX's output in AMPL?

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

But don't work.

Upvotes: 3

Views: 1256

Answers (1)

Ali
Ali

Reputation: 58471

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.

Upvotes: 4

Related Questions