Skip to content

How do you set the slack variable matrices for dense QCQP framework? #155

Answered by giaf
dlcfort asked this question in Q&A
Discussion options

You must be logged in to vote

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:

  1. by either their index using set_idxs (where constraints are ordered as bounds first followed by general affine and finally quadratic, and with the indexing being 0-based).
  2. by passing the J matrix, defined as the matrix specifying which constraint is softed by which slack, as e.g. the J^{s..} matrices in the QP formulations in https://arxiv.org/abs/2003.02547
    So notice that J is assumed to be made of columns of the identity mat…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@dlcfort
Comment options

Comment options

You must be logged in to vote
3 replies
@dlcfort
Comment options

@giaf
Comment options

@dlcfort
Comment options

Answer selected by dlcfort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants