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)

Parameters:
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[Any, dtype[float]]

The default_value of the variable.

lower_bound: ndarray[Any, dtype[float]]

The lower bound of the variable.

name: str

The name of the variable.

size: int

The size of the variable.

upper_bound: ndarray[Any, dtype[float]]

The upper bound of the variable.