discrete_optimization.shop.fjsp package
Subpackages
- discrete_optimization.shop.fjsp.solvers package
- discrete_optimization.shop.fjsp.transformations package
Submodules
discrete_optimization.shop.fjsp.parser module
discrete_optimization.shop.fjsp.problem module
- class discrete_optimization.shop.fjsp.problem.FJobShopProblem(list_jobs: list[Job], n_jobs: int = None, n_machines: int = None, horizon: int = None)[source]
Bases:
CommonShopProblem- get_last_tasks() list[tuple[int, int]][source]
Get a sublist of tasks that are candidate to be the last one scheduled.
Default to all tasks.
- get_precedence_constraints() dict[tuple[int, int], list[tuple[int, int]]][source]
Map each task to the tasks that need to be performed after it.
- get_resource_availabilities(resource: int) list[tuple[int, int, int]][source]
Get availabilities intervals for a given resource
List of availability intervals of a resource. If the resource is not available, potentially no interval returned.
It is assumed that the intervals are disjunct though.
- Parameters:
resource
- Returns:
list of intervals of the form (start, end, value), which means from time start to time end, there are value of the resource available. NB: the start is included, the end is excluded (start <= t < end)