minor polish of examples
This commit is contained in:
@@ -29,9 +29,8 @@ public class SimpleLpProgram {
|
||||
public static void main(String[] args) throws Exception {
|
||||
// [START solver]
|
||||
// Create the linear solver with the GLOP backend.
|
||||
MPSolver solver = new MPSolver(
|
||||
"SimpleLpProgram",
|
||||
MPSolver.OptimizationProblemType.GLOP_LINEAR_PROGRAMMING);
|
||||
MPSolver solver =
|
||||
new MPSolver("SimpleLpProgram", MPSolver.OptimizationProblemType.GLOP_LINEAR_PROGRAMMING);
|
||||
// [END solver]
|
||||
|
||||
// [START variables]
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
# [START import]
|
||||
from __future__ import print_function
|
||||
from ortools.linear_solver import pywraplp
|
||||
|
||||
# [END import]
|
||||
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
# [START import]
|
||||
from __future__ import print_function
|
||||
from ortools.linear_solver import pywraplp
|
||||
|
||||
# [END import]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user