-
-
Notifications
You must be signed in to change notification settings - Fork 14
Description
It would be great with a way of obtaining the domain in a variable when writing a Model. It's useful for writing better decompositions than "simply" using the variable's upper/lower domain that JuMP.lower_bound and JuMP.upper_bound support.
The syntax could be something like domain = CS.domain(v) where domain will be and Array/Vector of the possible values of the variable v.
(When I'm much more comfortable with Julia as well as the source code in ConstraintSolver.jl, I might be able to write constraints / propagators at the source code level, but for a relatively beginner supports for domains and upper/lower bounds - and in general reflection/introspection - at the model is a great help.)
This was originally discussed at Zulip: https://julialang.zulipchat.com/#narrow/stream/268675-ConstraintSolver/topic/Getting.20.22active.22.20domain.20of.20a.20variable.3F