- abstract iwopy.wrappers.SimpleObjective.f(*x)[source]
The function.
Parameters¶
- x: tuple
The int and float variables in that order. Variables are either scalars or numpy arrays in case of populations.
Returns¶
- result: float (or numpy.ndarray) or list of float (or numpy.ndarray)
For one component, a float, else a list of floats. For population results, a array with shape (n_pop,) in case of one component or a list of such arrays otherwise.