Changeset 10096 for branches/HeuristicLab.Analysis.AlgorithmBehavior
- Timestamp:
- 10/30/13 17:05:39 (11 years ago)
- Location:
- branches/HeuristicLab.Analysis.AlgorithmBehavior
- Files:
-
- 5 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers/3.3/CombinedOperators/TFAfterCrossoverCombinedOperator.cs
r9789 r10096 20 20 #endregion 21 21 22 using HeuristicLab.Analysis.SolutionCaching.RealVectorEncoding; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; … … 27 28 [Item("TFAfterCrossoverCombinedOperator", "An operator that contains all operators that need to be executed after crossover for test functions.")] 28 29 [StorableClass] 29 public class TFAfterCrossoverCombinedOperator : AfterCrossoverCombinedOperator {30 public class TFAfterCrossoverCombinedOperator : AfterCrossoverCombinedOperator, IRealVectorAdvice { 30 31 31 32 [StorableConstructor] -
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.SolutionCaching/3.3/HeuristicLab.Analysis.SolutionCaching-3.3.csproj
r10091 r10096 127 127 <Compile Include="Algorithm\SolutionCacheAnalyzerAlgorithm.cs" /> 128 128 <Compile Include="Algorithm\ParallelOperatorProcessor.cs" /> 129 <Compile Include="IAdvice.cs" /> 130 <Compile Include="IPointcut.cs" /> 129 131 <Compile Include="ISolutionCache.cs" /> 130 132 <Compile Include="PermutationEncoding\PermutationSolutionCache.cs" /> … … 133 135 <Compile Include="Plugin.cs" /> 134 136 <Compile Include="Properties\AssemblyInfo.cs" /> 137 <Compile Include="RealVectorEncoding\IRealVectorAdvice.cs" /> 138 <Compile Include="RealVectorEncoding\IRealVectorPointcut.cs" /> 139 <Compile Include="RealVectorEncoding\RealVectorCrossoverPointcut.cs" /> 135 140 <Compile Include="RealVectorEncoding\RealVectorEqualityComparer.cs" /> 136 141 <Compile Include="RealVectorEncoding\RealVectorSolutionCache.cs" /> -
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.SolutionCaching/3.3/PermutationEncoding/PermutationSolutionInformation.cs
r10025 r10096 20 20 #endregion 21 21 22 using System.Collections.Generic;23 22 using HeuristicLab.Common; 24 23 using HeuristicLab.Core; … … 30 29 [StorableClass] 31 30 public class PermutationSolutionInformation : SolutionInformation<Encodings.PermutationEncoding.Permutation> { 32 public PermutationSolutionInformation() { 33 ParentList = new List<Permutation>(); 34 } 31 public PermutationSolutionInformation() : base() { } 35 32 [StorableConstructor] 36 33 protected PermutationSolutionInformation(bool deserializing) : base(deserializing) { } -
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.SolutionCaching/3.3/RealVectorEncoding/RealVectorSolutionInformation.cs
r10024 r10096 20 20 #endregion 21 21 22 using System.Collections.Generic;23 22 using HeuristicLab.Common; 24 23 using HeuristicLab.Core; 25 using HeuristicLab.Encodings.RealVectorEncoding;26 24 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 25 … … 30 28 [StorableClass] 31 29 public class RealVectorSolutionInformation : SolutionInformation<Encodings.RealVectorEncoding.RealVector> { 32 public RealVectorSolutionInformation() { 33 ParentList = new List<RealVector>(); 34 } 30 public RealVectorSolutionInformation() : base() { } 35 31 [StorableConstructor] 36 32 protected RealVectorSolutionInformation(bool deserializing) : base(deserializing) { } -
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.SolutionCaching/3.3/SolutionInformation.cs
r10023 r10096 23 23 using HeuristicLab.Common; 24 24 using HeuristicLab.Core; 25 using HeuristicLab.Optimization; 25 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 27 … … 37 38 [Storable] 38 39 public int Generation { get; set; } 40 [Storable] 41 public ResultCollection InfoStore { get; set; } 39 42 40 public SolutionInformation() { } 43 public SolutionInformation() { 44 ParentList = new List<T>(); 45 InfoStore = new ResultCollection(); 46 } 41 47 42 48 [StorableConstructor] … … 47 53 this.ParentList = new List<T>(original.ParentList); 48 54 this.Generation = original.Generation; 55 this.InfoStore = (ResultCollection)original.InfoStore.Clone(cloner); 49 56 } 50 57 … … 66 73 if (!pi.ParentList.Contains(p)) return false; 67 74 } 75 foreach (IResult info in InfoStore) { 76 if (!pi.InfoStore.Contains(info)) return false; 77 } 68 78 return true; 69 79 } else { … … 71 81 } 72 82 } 83 84 public virtual void AddInfo(Result info) { 85 InfoStore.Add(info); 86 } 73 87 } 74 88 }
Note: See TracChangeset
for help on using the changeset viewer.