cratepy.optimization.optimizationfunction

Parametric optimization function and loss function interfaces.

This module includes the interface to implement any parameterized function for optimization purposes. This interface offers convenient methods to handle optimization parameters, namely their specification (named or sequential), their bounds, and their normalization/denormalization.

This module also includes the interface of a general loss function defined between a given set of values of parametric and reference solutions, allowing the implementation of common loss functions such as the Relative Root Mean Squared Error (RRMSE).

Classes

OptimizationFunction

Optimization function interface.

Loss

Loss function interface.

RelativeRootMeanSquaredError

Relative Root Mean Squared Error (RRMSE).

Functions

abstractmethod(funcobj)

A decorator indicating abstract methods.

Classes

ABC()

Helper class that provides a standard way to create an ABC using inheritance.

Loss()

Loss function interface.

OptimizationFunction(lower_bounds, upper_bounds)

Optimization function interface.

RelativeRootMeanSquaredError()

Relative Root Mean Squared Error (RRMSE).