Cbc.create_constraint_indicesMethod
create_constraint_indices(src::MOI.ModelLike, mapping::MOIU.IndexMap)

Create a new set of constraint indices. Importantly:

  • The .value field of each ConstraintIndex{ScalarAffineFunction, S} is its row in the constraint matrix.
  • The .value field of each ConstraintIndex{SingleVariable, S} is the column of the associated variable in the constraint matrix.
Cbc.create_variable_indicesMethod
create_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.