polarcbo.objectives.objective

class polarcbo.objectives.objective[source]

Bases: ABC

Abstract objective function class

abstract __call__(x)[source]

Call method for classes that inherit from objective

Parameters:

x (array_like, shape (J, d)) – For a system of \(J\) particles, the i-th row of this array x[i,:] represents the position of the i-th particle.

Returns:

y – The value of the objective function at the positions x.

Return type:

array_like, shape (J,)