culebra.tools.abc.DecisionManager class¶
Class methods¶
- classmethod DecisionManager.load(filename: str) Base¶
Load a serialized object from a file.
- Parameters:
filename (str) – The file name.
- Returns:
The loaded object
- Raises:
TypeError – If filename is not a valid file name
ValueError – If the filename extension is not
SERIALIZED_FILE_EXTENSION
Methods¶
- DecisionManager.dump(filename: str) None¶
Serialize this object and save it to a file.
- Parameters:
filename (str) – The file name.
- Raises:
TypeError – If filename is not a valid file name
ValueError – If the filename extension is not
SERIALIZED_FILE_EXTENSION
Private methods¶
- abstract DecisionManager._choose(all_combinations: list[list[Solution, ...]], all_combinations_fitness: list[Fitness, ...]) tuple[Solution, ...] | None¶
Choose one combination of solutions.
- Parameters:
all_combinations (list[list[Solution, ...]]) – All the combinations of the Pareto optimal solutions from each species
- All_combinations_fitness:
The fitness for each combination
- Returns:
The chosen combination
- Return type:
This method must be overridden by subclasses to return a correct value.
- abstract DecisionManager._evaluate(all_combinations: list[list[Solution, ...]]) list[Fitness, ...]¶
Evaluate all the combinations of Pareto optimal solutions.
- Parameters:
all_combinations (list[list[Solution, ...]]) – All the combinations of the Pareto optimal solutions from each species
- Returns:
The fitness for each combination
- Return type:
This method must be overridden by subclasses to return a correct value.
- DecisionManager._generate_all_combinations() list[list[Solution, ...]]¶
Generate all the combinations of Pareto optimal solutions.

