| Total Complexity | 2 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | """Basic grouped optimizer.""" |
||
| 6 | 1 | class GroupedOptimizer: |
|
| 7 | """Optimizer is object which optimize process.""" |
||
| 8 | |||
| 9 | 1 | def __init__(self, process, grouping_strategy, pso): |
|
| 10 | 1 | self.process = process |
|
| 11 | 1 | self.grouping_strategy = grouping_strategy |
|
| 12 | 1 | self.pso = pso |
|
| 13 | 1 | self.result = Result(self.process) |
|
| 14 | |||
| 15 | 1 | def optimize_process(self): |
|
| 16 | """Optimize process. |
||
| 17 | Returns: |
||
| 18 | True if success, False otherwise.""" |
||
| 19 | 1 | self.pso.run() |
|
| 20 | self.result.generate() |
||
| 21 |