Skip to content

Try to propagate bounds in equalities #29

Description

@vtjeng

This results in an error message, even though we could reason that -2 <= z <= 6.

@variable(m, -1 <= x <= 1)
@variable(m, 3 <= y <= 5)
@variable(m, z)
@constraint(m, x+y == z)
u = @switch(
    (z <= 0) => 0,
    (z >= 0) => 1,
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions