Skip to content

Add bridge to that converts upper/lower constraints to interval constraints  #1193

@freemin7

Description

@freemin7

It is much simpler to implement a solver interface that just handles interval constraints.
However currently such a solver wouldn't be able to handle one sided constraints due to a lack of a bridge converting them to interval constraints.

Another issue that pops up his that in what interval x <= 6 should be expressed as. The obvious solution -Inf <= x <= 6 only works floating point numbers, Inf does not exist for integers or Fraction types (as @blegat pointed out in the Gitter). In this case it should be possible to pass some lower/upper bound as parameter for the bridge which should be used instead of -Inf and Inf.

Bounding Inf to a finite value is also a thing i've seen on NLP solvers which work with floating points exclusively.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions