How to silence the Gurobi 7.5 academic license notification

3,297 views
Skip to first unread message

Wang Site

unread,
Aug 10, 2017, 2:16:10 AM8/10/17
to Gurobi Optimization
Hi, does anyone know how to silence the Gurobi 7.5 log of "Academic License - for non-commercial use only". I designed an algorithm that requires Gurobi solve multiple times and the logs are really messing up my stdout for readability, especially when debugging.

Daniel Espinoza

unread,
Aug 10, 2017, 8:38:52 AM8/10/17
to Gurobi Optimization
Hi Wang,

AFAIK there is no way to turn off that message.

Best,
Daniel

Eric Berger

unread,
Aug 11, 2017, 2:55:32 PM8/11/17
to gur...@googlegroups.com
You wrote that your logs are going to stdout. On a linux system you can filter the output via grep or egrep. For example

$ myprogram | egrep -v "Academic License"

or 

$ myprogram | egrep -v "Academic License"  > mylogfile

or

$ myprogram | egrep -v "string1" | egrep -v "string2"

or, more compactly

$ myprogram | egrep -v "string1|string2" 

My examples use strings but egrep takes regular expressions. Also the "-v" option excludes the lines with the specified expressions. Without the "-v" option you get only those lines that contain the specified expressions.

I hope that helps.

Eric




--

---
You received this message because you are subscribed to the Google Groups "Gurobi Optimization" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gurobi+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gleb Belov

unread,
Dec 10, 2017, 11:16:54 PM12/10/17
to Gurobi Optimization
I have a bit weaker feature request. MiniZinc accepts a solver's solution output on stdout, while logs can be printed on stderr. To show Gurobi's log, I redirect it to stderr via the message callback. But the license message goes to stdout because the message callback can only be setup after model creation. Please add an option to print it on stderr, or how is it possible?

ie.furk...@gmail.com

unread,
Jan 22, 2019, 7:43:06 AM1/22/19
to Gurobi Optimization
Hi Wang, 

Were you able to find an answer to your question? 

Best,
Furkan

Tobias Achterberg

unread,
Jan 22, 2019, 10:56:18 AM1/22/19
to gur...@googlegroups.com
This message should only appear when you create a Gurobi environment. Are you
creating and destroying environments over and over? Why don't you just keep the
environment open and just create and destroy Gurobi models inside this
environment? This would also be more efficient, because creating the environment
means to read the license file and to check whether the license is valid. This
has some overhead.

Regards,

Tobias

Furkan Sezer

unread,
Jan 22, 2019, 1:23:21 PM1/22/19
to gur...@googlegroups.com
Thank you very much Tobias!

Best,
Furkan

--

---
You received this message because you are subscribed to the Google Groups "Gurobi Optimization" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gurobi+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages