-
Notifications
You must be signed in to change notification settings - Fork 95
Closed
Labels
Milestone
Description
@bernalde hit me up at INFORMS with this problem:
- Given
MOI.VariablePrimalStart
appears inMOI.ListOfVariableAttributesSet
, how do I tell which variables have a non-default start?
Some possible solutions:
- You don't. Iterate over every variable
- Add new attributes:
MOI.ListOfVariablesWithAttributeSet{A<:MOI.AbstractVariableAttribute}
MOI.ListOfConstraintsWithAttributeSet{F,S,A<:MOI.AbstractConstraintAttribute}
We could potentially implement 2. with the default that falls back to MOI.get(model, MOI.ListOfVariableIndices())
. This would let solvers opt-in to more efficient implementations. But it might also confuse users if they start using MOI.ListOfVariablesWithAttributeSet
and find that it is a super-set of indices, rather than the exact set.