gemseo / algos / opt / core

updater_factory module

Factory for the trust updater

Classes:

UpdaterFactory()

Creates the trust updater.

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

Bases: object

Creates the trust updater.

Initializer.

Attributes:

PENALTY

RADIUS

TRUST_PARAMETERS

Methods:

create(name, thresholds, multipliers, bound)

Factory method to create a TrustUpdater subclass from an update name.

PENALTY = 'penalty'
RADIUS = 'radius'
TRUST_PARAMETERS = ['radius', 'penalty']
create(name, thresholds, multipliers, bound)[source]

Factory method to create a TrustUpdater subclass from an update name.

Parameters
  • name (string) – update name

  • thresholds (tuple) – thresholds for the decreases ratio

  • multipliers (tuple) – multipliers for the trust parameter

  • bound – (lower or upper) bound for the trust parameter

Returns

trust updater