Changeset 4564 for trunk/sources/HeuristicLab.Optimization
- Timestamp:
- 10/06/10 21:50:16 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Optimization/3.3
- Files:
-
- 1 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization/3.3/HeuristicLab.Optimization-3.3.csproj
r4065 r4564 115 115 <Compile Include="Interfaces\IRealVectorDecoder.cs" /> 116 116 <Compile Include="Interfaces\IRealVectorEncoder.cs" /> 117 <Compile Include="Problem.cs" /> 117 118 <Compile Include="RunCollectionConstraints\RunCollectionComparisonConstraint.cs" /> 118 119 <Compile Include="RunCollectionConstraints\RunCollectionConstraintCollection.cs" /> … … 163 164 <Compile Include="Interfaces\ITabuMaker.cs" /> 164 165 <Compile Include="Result.cs" /> 166 <Compile Include="SingleObjectiveProblem.cs" /> 165 167 <Compile Include="UserDefinedAlgorithm.cs" /> 166 168 <Compile Include="EngineAlgorithm.cs" /> -
trunk/sources/HeuristicLab.Optimization/3.3/Problem.cs
r4563 r4564 27 27 using HeuristicLab.Common; 28 28 using HeuristicLab.Core; 29 using HeuristicLab.Optimization;30 29 using HeuristicLab.Parameters; 31 30 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 32 31 33 namespace HeuristicLab. Problems.DataAnalysis.Classification {32 namespace HeuristicLab.Optimization { 34 33 [Item("Problem", "Represents a the base class for a problem.")] 35 34 [StorableClass] … … 48 47 protected Problem() 49 48 : base() { 50 operators = new ItemCollection<IOperator>();49 operators = new OperatorCollection(); 51 50 Parameters.Add(new ValueParameter<T>(EvaluatorParameterName, "The operator used to evaluate a solution.")); 52 51 Parameters.Add(new ValueParameter<U>(SolutionCreateParameterName, "The operator to create a solution.")); … … 61 60 public override IDeepCloneable Clone(Cloner cloner) { 62 61 Problem<T, U> clone = (Problem<T, U>)base.Clone(cloner); 63 clone.operators = new ItemCollection<IOperator>(operators.Select(x => (IOperator)cloner.Clone(x)));62 clone.operators = new OperatorCollection(operators.Select(x => (IOperator)cloner.Clone(x))); 64 63 clone.RegisterEventHandlers(); 65 64 return clone; … … 76 75 77 76 #region properties 78 private ItemCollection<IOperator>operators;77 private OperatorCollection operators; 79 78 [Storable(Name = "Operators")] 80 79 private IEnumerable<IOperator> StorableOperators { 81 80 get { return operators; } 82 set { operators = new ItemCollection<IOperator>(value); }81 set { operators = new OperatorCollection(value); } 83 82 } 84 protected ItemCollection<IOperator>Operators {83 protected OperatorCollection Operators { 85 84 get { return this.operators; } 86 85 } -
trunk/sources/HeuristicLab.Optimization/3.3/SingleObjectiveProblem.cs
r4559 r4564 22 22 using HeuristicLab.Core; 23 23 using HeuristicLab.Data; 24 using HeuristicLab.Optimization;25 24 using HeuristicLab.Parameters; 26 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 26 28 namespace HeuristicLab. Problems.DataAnalysis.Classification {27 namespace HeuristicLab.Optimization { 29 28 [Item("Single Objective Problem", "Represents a the base class for a single objective problem.")] 30 29 [StorableClass]
Note: See TracChangeset
for help on using the changeset viewer.