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....



OnFindNbState


Unit: SDL_math2
Class: TSimAnnealVarSel
Declaration: property OnFindNbState: TOnFindNbStateVarSel;
{ TOnFindNbStateVarSel = procedure (Sender: TObject; CurrentVarSet: TBitFld; var NextVarSet: TBitFld; var Finished: boolean) of object; }

The OnFindNbState event is called when the annealing algorithm needs to get a new variable combination. The parameter CurrentVarSet contains the current subset of variables, the parameter NextVarSet has to be set to reflect the next subset to be evaluated. The variable parameter Finished should be set to TRUE if no new subsets can be found (this effectively stops the annealing process).

The parameters CurrentVarSet and NextVarSet contain 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).

Please note that the routine calls a default handler if you leave OnFindNbState unassigned.



Last Update: 2023-Nov-15