- abstract foxes_opt.core.FarmVarsProblem.opt2farm_vars_population(vars_int, vars_float, n_states)[source]
Translates optimization variables to farm variables
Parameters¶
- vars_int: numpy.ndarray
The integer optimization variable values, shape: (n_pop, n_vars_int)
- vars_float: numpy.ndarray
The float optimization variable values, shape: (n_pop, n_vars_float)
- n_states: int
The number of original (non-pop) states
Returns¶
- farm_vars: dict
The foxes farm variables. Key: var name, value: numpy.ndarray with values, shape: (n_pop, n_states, n_sel_turbines)