The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



OnEvalCost


Unit: SDL_math2
Class: TSimAnnealVarSel
Declaration: property OnEvalCost: TOnEvalCostSimAnneal;
{ TOnEvalCostSimAnneal = procedure (Sender: TObject; VarSet: TBitFld; var Cost: double) of object; }

The OnEvalCost event is triggered when the annealing algorithm requires a particular model to be evaluated. The parameter VarSet contains an array of flags which indicates which particular variables of the entire set of variables are to be used as independent variables (a TRUE value indicates that the corresponding variable is to be included in the model). The variable parameter Cost has to return the value of the cost function.



Last Update: 2023-Nov-15