discrete_optimization.rcpsp_resource_dependent.transformations package
Submodules
discrete_optimization.rcpsp_resource_dependent.transformations.generic_scheduling_impl module
Transformation from/to generic scheduling to/from RCPSP.
- class discrete_optimization.rcpsp_resource_dependent.transformations.generic_scheduling_impl.RcpspResourceDependentToGenericSchedulingTransformation(list_objective_computer: list[ObjectiveComputer] = None)[source]
Bases:
ToGenericSchedulingImpl[RcpspResourceDependentProblem,RcpspResourceDependentSolution]Transform RcpspResourceDependentProblem to GenericSchedulingImplProblem.
- transform_solution_from_raw_generic_to_specific(raw_sol: RawSolution[Hashable, Hashable, Hashable], source_problem: RcpspResourceDependentProblem) RcpspResourceDependentSolution[source]
Convert a raw solution (from generic problem) into a specific solution to the source problem.
- Parameters:
raw_sol – Raw solution to convert to a specific solution
source_problem – Target Problem we want to build a solution for.
Returns:
- discrete_optimization.rcpsp_resource_dependent.transformations.generic_scheduling_impl.transform_solution_from_raw_generic_to_rcpsp_resource_dependent(raw_sol: RawSolution[Hashable, Hashable, Hashable], problem: RcpspResourceDependentProblem) RcpspResourceDependentSolution[source]
Convert generic solution to RCPSP resource dependent solution.
- Parameters:
raw_sol
problem
Returns: