Suppress output completely

2012-09-14
2013-04-11
  • Dominique Vercammen

    Hello all, another small question:

    Is there a way to completely suppress output to the console? By setting print_level to 0, this bit of output is still displayed:

    time spent in eval_f: 0 s.
    time spent in eval_grad_f: 0 s.
    time spent in eval_g: 0 s.
    time spent in eval_jac_g: 0 s.
    time spent in eval_h: 0 s.
    time spent in callback function: 0 s.
    time spent in callback preparation: 0 s.
    

    Dominique

     
  • Joel Andersson

    Joel Andersson - 2012-09-14

    Hello, try

    nlp_solver.setOption("print_time",False)
    
     
  • Dominique Vercammen

    Thank you!

    Dominique

     
  • Ruge, Vitalij

    Ruge, Vitalij - 2012-09-20

    Hello,
    I get following output
    with

    nlp_solver.setOption("print_time",False)
    

    Number of nonzeros in equality constraint Jacobian…:    4503

    without
    Number of nonzeros in equality constraint Jacobian…:    21002

    It's only the output of the number! In both cases, program work very well.

     
  • Dominique Vercammen

    I don't get this behaviour. In both cases, i.e., with or without the option, the number of nonzeros is the same..

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks