IGLib
1.7.2
The IGLib base library for development of numerical, technical and business applications.
|
Compares two sets of analysis results in various different ways. More...
Public Member Functions | |
AnalysisComparer () | |
AnalysisComparer (double barrierLength, double barrierHeight) | |
Creates analysis results comparer with initialized penalty evaluator containing one penalty function (common for all constraints) initialized to the default penalty function with specified characteristic barrier length and height. More... | |
AnalysisComparer (double barrierLength, double barrierHeight, double maxZero) | |
Creates analysis results comparer with initialized penalty evaluator with penalty function (common for all constraints) initialized to the default penalty function with specified characteristic barrier length and height and transition point where penalty function becomes non-zero. More... | |
int | Compare (IAnalysisResults an1, IAnalysisResults an2) |
Compares two sets of analysis results points. More... | |
Protected Attributes | |
double | _equalityConstraintTolerance |
bool | _cmpNumViolated = false |
bool | _cmpMaxResidual = false |
bool | _cmpSumResiduals = true |
bool | _cmpMaxPenalty = false |
bool | _cmpSumPenalties = false |
bool | _cmpObjectiveFunction = true |
Properties | |
double | EqualityConstraintTolerance [get, set] |
Gets or sets tolerance for equality constraints. When absolute value of a constraint function is below this tolerance, the corresponding constraint is not considered violated. Tolerance must not be negative. More... | |
IPenaltyEvaluator | PenaltyEvaluator [get, set] |
Gets or sets evaluator of penalty terms. This is needed when e.g. sums of penalty terms are defined. More... | |
bool | CompareNumViolated [get, set] |
Whether number of violated constraints is compared. More... | |
bool | CompareMaxResidual [get, set] |
Whether maximal constraint residual is compared. More... | |
bool | CompareSumResiduals [get, set] |
Whether sum of constraint residuals is compared. More... | |
bool | CompareMaxPenalty [get, set] |
Whether maximal penalty term is compared. More... | |
bool | CompareSumPenalties [get, set] |
Whether sum of penalty terms is compared. More... | |
bool | CompareObjectiveFunction [get, set] |
Whether value of the objective function is compared. More... | |
Private Attributes | |
IPenaltyEvaluator | _penaltyEvaluator = null |
Compares two sets of analysis results in various different ways.
|
inline |
|
inline |
Creates analysis results comparer with initialized penalty evaluator containing one penalty function (common for all constraints) initialized to the default penalty function with specified characteristic barrier length and height.
barrierLength | Characteristic barrrier length. Within this length the created penalty function grows approximately from 0 to characteristic height. |
barrierHeight | Characteristic barrier height. |
|
inline |
Creates analysis results comparer with initialized penalty evaluator with penalty function (common for all constraints) initialized to the default penalty function with specified characteristic barrier length and height and transition point where penalty function becomes non-zero.
barrierLength | Characteristic barrrier length. Within this length the created penalty function grows approximately from 0 to characteristic height. |
barrierHeight | Characteristic barrier height. |
maxZero | Maximal argument for which the created function is 0. |
|
inline |
Compares two sets of analysis results points.
an1 | First set of analysis results. |
an2 | Second set of analysis results. |
References IG.Num.IAnalysisResults.GetMaximalResidual(), IG.Num.IAnalysisResults.GetMaxPenaltyTerm(), IG.Num.IAnalysisResults.GetNumViolatedConstraints(), IG.Num.IAnalysisResults.GetSumPenaltyTerms(), and IG.Num.IAnalysisResults.Objective.
|
protected |
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
getset |
Gets or sets tolerance for equality constraints. When absolute value of a constraint function is below this tolerance, the corresponding constraint is not considered violated. Tolerance must not be negative.
|
getsetprivate |
Gets or sets evaluator of penalty terms. This is needed when e.g. sums of penalty terms are defined.
|
getset |
Whether number of violated constraints is compared.
|
getset |
Whether maximal constraint residual is compared.
|
getset |
Whether sum of constraint residuals is compared.
|
getset |
Whether maximal penalty term is compared.
|
getset |
Whether sum of penalty terms is compared.
|
getset |
Whether value of the objective function is compared.