[Coin-ipopt] Ipopt C++ 3.0.0 print_level options

Carl Damon Laird claird at andrew.cmu.edu
Tue Dec 6 16:06:30 EST 2005


There is a workaround for this issue.

The Journalist class has a method to retrieve its various journals. Check 
IpJournalist.hpp in the Common directory.

One you retrieve the appropriate journal (I believe it is called 
"console") you can change its print level. The code you would insert into 
main would look something like this.

SmartPtr<Journal> console_jrnl = app->Jnlst()->GetJournal("console");
assert(IsValid(console_jrnl));
console_jrnl->SetAllPrintLevels(J_NONE);


Hope this helps,

Carl.

On Tue, 6 Dec 2005, Andreas Waechter wrote:

> Hi Wei,
>
> You are right, there is a problem setting the print_level using the
> Options() method on the IpoptApplication - this is one of the things we
> will have to clean up in the new release.
>
> The easiest solution is if you would just create a file called PARAMS.DAT
> (this is one of the ways you can set options in Ipopt).  In that file
> include the line
>
> print_level 0
>
> This should work and switch off the output, if you put that PARAMS.DAT
> file into the directory where you execute your program.  On the long run
> this is not nice, but we hope to fix that soon.
>
> Regards,
>
> Andreas
>
> On Tue, 6 Dec 2005, Xie Wei wrote:
>
>> Hi, Andreas:
>>
>> I am incorporating Ipopt in a branch-and-bound framework and wish to
>> suppress any output to the screen from IPOPT, so as not to mess up with the
>> iteration info from the branch-and-bound. Now, the question is that: what
>> option should I use? I check the manual of C++, and it suggests me to set
>> print_level to 0. However, even after doing so, the code still has a lot of
>> printouts, namely, problem statistics, iterational information, and post
>> solution statistics. I am wondering if IPOPT provides any convenient way, or
>> I have to hack the source code.
>>
>> Thanks,
>>
>> Wei
>>
>
> _______________________________________________
> Coin-ipopt mailing list
> Coin-ipopt at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/coin-ipopt
>
>



More information about the Coin-ipopt mailing list