uo.algorithm.exact.total_enumeration package
Submodules
uo.algorithm.exact.total_enumeration.problem_solution_te_support module
uo.algorithm.exact.total_enumeration.te_optimizer module
The total_enumeration
module describes the class TotalEnumeration
.
- class uo.algorithm.exact.total_enumeration.te_optimizer.TeOptimizer(te_operations_support: TeOperationsSupport, problem: Problem, solution_template: Solution | None, output_control: OutputControl | None = None)
Bases:
Algorithm
This class represent total enumeration algorithm
- copy()
Copy the current total enumeration algorithm
- Returns:
new TotalEnumeration instance with the same properties
- Return type:
TotalEnumeration
- property current_solution: Solution | None
Property getter for the current solution used during VNS execution
- Returns:
instance of the
uo.solution.Solution
class subtype – current solution of the problem- Return type:
Optional[Solution]
- classmethod from_construction_tuple(construction_tuple: TeOptimizerConstructionParameters)
Additional constructor, that creates new instance of class
TeOptimizer
.- Parameters:
construction_tuple (TeOptimizerConstructionParameters) – tuple with all constructor parameters
- init()
Initialization of the total enumeration algorithm
- string_rep(delimiter: str, indentation: int = 0, indentation_symbol: str = '', group_start: str = '{', group_end: str = '}') str
String representation of the ‘TotalEnumeration’ instance
- Parameters:
delimiter (str) – delimiter between fields
indentation (int, optional, default value 0) – level of indentation
indentation_symbol (str, optional, default value '') – indentation symbol
group_start (str, optional, default value '{') – group start string
group_end (str, optional, default value '}') – group end string
- Returns:
string representation of instance that controls output
- Return type:
- class uo.algorithm.exact.total_enumeration.te_optimizer.TeOptimizerConstructionParameters(te_operations_support: TeOperationsSupport = None, problem: Problem | None = None, solution_template: Solution | None = None, output_control: OutputControl | None = None)
Bases:
object
Instance of the class
TotalEnumerationConstructorParameters
represents constructor parameters for total enumeration algorithm.- output_control: OutputControl | None = None
- te_operations_support: TeOperationsSupport = None
- uo.algorithm.exact.total_enumeration.te_optimizer.random() x in the interval [0, 1).