saealib.SerialEvaluator

class saealib.SerialEvaluator[source]

Bases: Evaluator

Default evaluator: evaluates each candidate sequentially.

Methods

__init__

evaluate_batch

Evaluate each row of x one at a time.

Method Details

SerialEvaluator.__init__()
SerialEvaluator.evaluate_batch(x, problem)[source]

Evaluate each row of x one at a time.

Produces results equivalent to the per-candidate evaluation loops that previously lived in each Strategy and Initializer.

Parameters:
  • x (np.ndarray) – Design vectors to evaluate. shape = (n, dim)

  • problem (Problem) – The optimization problem providing the objective and constraints.

Returns:

Batched objective values, raw constraint values, and violations.

Return type:

EvaluationResult