A method for controlling a wind farm including a plurality of wind turbines, the method comprising: operating the wind farm based on multiple control settings over a plurality of time intervals; collecting one or more wind parameters of the wind farm over the plurality of time intervals; collecting one or more operating data points for each of the wind turbines in the wind farm for the plurality of time intervals; the method being characterised by the additional steps of: processing the operating data points for each of the wind turbines to determine an operational state of each of the wind turbines during each of the plurality of time intervals; calculating a contribution of the operating data points for each of the wind turbines as a function of the one or more wind parameters comprising: determining a percentage of each the contributions of each of the wind turbines to a total contribution for all of the wind turbines of the wind farm; and applying a correction factor to each of the percentages; estimating an energy production for the wind farm for each of the control settings based at least in part on the contribution of the operating data points for each of the wind turbines; and controlling the wind farm based on the control settings that provide an optimal energy production. operating the wind farm based on multiple control settings over a plurality of time intervals; collecting one or more wind parameters of the wind farm over the plurality of time intervals; collecting one or more operating data points for each of the wind turbines in the wind farm for the plurality of time intervals; the method being characterised by the additional steps of: processing the operating data points for each of the wind turbines to determine an operational state of each of the wind turbines during each of the plurality of time intervals; calculating a contribution of the operating data points for each of the wind turbines as a function of the one or more wind parameters comprising: determining a percentage of each the contributions of each of the wind turbines to a total contribution for all of the wind turbines of the wind farm; and applying a correction factor to each of the percentages; estimating an energy production for the wind farm for each of the control settings based at least in part on the contribution of the operating data points for each of the wind turbines; and controlling the wind farm based on the control settings that provide an optimal energy production. processing the operating data points for each of the wind turbines to determine an operational state of each of the wind turbines during each of the plurality of time intervals; calculating a contribution of the operating data points for each of the wind turbines as a function of the one or more wind parameters comprising: determining a percentage of each the contributions of each of the wind turbines to a total contribution for all of the wind turbines of the wind farm; and applying a correction factor to each of the percentages; determining a percentage of each the contributions of each of the wind turbines to a total contribution for all of the wind turbines of the wind farm; and applying a correction factor to each of the percentages; estimating an energy production for the wind farm for each of the control settings based at least in part on the contribution of the operating data points for each of the wind turbines; and controlling the wind farm based on the control settings that provide an optimal energy production.