diff --git a/examples/python/steel_mill_slab_sat.py b/examples/python/steel_mill_slab_sat.py index 079f4a060f..40b4e41664 100644 --- a/examples/python/steel_mill_slab_sat.py +++ b/examples/python/steel_mill_slab_sat.py @@ -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: