desc.objectives.ObjectiveFunction.compute_scalar

ObjectiveFunction.compute_scalar(x, constants=None)Source

Compute the sum of squares error.

Parameters:
  • x (ndarray) – State vector.

  • constants (list) – Constant parameters passed to sub-objectives.

Returns:

f (float) – Objective function scalar value.