(self, position, velocity)
| 15 | |
| 16 | class Particle: |
| 17 | def __init__(self, position, velocity): |
| 18 | self.position = position |
| 19 | self.velocity = velocity |
| 20 | self.pbest_position = position |
| 21 | self.gbest_position = position |
| 22 | self.pbest_fitness = 0 |
| 23 | self.gbest_fitness = 0 |
| 24 | |
| 25 | def evaluate(self, obj_function, steady, cost, model): |
| 26 | fitness = obj_function(self.position, steady, cost, model) |
nothing calls this directly
no outgoing calls
no test coverage detected