- Timestamp:
- 10/25/12 11:22:32 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/ConstantOptimizationAnalyzer.cs
r8845 r8849 36 36 [Item("ConstantOptimizationAnalyzer", "An operator that performs a constant optimization on the best symbolic expression trees.")] 37 37 [StorableClass] 38 public sealed class ConstantOptimizationAnalyzer : SymbolicDataAnalysisSingleObjectiveAnalyzer {38 public sealed class ConstantOptimizationAnalyzer : SymbolicDataAnalysisSingleObjectiveAnalyzer, IStatefulItem { 39 39 private const string PercentageOfBestSolutionsParameterName = "PercentageOfBestSolutions"; 40 40 private const string ConstantOptimizationEvaluatorParameterName = "ConstantOptimizationOperator"; … … 99 99 private double[] qualitiesBeforeCoOp = null; 100 100 private int[] scopeIndexes = null; 101 void IStatefulItem.InitializeState() { 102 qualitiesBeforeCoOp = null; 103 scopeIndexes = null; 104 } 105 void IStatefulItem.ClearState() { 106 qualitiesBeforeCoOp = null; 107 scopeIndexes = null; 108 } 109 101 110 public override IOperation Apply() { 102 111 //code executed for first call of analyzer
Note: See TracChangeset
for help on using the changeset viewer.