sync with main

This commit is contained in:
Laurent Perron
2024-04-08 11:52:13 +02:00
committed by Corentin Le Molgat
parent 382ab5d35b
commit 4cbd27dae9
88 changed files with 2029 additions and 819 deletions

View File

@@ -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())