Skip to content

Slightly misleading in readme #11

@Azureuse

Description

@Azureuse

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions