jump-dev / CPLEX.jl

A Julia interface to the CPLEX solver
https://www.ibm.com/products/ilog-cplex-optimization-studio
MIT License
134 stars 63 forks source link

Add example of using CPLEX C attrs (silence output) #404

Closed PiotrZakrzewski closed 2 years ago

PiotrZakrzewski commented 2 years ago

It took me a while to find out how to silence output from CPLEX (useful if you use it as part of a script/application and not interactively) so i thought maybe it could be handy to add it in the README.md, plus it is a nice example to help people understand how to set attributes in general.

I hope it helps.

cheers Piotr Zakrzewski

odow commented 2 years ago

Options are covered here: https://github.com/jump-dev/CPLEX.jl#use-with-jump. Is that not sufficient?

odow commented 2 years ago

If you're using JuMP, you can also call set_silent(model): https://jump.dev/JuMP.jl/stable/manual/models/#Turn-off-output

PiotrZakrzewski commented 2 years ago

If you're using JuMP, you can also call set_silent(model): https://jump.dev/JuMP.jl/stable/manual/models/#Turn-off-output

this is briliant! Pity I didn't find it earlier. Thanks, I will close this PR.