This commit is contained in:
Laurent Perron
2019-05-15 09:05:01 +02:00
parent 95e89c5175
commit 138ff3bad1

View File

@@ -35,12 +35,10 @@ class SolutionPrinter(cp_model.CpSolverSolutionCallback):
def flexible_jobshop():
"""Solve a small flexible jobshop problem."""
# Data part.
jobs = [[[(3, 0), (1, 1), (5, 2)], [(2, 0), (4, 1), (6, 2)],
[(2, 0), (3, 1), (1, 2)]],
[[(2, 0), (3, 1), (4, 2)], [(1, 0), (5, 1), (4, 2)],
[(2, 0), (1, 1), (4, 2)]], [[(2, 0), (1, 1),
(4, 2)], [(2, 0), (3, 1), (4, 2)],
[(3, 0), (1, 1), (5, 2)]]]
jobs = [[[(3, 0), (1, 1), (5, 2)], [(2, 0), (4, 1), (6, 2)], [(2, 0), (3, 1), (1, 2)]],
[[(2, 0), (3, 1), (4, 2)], [(1, 0), (5, 1), (4, 2)], [(2, 0), (1, 1), (4, 2)]],
[[(2, 0), (1, 1), (4, 2)], [(2, 0), (3, 1), (4, 2)], [(3, 0), (1, 1), (5, 2)]]
] # yapf:disable
num_jobs = len(jobs)
all_jobs = range(num_jobs)