Is possible to hide qpoases iteractions log

548 views
Skip to first unread message

Vinícius Zamariola

unread,
Mar 30, 2021, 10:07:18 AM3/30/21
to CasADi
Hi. I'm using CASadi qpOASES for a predictive control simulation using Python 3.9.
The core of the solver is basicaly the following code:

S = casadi.qpsol('S', 'qpoases', qp)
S()

 Is there a way to hide the log messages of each iteraction (like text below) and use CASadi without any prints? The simulation has a lot of iteractions and printing all of them has a high computational cost...

I already tried putting "{"verbose": 0/False"} as argument in casadi.qpsol but didn't work.

Thank's 

------------------------------
####################   qpOASES  --  QP NO.   1   #####################

    Iter   |    StepLength    |       Info       |   nFX   |   nAC    
 ----------+------------------+------------------+---------+--------- 
       0   |   8.982315e-008   |   ADD CON   79   |     3   |     1   
       1   |   3.352505e-007   |   ADD CON    1   |     2   |     2   
       2   |   1.899364e-007   |   ADD CON    3   |     1   |     3   
       3   |   5.504112e-007   |   ADD CON   72   |     0   |     4   
       4   |   7.136201e-006   |   REM CON   72   |     0   |     3   
       5   |   5.074675e-001   |   REM CON    3   |     0   |     2   
       6   |   7.537555e-001   |   REM CON    1   |     0   |     1   
       7   |   8.075047e-001   |   REM CON   79   |     0   |     0   
       8   |   1.000000e+000   |    QP SOLVED     |     0   |     0   

Joris Gillis

unread,
Mar 31, 2021, 6:25:07 PM3/31/21
to CasADi
Dear Vinícius,

option "printLevel" with value "none" should do the trick..

Best regards,
  Joris
Reply all
Reply to author
Forward
0 new messages