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 :)
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
In this expression
icould take values from 0 ton-1wherenis the total number of variables - these are the possible values of the entries ini_idx. Howeveri_landi_uwill only havelen(i_idx) <= nelements.I believe it should more accurately say something like (in python pseudocode at least)
I hope that makes sense :)