gemseo / algos / opt / core

updater_factory module

Factory for the trust updater.

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

Bases: object

A factory of TrustUpdater.

Return type

None

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

gemseo.algos.opt.core.trust_updater.TrustUpdater

PENALTY = 'penalty'
RADIUS = 'radius'
TRUST_PARAMETERS = ['radius', 'penalty']