TMtxOptimization Class

Header: Dew.Math/MtxVecTools.h · Cross-compiler
tObjectTMtxComponentTMtxOptimization

class TMtxOptimization : public TMtxComponent;

Interfaces the optimization routines.

The component can be used to find the minimum of function of several variables.

How to use TMtxOptimization component?

Results:

Constructors

NameDescription
TMtxOptimization (2)

Destructors

NameDescription
~TMtxOptimization

Properties

NameTypeDescription
AutoUpdateboolAutomatic recalculation.
BlockAssignboolBlock streaming of specific properties when storing only a "template".
ConstantParametersTVec*set/read the additional constants used in minimized function.
DirtyboolBecomes true after any of the properties have changed.
EditorActiveboolReturns True, if the component editor is displayed.
GradHessProcedureTGradHessDefines the gradient vector and Hessian matrix calculation routine.
GradProcedureTGradDefines the gradient vector calculation routine.
GradTolerancedoubleThe precision for numeric gradient and/or Hessian matrix calculation.
Lambda0doubleInitial lambda step used in Marquardt optimization algorithm.
MaxIterationsintmaximum number of iterations allowed for minimum search.
NameDewString
NumericGradMethodTNumericGradMethodDefines which gradient numerical approximation method will be used to to evaluate gradient.
OptimizationMethodTOptMethodOptimization algorithm used for minimum search.
RealFunctionTRealFunctionDefines the function to be minimized.
ReferenceTReferenceList*Stores a list of components that have to be notified, when this component is destroyed.
SoftSearchboolInternal line search algorithm.
StopReasonTOptStopReasonStop reason for optimization algorithm.
TolerancedoublePrecision.
VariableParametersTVec*Set/read the variables in minimized function.
VerbosetStrings*If not nil then the optimization method uses it for logging each optimization step.

Methods

NameDescription
AllowStreamingReturns the negatated value of BlockAssign.
AssignAssign values of all published properties from Source.
AssignTemplateAssign values of "template-like" published properties from Source.
EditorClass
LoadFromStreamLoad the component from Src stream.
LoadTemplateFromFileLoad a template from file.
LoadTemplateFromStreamLoad a template from stream.
RecalculateTriggers TMtxOptimization recalculation.
ReferenceRemoved
ResetReset is called after loading the data from stream or file.
SaveTemplateToFileSave template to file.
SaveTemplateToStreamSave template to stream.
SaveToStreamSave the component to Dst stream.
SetObjectsDefine any additional Object constant parameters in the RealFunction.

Fields

NameTypeDescription
InverseHessTMtx *Returns the inverse of Hessian matrix.
IterationsintReturns number of optimization algorithm iterations.
MinValuedoubleStores value of the objective function, evaluated at minimum.
Tagintptr_t