floris.optimization.layout_optimization.layout_optimization_pyoptsparse#

Classes

LayoutOptimizationPyOptSparse(fmodel, boundaries)

This class provides an interface for optimizing the layout of wind turbines using the pyOptSparse optimization library.

class floris.optimization.layout_optimization.layout_optimization_pyoptsparse.LayoutOptimizationPyOptSparse(fmodel, boundaries, min_dist=None, solver=None, optOptions=None, timeLimit=None, storeHistory='hist.hist', hotStart=None, enable_geometric_yaw=False, use_value=False)[source]#

This class provides an interface for optimizing the layout of wind turbines using the pyOptSparse optimization library. The optimization objective is to maximize annual energy production (AEP) or annual value production (AVP).

Args:

fmodel (FlorisModel): A FlorisModel object. boundaries (iterable(float, float)): Pairs of x- and y-coordinates

that represent the boundary's vertices (m).

min_dist (float, optional): The minimum distance to be maintained

between turbines during the optimization (m). If not specified, initializes to 2 rotor diameters. Defaults to None.

solver (str, optional): Sets the solver used by pyOptSparse. Defaults

to 'SLSQP'.

optOptions (dict, optional): Dictionary for setting the

optimization options. Defaults to None.

timeLimit (float, optional): Variable passed to pyOptSparse optimizer.

The maximum amount of time for optimizer to run (seconds). If None, no time limit is imposed. Defaults to None.

storeHistory (str, optional): Variable passed to pyOptSparse optimizer.

File name of the history file into which the history of the pyOptSparse optimization will be stored. Defaults to "hist.hist".

hotStart (str, optional): Variable passed to pyOptSparse optimizer.

File name of the history file to “replay” for the optimization. If None, pyOptSparse initializes the optimization from scratch. Defaults to None.

enable_geometric_yaw (bool, optional): If True, enables geometric yaw

optimization. Defaults to False.

use_value (bool, optional): If True, the layout optimization objective

is to maximize annual value production using the value array in the FLORIS model's WindData object. If False, the optimization objective is to maximize AEP. Defaults to False.

parse_opt_vars(varDict)[source]#
parse_sol_vars(sol)[source]#
add_var_group(optProb)[source]#
add_con_group(optProb)[source]#
compute_cons(funcs, x, y)[source]#
space_constraint(x, y, rho=500)[source]#
distance_from_boundaries(x, y)[source]#
get_optimized_locs()[source]#