gemseo / core / mdofunctions

Show inherited members

norm_function module

An MDOFunction subclass to support formulations.

class gemseo.core.mdofunctions.norm_function.NormFunction(orig_func, normalize, round_ints, optimization_problem)[source]

Bases: MDOFunction

An MDOFunction object to be evaluated from an input vector.

Initialize self. See help(type(self)) for accurate signature.

  • orig_func (MDOFunction) – The original function.

  • normalize (bool) – Whether to unnormalize the input vector before evaluating the original function.

  • round_ints (bool) – If True, then round the integer variables.

  • optimization_problem (OptimizationProblem) – The optimization problem object that contains the function.


ValueError – If the original function does not provide a Jacobian matrix.

property expects_normalized_inputs: bool

Whether the functions expect normalized inputs or not.

force_real: bool

Whether to cast the results to real value.

has_default_name: bool

Whether the name has been set with a default value.

last_eval: OutputType | None

The value of the function output at the last evaluation.

None if it has not yet been evaluated.

special_repr: str

The string representation of the function overloading its default string ones.