diff --git a/mip/model.py b/mip/model.py index 9fa011b7..654c506e 100644 --- a/mip/model.py +++ b/mip/model.py @@ -106,6 +106,8 @@ def __init__( self.solver = mip.cbc.SolverCbc(self, name, sense) self.solver_name = mip.CBC + else: + import mip # list of constraints and variables self.constrs = mip.ConstrList(self)