Changeset 12859 for branches/PerformanceComparison/HeuristicLab.Analysis
- Timestamp:
- 08/13/15 16:04:40 (9 years ago)
- Location:
- branches/PerformanceComparison/HeuristicLab.Analysis/3.3
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/PerformanceComparison/HeuristicLab.Analysis/3.3/HeuristicLab.Analysis-3.3.csproj
r12856 r12859 199 199 <Compile Include="MultiObjective\RankBasedParetoFrontAnalyzer.cs" /> 200 200 <Compile Include="MultiObjective\ParetoFrontAnalyzer.cs" /> 201 <Compile Include="Optimizers\ AlgorithmIterator.cs" />201 <Compile Include="Optimizers\IteratedAlgorithm.cs" /> 202 202 <Compile Include="Optimizers\IRRestarter.cs" /> 203 203 <Compile Include="Plugin.cs" /> -
branches/PerformanceComparison/HeuristicLab.Analysis/3.3/Optimizers/IteratedAlgorithm.cs
r12856 r12859 35 35 /// A run in which an algorithm is executed for a certain maximum time only. 36 36 /// </summary> 37 [Item(" Algorithm Iterator", "An algorithm that repeats an algorithm until either a certain target value is reached or a maximum budget is exceeded.")]37 [Item("Iterated Algorithm", "An algorithm that repeats an algorithm until either a certain target value is reached or a maximum budget is exceeded.")] 38 38 [Creatable(CreatableAttribute.Categories.TestingAndAnalysis, Priority = 116)] 39 39 [StorableClass] 40 public sealed class AlgorithmIterator: Algorithm, IStorableContent {40 public sealed class IteratedAlgorithm : Algorithm, IStorableContent { 41 41 private const string ExecutionTimeResultName = "Execution Time"; 42 42 private const string BestQualityResultName = "BestQuality"; … … 151 151 152 152 [StorableConstructor] 153 private AlgorithmIterator(bool deserializing) : base(deserializing) { }154 private AlgorithmIterator(AlgorithmIteratororiginal, Cloner cloner)153 private IteratedAlgorithm(bool deserializing) : base(deserializing) { } 154 private IteratedAlgorithm(IteratedAlgorithm original, Cloner cloner) 155 155 : base(original, cloner) { 156 156 results = cloner.Clone(original.Results); … … 160 160 RegisterEventHandlers(); 161 161 } 162 public AlgorithmIterator()162 public IteratedAlgorithm() 163 163 : base() { 164 164 results = new ResultCollection(); … … 178 178 public override IDeepCloneable Clone(Cloner cloner) { 179 179 if (ExecutionState == ExecutionState.Started) throw new InvalidOperationException(string.Format("Clone not allowed in execution state \"{0}\".", ExecutionState)); 180 return new AlgorithmIterator(this, cloner);180 return new IteratedAlgorithm(this, cloner); 181 181 } 182 182
Note: See TracChangeset
for help on using the changeset viewer.