-
How do you set the number of slack variables, and the slack variable matrices for the dense qcqp framework? I could not find functions to set Jsb, Jsg, or Jsq in "hpipm_d_dense_qcqp.h". Is the use of the slack variables not fully implemented for dense QCQP? Also, is "ns" the total number of slack variables (number of lower and upper)? Or is it half the amount? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
You can set the number of softed constraints using this and following routines https://github.com/giaf/hpipm/blob/master/include/hpipm_d_dense_qcqp_dim.h#L82
|
Beta Was this translation helpful? Give feedback.
-
Yes ns = nsb + nsg + nsq https://github.com/giaf/hpipm/blob/master/dense_qp/x_dense_qcqp_dim.c#L223 No, it holds 0<=nsb<=nb, 0<=nsg<=ng, 0<=nsq<=nq, as any number of constraints between 0 and all can be softed.
|
Beta Was this translation helpful? Give feedback.
Yes ns = nsb + nsg + nsq https://github.com/giaf/hpipm/blob/master/dense_qp/x_dense_qcqp_dim.c#L223
No, it holds 0<=nsb<=nb, 0<=nsg<=ng, 0<=nsq<=nq, as any number of constraints between 0 and all can be softed.
You can specify which component is softed in two ways:
So notice that J is assumed to be made of columns of the identity mat…