modules.applications.optimization.salbp.salbp.respects_precedences
- respects_precedences(preceding_tasks: frozenset[tuple[Task, Task]], task_assignment: dict[int, list[Task]]) bool
Return if the given task_assignment respects the given precedences.
- Parameters:
preceding_tasks -- Set of precedence constraints between tasks
task_assignment -- The assignment of tasks to stations
- Returns:
True if all precedence constraints are satisfied, False otherwise