discrete_optimization.shop.fjsp package

Subpackages

Submodules

discrete_optimization.shop.fjsp.parser module

discrete_optimization.shop.fjsp.parser.get_data_available(data_folder: str | None = None, data_home: str | None = None) list[str][source]

Get datasets available for jobshop.

discrete_optimization.shop.fjsp.parser.parse_file(file_path: str)[source]

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)

Module contents