# builders.domain.scheduling.resource_costs

Domain specification

Domain

# WithModeCosts

A domain must inherit this class if there are some mode costs to consider.

# get_mode_costs WithModeCosts

get_mode_costs(
  self
) -> dict[int, dict[int, float]]

Return a nested dictionary where the first key is the id of a task (int), the second key the id of a mode and the value indicates the cost of execution the task in the mode.

# _get_mode_costs WithModeCosts

_get_mode_costs(
  self
) -> dict[int, dict[int, float]]

Return a nested dictionary where the first key is the id of a task (int), the second key the id of a mode and the value indicates the cost of execution the task in the mode.

# WithoutModeCosts

A domain must inherit this class if there are no mode cost to consider.

# get_mode_costs WithModeCosts

get_mode_costs(
  self
) -> dict[int, dict[int, float]]

Return a nested dictionary where the first key is the id of a task (int), the second key the id of a mode and the value indicates the cost of execution the task in the mode.

# _get_mode_costs WithModeCosts

_get_mode_costs(
  self
) -> dict[int, dict[int, float]]

Return a nested dictionary where the first key is the id of a task (int), the second key the id of a mode and the value indicates the cost of execution the task in the mode.

# WithResourceCosts

A domain must inherit this class if there are some resource costs to consider.

# get_resource_cost_per_time_unit WithResourceCosts

get_resource_cost_per_time_unit(
  self
) -> dict[str, float]

Return a dictionary where the key is the name of a resource (str) and the value indicates the cost of using this resource per time unit.

# _get_resource_cost_per_time_unit WithResourceCosts

_get_resource_cost_per_time_unit(
  self
) -> dict[str, float]

Return a dictionary where the key is the name of a resource (str) and the value indicates the cost of using this resource per time unit.

# WithoutResourceCosts

A domain must inherit this class if there are no resource cost to consider.

# get_resource_cost_per_time_unit WithResourceCosts

get_resource_cost_per_time_unit(
  self
) -> dict[str, float]

Return a dictionary where the key is the name of a resource (str) and the value indicates the cost of using this resource per time unit.

# _get_resource_cost_per_time_unit WithResourceCosts

_get_resource_cost_per_time_unit(
  self
) -> dict[str, float]

Return a dictionary where the key is the name of a resource (str) and the value indicates the cost of using this resource per time unit.