StevenMaio / rl-repair

Repository for python implementation of thesis work
1 stars 0 forks source link

Remove sorting variables when using gurobipy.Model #4

Closed StevenMaio closed 1 year ago

StevenMaio commented 1 year ago

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.