foxes_opt.objectives.MaxNTurbines.calc_population(vars_int, vars_float, problem_results, components=None)[source]

Calculate values for all individuals of a population.

Parameters

vars_int: np.array

The integer variable values, shape: (n_pop, n_vars_int)

vars_float: np.array

The float variable values, shape: (n_pop, n_vars_float)

problem_results: Any

The results of the variable application to the problem

components: list of int, optional

The selected components or None for all

Returns

values: np.array

The component values, shape: (n_pop, n_sel_components)