[Ipopt] redirection of stdout

Stefan Vigerske stefan at math.hu-berlin.de
Mon Mar 12 09:30:46 EDT 2018


Hi,

this shouldn't be an Ipopt issue.
If my_ipopt_program writes to stdout, then redirecting stdout to a file 
via "> run.log" does not change anything in Ipopt.

Stefan

On 03/05/2018 03:15 PM, Sean Hardesty wrote:
> I have a curious issue with Ipopt. I am running on an Ubuntu 16.04 system,
> using Ipopt 3.11.9, g++ 5.4, and linking against a bunch of other
> libraries, including UMFPACK and CGAL. If I run
> 
> my_ipopt_program
> 
> it works fine, and I get the expected output, beginning with
> 
> ******************************************************************************
> This program contains Ipopt, a library for large-scale nonlinear
> optimization.
>   Ipopt is released as open source code under the Eclipse Public License
> (EPL).
>           For more information visit http://projects.coin-or.org/Ipopt
> ******************************************************************************
> 
> This is Ipopt version 3.11.9, running with linear solver mumps.
> NOTE: Other linear solvers might be more efficient (see Ipopt
> documentation).
> 
> If my program has called
> 
> app->Options()->SetStringValue("output_file", "ipopt.out");
> 
> then it also writes the output to ipopt.out. But if I redirect stdout, or
> also stderr
> 
> my_ipopt_program > run.log
> my_ipopt_program > run.log 2>&1
> 
> then Ipopt never prints anything to run.log, or to ipopt.out.
> 
> Is this behavior expected, a bug, or a problem I have somehow caused?
> 
>      Thanks,
>      Sean Hardesty
> 
> 
> 
> _______________________________________________
> Ipopt mailing list
> Ipopt at list.coin-or.org
> https://list.coin-or.org/mailman/listinfo/ipopt
> 



More information about the Ipopt mailing list