-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to omit printing Ipopt header information #112
Comments
Not to my knowledge. The list of options that can be passed to Ipopt is here. You could use redirect_stdout as suggested here, but if you are distributing the code, I'm not sure of the licence implications. |
No, it's baked into the code (https://github.com/coin-or/Ipopt/blob/27f645c0ce7207fc589116c2b489df23f0196a40/Ipopt/src/Algorithm/IpIpoptAlg.cpp#L956). You can modify the source if you like. |
Wow, baked in the code, unbelievable. I would never do that to my users. Thank you for pointing to the source code where this annoying message lies. |
Actually, a bit more digging reveals there's an undocumented option to suppress this warning. |
Good catch! Works like a charm, maybe add to a FAQ? I am sure other people would feel happy about it. |
Not sure about that. It could be perceived as disregarding the authors' intentions. I'd first want to see a discussion of this on the Ipopt mailing list. |
Just to follow up: this came up in a discussion I had with Andreas. He intentionally made the option obscure and undocumented. We won't be adding this to the FAQ, or advertising it too widely. |
This is not necessarily a smart move. You will just get more annoying issues asking for this feature. |
@juliohm Could you clarify what you mean? Respecting the intentions of the author of Ipopt is not a smart move? |
I mean that many people will open issues here in the future asking for such an option. And that it is more work on your side to repeat it over and over the same answer. Alternatively, a better option in my view, is to be explicit about the author's license, given them credit in many places in the README, the docs, etc; contact the author of Ipopt, ask if he agrees that printing messages in the console can be annoying for users that do not need interactivity, but just run optimization in a batch. |
Andreas is the author of Ipopt. |
And he prefers to enforce the message on users? Ok then. |
Even though I've been using
IpoptSolver(print_level=0)
, I still get this header printed on the first run:Is there any way to omit this information?
The text was updated successfully, but these errors were encountered: