Total Complexity | 2 |
Total Lines | 15 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | """Basic grouped optimizer.""" |
||
21 | class GroupedOptimizer: |
||
22 | """Optimizer is object which optimize process.""" |
||
23 | |||
24 | def __init__(self, process, grouping_strategy): |
||
25 | self.process = process |
||
26 | self.grouping_strategy = grouping_strategy |
||
27 | self.result = Result(self.process) |
||
28 | |||
29 | def optimize_process(self): |
||
30 | """Optimize process. |
||
31 | Returns: |
||
32 | True if success, False otherwise.""" |
||
33 | pso = PsoAlgorithm(self.process, self.grouping_strategy) |
||
34 | pso.run() |
||
35 | self.result.generate() |
||
36 |