[Ipopt] How to simplify console output?

Stefan Vigerske svigerske at gams.com
Tue Dec 17 03:21:40 EST 2019


Hi,

some of this should go away if you set print_level to a value below 5.
Maybe check whether Ipopt indeed made use you your option setting. You 
created an ipopt.opt file with line "print_level 0" ?
Add "print_user_options yes" 
(https://coin-or.github.io/Ipopt/OPTIONS.html#OPT_Output) to let Ipopt 
tell you what options have changed.

Stefan

On 12/13/19 2:43 PM, yinchong2018 at hnu.edu.cn wrote:
> Hello!
> 
>   
> 
> I meet a problem.
> 
> When the value of print_level option is changed, the console output don't
> change and the console output is always displaying these information as
> shown below.
> 
> I don't need so much information and I want to simplify the console output.
> How should I do to simplify the output?
> 
> Waiting for reply. Thanks!
> 
> (The Ipopt version is 3.12.13. The operating system is ubuntu 16.04. The
> compiler is Cmake.)
> 
>   
> 
>   
> 
>   
> 
> This is Ipopt version 3.12.13, running with linear solver ma27.
> 
>   
> 
> Number of nonzeros in equality constraint Jacobian...:      264
> 
> Number of nonzeros in inequality constraint Jacobian.:       57
> 
> Number of nonzeros in Lagrangian Hessian.............:      176
> 
>   
> 
> Total number of variables............................:      119
> 
>                       variables with only lower bounds:        0
> 
>                  variables with lower and upper bounds:      119
> 
>                       variables with only upper bounds:        0
> 
> Total number of equality constraints.................:       90
> 
> Total number of inequality constraints...............:       29
> 
>          inequality constraints with only lower bounds:        0
> 
>     inequality constraints with lower and upper bounds:       29
> 
>          inequality constraints with only upper bounds:        0
> 
>   
> 
> iter    objective    inf_pr   inf_du lg(mu)  ||d||  lg(rg) alpha_du alpha_pr
> ls
> 
>     0  4.2243692e+00 1.27e-01 5.49e+00  -1.0 0.00e+00    -  0.00e+00 0.00e+00
> 0
> 
>     1  3.6070881e+00 1.56e-02 7.98e+00  -1.0 2.59e-01    -  8.18e-01
> 5.22e-01f  1
> 
>     2  3.6313198e+00 6.56e-03 1.29e+01  -1.0 1.71e-01    -  2.84e-01
> 7.64e-01f  1
> 
>     3  3.4442256e+00 2.02e-05 4.28e-01  -1.0 3.78e-02    -  1.00e+00
> 9.13e-01f  1
> 
>     4  3.1474121e+00 4.50e-04 7.53e-02  -1.7 7.83e-02    -  1.00e+00
> 1.00e+00f  1
> 
>     5  3.0226628e+00 1.30e-04 1.45e-02  -2.5 4.58e-02    -  1.00e+00
> 1.00e+00f  1
> 
>     6  2.9910397e+00 6.05e-06 3.47e-02  -3.8 1.74e-02    -  9.73e-01
> 1.00e+00h  1
> 
>     7  2.9868414e+00 3.89e-07 8.39e-06  -3.8 3.89e-03    -  1.00e+00
> 1.00e+00h  1
> 
>     8  2.9859754e+00 2.52e-08 3.10e-06  -5.7 9.64e-04    -  1.00e+00
> 1.00e+00h  1
> 
>     9  2.9859646e+00 5.67e-11 3.40e-10  -5.7 3.41e-05    -  1.00e+00
> 1.00e+00h  1
> 
> iter    objective    inf_pr   inf_du lg(mu)  ||d||  lg(rg) alpha_du alpha_pr
> ls
> 
>    10  2.9859573e+00 9.95e-13 2.47e-10  -8.0 6.75e-06    -  1.00e+00
> 1.00e+00h  1
> 
>   
> 
> Number of Iterations....: 10
> 
>   
> 
>                                    (scaled)                 (unscaled)
> 
> Objective...............:   2.9859572506327767e+00    2.9859572506327767e+00
> 
> Dual infeasibility......:   2.4664886099187399e-10    2.4664886099187399e-10
> 
> Constraint violation....:   9.9537045272768410e-13    9.9537045272768410e-13
> 
> Complementarity.........:   9.8663282382279097e-09    9.8663282382279097e-09
> 
> Overall NLP error.......:   9.8663282382279097e-09    9.8663282382279097e-09
> 
>   
> 
> Number of objective function evaluations             = 11
> 
> Number of objective gradient evaluations             = 11
> 
> Number of equality constraint evaluations            = 11
> 
> Number of inequality constraint evaluations          = 11
> 
> Number of equality constraint Jacobian evaluations   = 11
> 
> Number of inequality constraint Jacobian evaluations = 11
> 
> Number of Lagrangian Hessian evaluations             = 10
> 
> Total CPU secs in IPOPT (w/o function evaluations)   =      0.001
> 
> Total CPU secs in NLP function evaluations           =      0.000
> 
>   
> 
> EXIT: Optimal Solution Found.
> 
>   
> 
>   
> 
>   
> 
>   
> 
>   
> 
> 
> 
> _______________________________________________
> Ipopt mailing list
> Ipopt at list.coin-or.org
> https://list.coin-or.org/mailman/listinfo/ipopt
> 



More information about the Ipopt mailing list