Sync g3->github

This commit is contained in:
Corentin Le Molgat
2019-05-13 16:51:25 +02:00
parent d2bdad15d0
commit 6cc1df06d7
6 changed files with 43 additions and 8 deletions

View File

@@ -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]

View File

@@ -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();