| Total Complexity | 2 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | """Basic grouped optimizer.""" |
||
| 22 | class GroupedOptimizer: |
||
| 23 | """Optimizer is object which optimize process.""" |
||
| 24 | |||
| 25 | def __init__(self, process, grouping_strategy, pso): |
||
| 26 | self.process = process |
||
| 27 | self.grouping_strategy = grouping_strategy |
||
| 28 | self.pso = pso |
||
| 29 | self.result = Result(self.process) |
||
| 30 | |||
| 31 | def optimize_process(self): |
||
| 32 | """Optimize process. |
||
| 33 | Returns: |
||
| 34 | True if success, False otherwise.""" |
||
| 35 | self.pso.run() |
||
| 36 | self.result.generate() |
||
| 37 |
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.