class pyfemtet.opt.problem.problem.Constraint[ソース]

ベースクラス: Function

hard: bool
lower_bound: float | None
upper_bound: float | None
property using_fem: bool
class pyfemtet.opt.problem.problem.ConstraintResult(cns, fem, cns_value=None, constraint_enhancement=None, constraint_scaling=None)[ソース]

ベースクラス: object

パラメータ:
calc_violation()[ソース]
戻り値の型:

dict[str, float]

check_violation()[ソース]
戻り値の型:

str | None

class pyfemtet.opt.problem.problem.Constraints[ソース]

ベースクラス: dict[str, Constraint]

class pyfemtet.opt.problem.problem.Function[ソース]

ベースクラス: object

args: tuple
eval(fem)[ソース]
パラメータ:

fem (AbstractFEMInterface) –

戻り値の型:

float

fem_ctx: OptimizationDataPerFEM | None
property fun: Callable[[...], float]
kwargs: dict
class pyfemtet.opt.problem.problem.FunctionResult(func, fem)[ソース]

ベースクラス: object

パラメータ:
class pyfemtet.opt.problem.problem.Functions[ソース]

ベースクラス: dict[str, Function]

class pyfemtet.opt.problem.problem.Objective[ソース]

ベースクラス: Function

convert(value)[ソース]
戻り値の型:

float

direction: str | float
class pyfemtet.opt.problem.problem.ObjectiveResult(obj, fem, obj_value=None)[ソース]

ベースクラス: object

パラメータ:
class pyfemtet.opt.problem.problem.Objectives[ソース]

ベースクラス: dict[str, Objective]

class pyfemtet.opt.problem.problem.ObjectivesFunc(fun, n_return)[ソース]

ベースクラス: object

Split a function that returns multiple values into functions that return a single float value.

パラメータ:
  • fun (Callable[..., Sequence[float]]) –

  • n_return (int) –

get_fun_that_returns_ith_value(i)[ソース]
pyfemtet.opt.problem.problem.SubSampling

:py:class:`int`の別名です。

pyfemtet.opt.problem.problem.TrialConstraintOutput

dict[str, ConstraintResult]の別名です。

pyfemtet.opt.problem.problem.TrialFunctionOutput

dict[str, FunctionResult]の別名です。

pyfemtet.opt.problem.problem.TrialInput

dict[str, Variable]の別名です。

pyfemtet.opt.problem.problem.TrialOutput

dict[str, ObjectiveResult]の別名です。