add new python example; add simple typing annotations

This commit is contained in:
Laurent Perron
2024-07-23 14:07:41 +02:00
parent 08e9085d36
commit 905770c995
24 changed files with 111 additions and 27 deletions

View File

@@ -36,7 +36,7 @@ class SolutionPrinter(cp_model.CpSolverSolutionCallback):
self.__solution_count += 1
def jobshop_with_maintenance():
def jobshop_with_maintenance() -> None:
"""Solves a jobshop with maintenance on one machine."""
# Create the model.
model = cp_model.CpModel()