experimental support for dynamic loading of gurobi; add MPSolver.CreateSolver() factory method for non C++ languages to check correctly installed linear solver backends and licenses when needed; port all non C++ examples
This commit is contained in:
@@ -22,8 +22,8 @@ def IntegerProgrammingExample():
|
||||
"""Integer programming sample."""
|
||||
# [START solver]
|
||||
# Create the mip solver with the CBC backend.
|
||||
solver = pywraplp.Solver('IntegerProgrammingExample',
|
||||
pywraplp.Solver.CBC_MIXED_INTEGER_PROGRAMMING)
|
||||
solver = pywraplp.Solver.CreateSolver('IntegerProgrammingExample', 'cbc')
|
||||
|
||||
# [END solver]
|
||||
|
||||
# [START variables]
|
||||
|
||||
Reference in New Issue
Block a user