minor improvement

This commit is contained in:
Laurent Perron
2018-12-30 23:08:34 +01:00
parent 98abcc8595
commit 4d0ec663e0

View File

@@ -434,7 +434,7 @@ def steel_mill_slab(problem, break_symmetries, output_proto):
status = solver.SolveWithSolutionCallback(model, objective_printer)
### Output the solution.
if status == cp_model.OPTIMAL:
if status in (cp_model.OPTIMAL, cp_model.FEASIBLE):
print('Loss = %i, time = %f s, %i conflicts' % (
solver.ObjectiveValue(), solver.WallTime(), solver.NumConflicts()))
else: