saealib.SerialEvaluator¶
- class saealib.SerialEvaluator[source]¶
Bases:
EvaluatorDefault evaluator: evaluates each candidate sequentially.
Methods
Evaluate each row of |
Method Details
- SerialEvaluator.__init__()¶
- SerialEvaluator.evaluate_batch(x, problem)[source]¶
Evaluate each row of
xone 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: