How to enable Gurobi Log Output to LogFile but not on console.

2,150 views
Skip to first unread message

Amit Gurung

unread,
Feb 19, 2015, 6:52:03 AM2/19/15
to gur...@googlegroups.com
How to send the Gurobi generated output logs only to LogFile and not on the console?
I am doing the following:

Env *env = new GRBEnv("/home/myname/GurobiLogFile.log");        to create the environment variable and then

model = new GRBModel(*env);
model->getEnv().set(GRB_IntParam_OutputFlag, 0); 

but the problem to this approach is if i set the parameter GRB_IntParam_OutputFlag to value 1, then the output is generated both on the "GurobiLogFile.log" as well as on the console, and if the value is set to 0, output get disabled from either sides.

My requirement is that i want to see the output only on the  "GurobiLogFile.log" but not on my console.

Can Anybody help me out on this issue.

Thanks in advance.

Sonja Mars

unread,
Feb 19, 2015, 7:06:07 AM2/19/15
to gur...@googlegroups.com
Hi,

Take a look at the parameter LogToConsole:
http://www.gurobi.com/documentation/6.0/reference-manual/logtoconsole#parameter:LogToConsole

Best regards,
Sonja

-----------------------------------------------------------------
Dr. Sonja Mars
Gurobi Optimization

Amit Gurung

unread,
Feb 19, 2015, 7:23:30 AM2/19/15
to gur...@googlegroups.com
Dear Dr Sonja,

Thank you for such a quick response.

Now here is my LogFile generated to solve only 100 linear programs but my requirement is to solve thousands or even lakhs of such linear programs, Now my question is why Gurobi slower than GLPK in solving these LP problems.

Can you please through some light on this.
GurobiOutput.log
Reply all
Reply to author
Forward
0 new messages