internal improvemensts
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user