def newPosition(self, globalBestPosition, rng):
<EOL>lb=float(Configuration.get("<STR_LIT>"))<EOL>ub=float(Configuration.get("<STR_LIT>"))<EOL>self._velocity = (self._velocity * self._inertia + rng.uniform(lb, ub) *<EOL>self._cogRate * (self._bestPosition - self.getPosition()))<EOL>if globalBestPosition is not None:<EOL><INDENT>self._velocity += rng.uniform(lb, ub) * self._socRate * (<EOL>globalBestPosition - self.getPosition())<EOL><DEDENT>self._position += self._velocity<EOL>self._position = max(self.min, self._position)<EOL>self._position = min(self.max, self._position)<EOL>return self.getPosition()<EOL>
See comments in base class.