Changeset 12408 for branches/TerminationCriteria/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm
- Timestamp:
- 05/28/15 14:22:03 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/TerminationCriteria/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/OffspringSelectionGeneticAlgorithm.cs
r12407 r12408 504 504 } 505 505 private void ParameterizeTerminators() { 506 qualityTerminator.ComparisonValueParameter.ActualName = qualityAnalyzer.CurrentBestQualityParameter.Name; 506 507 if (Problem != null) { 507 508 var maximizationParameter = (IValueParameter<BoolValue>)Problem.MaximizationParameter; … … 509 510 bool maximization = maximizationParameter.Value.Value; 510 511 qualityTerminator.Comparison = maximization ? ComparisonType.Less : ComparisonType.Greater; 511 qualityTerminator.Threshold.Value = maximization ? double.M inValue : double.MaxValue;512 qualityTerminator.Threshold.Value = maximization ? double.MaxValue : double.MinValue; 512 513 } 513 514 } 514 qualityTerminator.ComparisonValueParameter.ActualName = qualityAnalyzer.CurrentBestQualityParameter.Name;515 515 } 516 516 private void ParameterizeComparisonFactorModifiers() {
Note: See TracChangeset
for help on using the changeset viewer.