revamp and simplify swig support, force typed enums for C# and Java for all except the constraint_solver/routing module; port examples; Fix SAT on very large problems
This commit is contained in:
@@ -48,9 +48,9 @@ public class SimpleMipProgram
|
||||
// [END objective]
|
||||
|
||||
// [START solve]
|
||||
int resultStatus = solver.Solve();
|
||||
Solver.ResultStatus resultStatus = solver.Solve();
|
||||
// Check that the problem has an optimal solution.
|
||||
if (resultStatus != Solver.OPTIMAL)
|
||||
if (resultStatus != Solver.ResultStatus.OPTIMAL)
|
||||
{
|
||||
Console.WriteLine("The problem does not have an optimal solution!");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user