Conditions | 2 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | """Contain PsoAlgorithm.""" |
||
16 | 1 | def run(self): |
|
17 | """Run algorithm.""" |
||
18 | 1 | self.process_validator.validate(self.process) |
|
19 | 1 | self.process.optimizationStatus = OptimizationStatus.in_progress |
|
20 | 1 | number_of_groups = self.strategy.get_actual_numbers_of_groups() |
|
21 | 1 | for current_group_number in range(number_of_groups): |
|
22 | 1 | current_stages = self.strategy.get_items_from_group( |
|
23 | current_group_number) |
||
24 | self.whole_group_pso.optimize(current_stages) |
||
25 |