boax.core.objectives.transformations.penalized

Contents

boax.core.objectives.transformations.penalized#

boax.core.objectives.transformations.penalized(objective, *terms)#

Adds penalty terms to an objective function.

Parameters:
  • objective (Objective[TypeVar(T)]) – The objective to be penalized.

  • terms (Union[Array, ndarray, bool, number]) – The penlization terms added to the objective value.

Return type:

Objective[TypeVar(T)]

Returns:

A penalized Objective.