flasc.utilities.optimization.estimate_ti#
- flasc.utilities.optimization.estimate_ti(fm, P_measured, Ns, bounds, turbine_upstream, turbines_downstream, refine_with_fmin=False, verbose=False)[source]#
Estimate the turbulence intensity for a given turbine.
This function is used to estimate the turbulence intensity for a given turbine.
- Parameters:
fm (FlorisModel) -- FlorisModel object.
P_measured (np.array) -- Measured power data.
Ns (int) -- Number of steps for optimization.
bounds (list) -- Bounds for optimization.
turbine_upstream (int) -- Upstream turbine.
turbines_downstream (list) -- Downstream turbines.
refine_with_fmin (bool) -- Refine with fmin. Default is False.
verbose (bool) -- Print verbose output. Default is False.
- Returns:
- Dictionary with the following
keys: - x_opt: Optimal time shift. - J_opt: Optimal cost function value. - x: Time shifts evaluated. - J: Cost function values evaluated.
- Return type:
dict