Class TMinimizer

Unit

Declaration

type TMinimizer = class(TComponent)

Description

Adapter supporting set of function pointers ("events") for any optimization task.

Hierarchy

  • TComponent
  • TMinimizer

Overview

Fields

Public FCurrentMinimum: double;
Private FOnComputeFunc: TCalcFunc;
Private FOnEndOfCycle: TEndOfCycle;
Private FOnGetFunc: TFunc;
Private FOnGetParam: TGetParam;
Private FOnGetVariationStep: TGetStep;
Private FOnSetFirstParam: TSetFirstParam;
Private FOnSetNextParam: TSetNextParam;
Private FOnSetParam: TSetParam;
Private FOnSetVariationStep: TSetStep;
Private FOnShowCurMin: TShowCurMin;
Private FTerminated: boolean;

Methods

Public constructor Create(AOwner: TComponent); override;
Public function IsReady: longint; virtual;
Public procedure Minimize(var ErrorCode: longint); virtual; abstract;
Protected procedure SetTerminated(ATerminated: boolean); virtual;

Properties

Published property OnComputeFunc: TCalcFunc read FOnComputeFunc write FOnComputeFunc;
Published property OnEndOfCycle: TEndOfCycle read FOnEndOfCycle write FOnEndOfCycle;
Published property OnGetFunc: TFunc read FOnGetFunc write FOnGetFunc;
Published property OnGetParam: TGetParam read FOnGetParam write FOnGetParam;
Published property OnGetVariationStep: TGetStep read FOnGetVariationStep write FOnGetVariationStep;
Published property OnSetFirstParam: TSetFirstParam read FOnSetFirstParam write FOnSetFirstParam;
Published property OnSetNextParam: TSetNextParam read FOnSetNextParam write FOnSetNextParam;
Published property OnSetParam: TSetParam read FOnSetParam write FOnSetParam;
Published property OnSetVariationStep: TSetStep read FOnSetVariationStep write FOnSetVariationStep;
Published property OnShowCurMin: TShowCurMin read FOnShowCurMin write FOnShowCurMin;
Public property Terminated: boolean read FTerminated write SetTerminated;

Description

Fields

Public FCurrentMinimum: double;
 
Private FOnComputeFunc: TCalcFunc;
 
Private FOnEndOfCycle: TEndOfCycle;
 
Private FOnGetFunc: TFunc;
 
Private FOnGetParam: TGetParam;
 
Private FOnGetVariationStep: TGetStep;
 
Private FOnSetFirstParam: TSetFirstParam;
 
Private FOnSetNextParam: TSetNextParam;
 
Private FOnSetParam: TSetParam;
 
Private FOnSetVariationStep: TSetStep;
 
Private FOnShowCurMin: TShowCurMin;
 
Private FTerminated: boolean;
 

Methods

Public constructor Create(AOwner: TComponent); override;
 
Public function IsReady: longint; virtual;

vozvraschaet kod oshibki

Public procedure Minimize(var ErrorCode: longint); virtual; abstract;
 
Protected procedure SetTerminated(ATerminated: boolean); virtual;
 

Properties

Published property OnComputeFunc: TCalcFunc read FOnComputeFunc write FOnComputeFunc;
 
Published property OnEndOfCycle: TEndOfCycle read FOnEndOfCycle write FOnEndOfCycle;
 
Published property OnGetFunc: TFunc read FOnGetFunc write FOnGetFunc;

property MinInterface: IMinimizer read FMinInterface write FMinInterface;

Published property OnGetParam: TGetParam read FOnGetParam write FOnGetParam;
 
Published property OnGetVariationStep: TGetStep read FOnGetVariationStep write FOnGetVariationStep;
 
Published property OnSetFirstParam: TSetFirstParam read FOnSetFirstParam write FOnSetFirstParam;
 
Published property OnSetNextParam: TSetNextParam read FOnSetNextParam write FOnSetNextParam;
 
Published property OnSetParam: TSetParam read FOnSetParam write FOnSetParam;
 
Published property OnSetVariationStep: TSetStep read FOnSetVariationStep write FOnSetVariationStep;
 
Published property OnShowCurMin: TShowCurMin read FOnShowCurMin write FOnShowCurMin;
 
Public property Terminated: boolean read FTerminated write SetTerminated;
 

Generated by PasDoc 0.15.0.