Skip to content

Discuss implementing all constraint types #213

@odow

Description

@odow

Raised by @tkoolen:

I can't use the MOIT tests because I only advertise support for Interval constraint sets (which I think is the right thing to do). I thought that the proper way to add support for LessThan etc. would be to have a CombineIntoIntervalBridge in MOIU, similar to SplitIntervalBridge.

I’m still not sure whether I should advertise support for vector-valued constraints in OSQP. Perhaps document that better.

I added the following to the docs, however when I attempted to use the web editor I clicked merge into master rather than make a PR. Commit is 51c8f72. I can revert if people want changes.

With this in mind, developers should attempt to support as many constraint types as possible if it makes sense on the solver side. For example, if the solver only supports constraints of the form l <= f(x) <= u, where l or u can be inf or -inf, the wrapper should support ScalarAffineFunction-in-LessThan/GreaterThan/EqualTo instead of just Interval.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions