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:
@@ -46,8 +46,7 @@ public class MultipleKnapsackMip {
|
||||
|
||||
// [START solver]
|
||||
// Create the linear solver with the CBC backend.
|
||||
MPSolver solver = new MPSolver(
|
||||
"MultipleKnapsackMip", MPSolver.OptimizationProblemType.CBC_MIXED_INTEGER_PROGRAMMING);
|
||||
MPSolver solver = MPSolver.createSolver("MultipleKnapsackMip", "cbc");
|
||||
// [END solver]
|
||||
|
||||
// [START program_part2]
|
||||
|
||||
Reference in New Issue
Block a user