pyfemtet.opt.problem.variable_manager package

モジュール内容

class pyfemtet.opt.problem.variable_manager.CategoricalParameter[ソース]

ベースクラス: CategoricalVariable, Parameter

choices: list[str]
class pyfemtet.opt.problem.variable_manager.CategoricalVariable[ソース]

ベースクラス: Variable

value: str
class pyfemtet.opt.problem.variable_manager.Expression[ソース]

ベースクラス: Variable

class pyfemtet.opt.problem.variable_manager.ExpressionFromFunction[ソース]

ベースクラス: Expression

args: tuple | None
fun: Callable
kwargs: dict | None
class pyfemtet.opt.problem.variable_manager.ExpressionFromString[ソース]

ベースクラス: Expression, NumericVariable

InternalClass

:py:class:`~pyfemtet.opt.problem.variable_manager._string_as_expression._ExpressionFromString`の別名です。

exception pyfemtet.opt.problem.variable_manager.InvalidExpression[ソース]

ベースクラス: Exception

class pyfemtet.opt.problem.variable_manager.NumericParameter[ソース]

ベースクラス: NumericVariable, Parameter

lower_bound: float | None
step: float | None
upper_bound: float | None
value: float
class pyfemtet.opt.problem.variable_manager.NumericVariable[ソース]

ベースクラス: Variable

value: float
class pyfemtet.opt.problem.variable_manager.Parameter[ソース]

ベースクラス: Variable

exception pyfemtet.opt.problem.variable_manager.SympifyError(expr, base_exc=None)[ソース]

ベースクラス: ValueError

class pyfemtet.opt.problem.variable_manager.Variable[ソース]

ベースクラス: object

name: str
pass_to_fem: bool
properties: dict[str, ...]
value: str | Real
class pyfemtet.opt.problem.variable_manager.VariableManager[ソース]

ベースクラス: object

dependencies: dict[str, set[str]]
eval_expressions()[ソース]
evaluation_order: list[str]
get_variables(*, filter=None, format=None)[ソース]
パラメータ:
  • filter (Literal['pass_to_fem', 'parameter'] | tuple[~typing.Literal['pass_to_fem', 'parameter']] | None) –

  • format (Literal['dict', 'values', 'raw'] | None) –

戻り値の型:

dict[str, Variable] | dict[str, Parameter] | dict[str, str | Real] | ndarray

resolve()[ソース]
set_variable(variable)[ソース]
パラメータ:

variable (Variable) –

variables: dict[str, Variable]