You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently all the constraints that take a vector of variables as input are casted as Vector{AbstractIntVar}. This is useful in order to define constraints on IntVar but also on IntVarView.
However, by doing it that way, the user is forced to cast its vector as AbstractIntVar eventhough the vector contains only a more specific variable type, which is quite unpractical.
This could be fixed easily by casting the input of these constraints as Vector{<:AbstractIntVar}, and it would even allow a more specific dispatch in the constraints if needed.
The text was updated successfully, but these errors were encountered:
Currently all the constraints that take a vector of variables as input are casted as
Vector{AbstractIntVar}
. This is useful in order to define constraints onIntVar
but also onIntVarView
.However, by doing it that way, the user is forced to cast its vector as
AbstractIntVar
eventhough the vector contains only a more specific variable type, which is quite unpractical.This could be fixed easily by casting the input of these constraints as
Vector{<:AbstractIntVar}
, and it would even allow a more specific dispatch in the constraints if needed.The text was updated successfully, but these errors were encountered: