internal improvemensts

This commit is contained in:
Laurent Perron
2019-12-05 16:36:11 +01:00
parent fd04db1add
commit dc3d9ccf84
24 changed files with 753 additions and 227 deletions

View File

@@ -51,15 +51,15 @@ public class SimpleMipProgram
// [START solve]
Solver.ResultStatus resultStatus = solver.Solve();
// [END solve]
// [START print_solution]
// Check that the problem has an optimal solution.
if (resultStatus != Solver.ResultStatus.OPTIMAL)
{
Console.WriteLine("The problem does not have an optimal solution!");
return;
}
// [END solve]
// [START print_solution]
Console.WriteLine("Solution:");
Console.WriteLine("Objective value = " + solver.Objective().Value());
Console.WriteLine("x = " + x.SolutionValue());