sync with main
This commit is contained in:
committed by
Corentin Le Molgat
parent
382ab5d35b
commit
4cbd27dae9
@@ -65,12 +65,12 @@ def main():
|
||||
# [START print_solution]
|
||||
print(f"Status: {result_status}")
|
||||
if result_status != pywraplp.Solver.OPTIMAL:
|
||||
print("The problem does not have an optimal solution!")
|
||||
if result_status == pywraplp.Solver.FEASIBLE:
|
||||
print("A potentially suboptimal solution was found")
|
||||
else:
|
||||
print("The solver could not solve the problem.")
|
||||
return
|
||||
print("The problem does not have an optimal solution!")
|
||||
if result_status == pywraplp.Solver.FEASIBLE:
|
||||
print("A potentially suboptimal solution was found")
|
||||
else:
|
||||
print("The solver could not solve the problem.")
|
||||
return
|
||||
|
||||
print("Solution:")
|
||||
print("Objective value =", objective.Value())
|
||||
|
||||
Reference in New Issue
Block a user