Update linear_programming examples

This commit is contained in:
Corentin Le Molgat
2018-10-12 11:47:16 +02:00
parent 719172b621
commit b1ea750b1a
3 changed files with 182 additions and 103 deletions

View File

@@ -25,7 +25,7 @@ namespace operations_research {
MPVariable* const x = solver.MakeNumVar(0.0, infinity, "x");
MPVariable* const y = solver.MakeNumVar(0.0, infinity, "y");
// Objectif function: Maximize 3x + 4y).
// Objectif function: Maximize 3x + 4y.
MPObjective* const objective = solver.MutableObjective();
objective->SetCoefficient(x, 3);
objective->SetCoefficient(y, 4);