Use CBC by default instead of GLPK in python mip examples

This commit is contained in:
Laurent Perron
2016-03-19 18:54:18 +01:00
parent a152cfae44
commit bed3fa9922
12 changed files with 21 additions and 21 deletions

View File

@@ -45,7 +45,7 @@ import sys
from ortools.linear_solver import pywraplp
def main(sol='GLPK'):
def main(sol='CBC'):
# Create the solver.
@@ -56,8 +56,8 @@ def main(sol='GLPK'):
solver = pywraplp.Solver('CoinsGridGLPK',
pywraplp.Solver.GLPK_MIXED_INTEGER_PROGRAMMING)
else:
# Using CLP
solver = pywraplp.Solver('CoinsGridCLP',
# Using CBC
solver = pywraplp.Solver('CoinsGridCBC',
pywraplp.Solver.CBC_MIXED_INTEGER_PROGRAMMING)
#