gemseo.algos.constraint_tolerances module#

The equality and inequality constraint tolerances.

Settings ConstraintTolerances(*, inequality=0.0001, equality=0.01)[source]#

Bases: BaseModel

The equality and inequality constraint tolerances.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Parameters:
  • inequality (Annotated[float, Ge(ge=0)]) --

    By default it is set to 0.0001.

  • equality (Annotated[float, Ge(ge=0)]) --

    By default it is set to 0.01.

Return type:

None

equality: NonNegativeFloat = 0.01#

The equality constraint tolerances.

Constraints:
  • ge = 0

inequality: NonNegativeFloat = 0.0001#

The inequality constraint tolerances.

Constraints:
  • ge = 0