Parameter controller based on a Flocking Algorithm