-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
Firstly thank you for making such a useful extension to OSQP.
I think the readme is slightly misleading on the final line where it says
minimize 0.5 x' P x + q' x
subject to l <= A x <= u
x[i] in Z for i in i_idx
i_l[i] <= x[i] <= i_u[i] for i in i_idx
In this expression i
could take values from 0 to n-1
where n
is the total number of variables - these are the possible values of the entries in i_idx
. However i_l
and i_u
will only have len(i_idx) <= n
elements.
I believe it should more accurately say something like (in python pseudocode at least)
i_l[j] <= x[i] <= i_u[j] for j, i in enumerate(i_idx)
I hope that makes sense :)
yasirroni
Metadata
Metadata
Assignees
Labels
No labels