Cbc.create_constraint_indices
— Methodcreate_constraint_indices(src::MOI.ModelLike, mapping::MOIU.IndexMap)
Create a new set of constraint indices. Importantly:
- The
.value
field of eachConstraintIndex{ScalarAffineFunction, S}
is its row in the constraint matrix. - The
.value
field of eachConstraintIndex{SingleVariable, S}
is the column of the associated variable in the constraint matrix.
Cbc.create_variable_indices
— Methodcreate_variable_indices(src::MOI.ModelLike, mapping::MOIU.IndexMap)
Create a new set of variable indices. Importantly, the .value
field of each VariableIndex
is its column in the constraint matrix.