Skip to content

Sign of dual multipliers in quadprog wrapper #4

Description

@stephane-caron

There is an inconsistency in the quadprog wrapper when unwrapping dual multipliers:

if (meq>0 and n_in==0):
y_sol = -y
if (meq>0 and n_in>0):
y_sol[eq_ids] = y[:meq]

That is, y_sol[eq_ids] is taken as -y when there is no inequality but +y when there are some.

I think +y is the correct conversion in this context, but to be checked.

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