-
foxes_opt.problems.OptFarmVars.add_var(variable, typ, init, min, max, level=
'uniform'
, sel=None
, pre_rotor=False
, model_key=None
)[source] Add a variable.
Parameters¶
- variable: str
The foxes farm variable name
- typ: type
The variable type, either float or int
- init: float or int
The initial value
- min: float or int
The min value
- max: float or int
The max value
- level: str
Choices: uniform, state, turbine, state-turbine
- sel: numpy.ndarray, optional
States/turbines/state-turbine selection, depending on the level
- pre_rotor: bool
Apply this variable before rotor model
- model_key: str, optional
Creates sub-model which can then be placed in the turbine model list. Repeated keys are added to the same turbine model