Sync g3->github
This commit is contained in:
@@ -29,8 +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]
|
||||
|
||||
@@ -54,7 +54,7 @@ void run() {
|
||||
// [END solve]
|
||||
|
||||
// [START print_solution]
|
||||
std::cout << "Solution:" << std::endl;
|
||||
LOG(INFO) << "Solution:" << std::endl;
|
||||
LOG(INFO) << "Objective value = " << objective->Value();
|
||||
LOG(INFO) << "x = " << x->solution_value();
|
||||
LOG(INFO) << "y = " << y->solution_value();
|
||||
|
||||
Reference in New Issue
Block a user