Currently, Model::from_gurobi_model sorts the variables according to their variable type. This seemed like it made sense at the time, but now I realize I can just go over the variables and create a list of the relevant variables.
I guess an alternative is to add a field to the associated gurobipy.Var instance.
Currently,
Model::from_gurobi_model
sorts the variables according to their variable type. This seemed like it made sense at the time, but now I realize I can just go over the variables and create a list of the relevant variables.I guess an alternative is to add a field to the associated gurobipy.Var instance.