-
iwopy.wrappers.SimpleConstraint.calc_individual(vars_int, vars_float, problem_results, components=
None
)[source] Calculate values for a single individual of the underlying problem.
Parameters¶
- vars_int: np.array
The integer variable values, shape: (n_vars_int,)
- vars_float: np.array
The float variable values, shape: (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_sel_components,)