Closing the loop in model-based wind farm control