IGLib
1.7.2
The IGLib base library for development of numerical, technical and business applications.
|
Public Member Functions | |
virtual void | SetOptimizationData (IOptimizationData data) |
Sets the optimization data where information about optimization problem and algorithm parameters can be obtained. More... | |
virtual void | SetOptimizationResults (IOptimizationResults results) |
Sets the optimization data where information about optimization problem and algorithm parameters can be obtained. More... | |
abstract void | Optimize () |
Performs optimization. This method should be overridden in derived classes. More... | |
Protected Member Functions | |
virtual void | BeforeOptimization () |
Auxiliary housekeeping method that should be called at the beginning of Optimize. More... | |
virtual void | AfterOptimization () |
Auxiliary housekeeping method that should be called at the end of Optimize. More... | |
Protected Attributes | |
bool | _keepBestGuess = false |
Properties | |
object | Lock [get] |
This object's central lock object to be used by other object. Do not use this object for locking in class' methods, for this you should use InternalLock. More... | |
virtual IOptimizationData | OptimizationData [get, set] |
Gets optimization data used by the current optimizer. This structure contains information about optimization problem and algorithm parameters. More... | |
virtual IOptimizationResults | OptimizationResults [get, set] |
Gets optimization results. More... | |
virtual bool | CopyReferences [get, set] |
Indicates whether just references can be copied when setting optimization parameters or results. If false then deep copy is always be performed. Default is false. More... | |
int | NumParameters [get, protected set] |
Number of parameters. More... | |
int | NumObjectives [get, protected set] |
Number of objective functions (normally 1 for this type, but can be 0). More... | |
int | NumConstraints [get, protected set] |
Number of constraints. More... | |
int | NumEqualityConstraints [get, protected set] |
Number of equality constraints. More... | |
IAnalysis | Analysis [get, set] |
Definition of the direct problem (direct analysis). More... | |
IVector | InitialGuess [get, set] |
Gets or sets initial guess used in optimization. More... | |
IVector | InitialStep [get, set] |
Gets or sets initial step used in optimization. More... | |
double | Tolerance [get, set] |
Gets or sets the main tolerance (its exact meaning depends on the algorithm in use). More... | |
int | MaxIterations [get, set] |
Gets or sets maximal number of iterations. More... | |
int | MaxAnalyses [get, set] |
Gets or sets maximal number of analyses. More... | |
bool | Calculated [get, protected set] |
virtual IAnalysisResults | Results [get, protected set] |
Optimization results. More... | |
virtual bool | KeepCurrentGuess [get, set] |
Whether current guess is kept or not. More... | |
virtual IAnalysisResults | CurrentGuess [get, protected set] |
Results of the current guess (usually last analysis that has been performed). More... | |
virtual bool | KeepBestGuess [get, set] |
Whether best results are kept or not. More... | |
virtual IAnalysisResults | BestGuess [get, protected set] |
The best results so far. More... | |
Properties inherited from IG.Num.IOptimizer | |
bool | CopyReferences [get, set] |
Indicates whether just references can be copied when setting optimization parameters or results or auxiliary data. If false then deep copy is always be performed. Default is false. More... | |
int | NumParameters [get] |
Number of parameters. More... | |
int | NumObjectives [get] |
Number of objective functions (normally 1 for this type, but can be 0). More... | |
int | NumConstraints [get] |
Number of constraints. More... | |
int | NumEqualityConstraints [get] |
Number of equality constraints. More... | |
IAnalysis | Analysis [get, set] |
Definition of the direct problem (direct analysis that calculates the response functions). More... | |
IVector | InitialGuess [get, set] |
Gets or sets initial guess used in optimization. More... | |
IVector | InitialStep [get, set] |
Gets or sets initial step used in optimization. More... | |
double | Tolerance [get, set] |
Gets or sets the main tolerance (its exact meaning depends on the algorithm in use). More... | |
int | MaxIterations [get, set] |
Gets or sets maximal number of iterations. More... | |
int | MaxAnalyses [get, set] |
Gets or sets maximal number of analyses. More... | |
IAnalysisResults | Results [get] |
Optimization results. More... | |
bool | KeepCurrentGuess [get] |
Whether current guess is kept or not. More... | |
IAnalysisResults | CurrentGuess [get] |
Results of the current guess (usually last analysis that has been performed). More... | |
bool | KeepBestGuess [get] |
Whether best results are kept or not. More... | |
IAnalysisResults | BestGuess [get] |
The best results so far. More... | |
Properties inherited from IG.Lib.ILockable | |
object | Lock [get] |
Private Attributes | |
object | _mainLock = new object() |
IOptimizationData | _optimizationData |
IOptimizationResults | _optimizationResults |
IAnalysis | _analysis |
|
inlinevirtual |
Sets the optimization data where information about optimization problem and algorithm parameters can be obtained.
data |
|
inlinevirtual |
Sets the optimization data where information about optimization problem and algorithm parameters can be obtained.
results | object on which results are set. |
|
pure virtual |
Performs optimization. This method should be overridden in derived classes.
Methods BeforeOptimization() and AfterOptimization() should be called at the beginning and end of this method.
Implements IG.Num.IOptimizer.
|
inlineprotectedvirtual |
Auxiliary housekeeping method that should be called at the beginning of Optimize.
|
inlineprotectedvirtual |
Auxiliary housekeeping method that should be called at the end of Optimize.
|
private |
|
private |
|
private |
|
private |
|
protected |
|
get |
This object's central lock object to be used by other object. Do not use this object for locking in class' methods, for this you should use InternalLock.
|
getset |
Gets optimization data used by the current optimizer. This structure contains information about optimization problem and algorithm parameters.
Protected internal setter. Setter should be overridden by overriding the SetOptimizationData() method!
|
getset |
Gets optimization results.
This property has protected internal setter.
|
getset |
Indicates whether just references can be copied when setting optimization parameters or results. If false then deep copy is always be performed. Default is false.
|
getprotected set |
Number of parameters.
|
getprotected set |
Number of objective functions (normally 1 for this type, but can be 0).
|
getprotected set |
Number of constraints.
|
getprotected set |
Number of equality constraints.
|
getset |
Definition of the direct problem (direct analysis).
|
getset |
Gets or sets initial guess used in optimization.
|
getset |
Gets or sets initial step used in optimization.
|
getset |
Gets or sets the main tolerance (its exact meaning depends on the algorithm in use).
|
getset |
Gets or sets maximal number of iterations.
|
getset |
Gets or sets maximal number of analyses.
|
getprotected set |
|
getprotected set |
Optimization results.
|
getset |
Whether current guess is kept or not.
|
getprotected set |
Results of the current guess (usually last analysis that has been performed).
|
getset |
Whether best results are kept or not.
|
getprotected set |
The best results so far.