Closed jmaack24 closed 4 years ago
That makes sense, it can be replaced by ConstraintRef{StructuredModel, Int, <:AbstractShape}
.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
The JuMP.ConstraintRef struct allows takes the model type as a parameterized type provided it is a subtype of JuMP.AbstractModel. Since this is true of StructuredModel, it seems unnecessary to create a StructJuMP specialized version of this struct.
More importantly, because there is no abstract super type for JuMP.ConstraintRef, StructJuMP's usage of its own specialized constraint reference struct means that code cannot easily work with a JuMP.Model or a StructJuMP.StructuredModel easily.