Merge branch 'mapping_problem_helper' of PSSAI_Team/JobShopScheduling into mapping_problem
This commit is contained in:
commit
d96632a336
|
@ -93,6 +93,8 @@ class JobShopProblem(Mapping):
|
||||||
def __len__(self) -> int:
|
def __len__(self) -> int:
|
||||||
return sum(map(len, self.problem_data))
|
return sum(map(len, self.problem_data))
|
||||||
|
|
||||||
|
def get_tasks_by_job(self, job: int) -> List[Tuple[int, int]]:
|
||||||
|
return self.problem_data[job]
|
||||||
|
|
||||||
class JobShopVisitor(arpeggio.PTNodeVisitor):
|
class JobShopVisitor(arpeggio.PTNodeVisitor):
|
||||||
"""contains visitor functions needed for both jobshop1 (list of instances)
|
"""contains visitor functions needed for both jobshop1 (list of instances)
|
||||||
|
|
Loading…
Reference in a new issue