TOptControl Class

Header: Dew.Math/Optimization.h · Cross-compiler
tObjecttStringstStringListTOptControl

class TOptControl : public tStringList;

Optional object class type to be passed to optimization routines.

Create and pass this object as the "Verbose" parameter to the optimization routines. This object allows different type of optimization control, if the optimization is executed inside of a thread.

Constructors

NameDescription
TOptControl

Methods

NameDescription
WaitForReturns True, if before ms amount of miliseconds has elapsed, the Stopped field was set to True

Fields

NameTypeDescription
FunEvalboolReturns True, if functiona evaluation is in progress (not for the purpose of gradient or jacoby, used only by TR for now)
IterintContains the current iteration count, which can be read from another thread, while the optimization algorithm is running.
StopboolInitialized to false by the algorithm. The user can set this property to True (from another thread), to stop the optimization process.
StoppedboolSet to True by the optimization algorithm just before the function will exit.
VerboseboolIf True, log messages will be appended to the inherited TStringList.