-
How would you go about disabling bounds only on certain variables using dense qp or dense qcqp. In "example_dense_qp_getting_started.py", the lower bounds are disabled as follows. qp.set('ug', d) However how would we disable only the third variable? Would it be something like this? qp.set('lg_mask', np.array([1,1,0])) # disable lower bound Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The above concept is correct, however the array must be a column vector as follows. qp.set('lg_mask', np.array([[1],[1],[0]])) # disable lower bound |
Beta Was this translation helpful? Give feedback.
The above concept is correct, however the array must be a column vector as follows.
qp.set('lg_mask', np.array([[1],[1],[0]])) # disable lower bound