gemseo / problems / scalable / parametric / core

Hide inherited members

variable module

A variable.

class gemseo.problems.scalable.parametric.core.variable.Variable(name, size, lower_bound, upper_bound, default_value)[source]

Bases: NamedTuple

A variable.

Create new instance of Variable(name, size, lower_bound, upper_bound, default_value)

  • name (str) –

  • size (int) –

  • lower_bound (NDArray[float]) –

  • upper_bound (NDArray[float]) –

  • default_value (NDArray[float]) –

count(value, /)

Return number of occurrences of value.

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.

default_value: NDArray[float]

The default_value of the variable.

lower_bound: NDArray[float]

The lower bound of the variable.

name: str

The name of the variable.

size: int

The size of the variable.

upper_bound: NDArray[float]

The upper bound of the variable.