gemseo / algos / opt / core

Show inherited members

updater_factory module

Factory for the trust updater.

class gemseo.algos.opt.core.updater_factory.UpdaterFactory[source]

Bases: object

A factory of TrustUpdater.

create(name, thresholds, multipliers, bound)[source]

Create a TrustUpdater.

Parameters:
  • name (str) – The name of the updater.

  • thresholds (tuple[float, float]) – The thresholds for the decrease ratio.

  • multipliers (tuple[float, float]) – The multipliers for the trust parameter.

  • bound (float) – The absolute bound for the trust parameter.

Raises:

ValueError – When the updater does not exist.

Return type:

TrustUpdater

PENALTY = 'penalty'
RADIUS = 'radius'
TRUST_PARAMETERS: ClassVar[list[str]] = ['radius', 'penalty']