Changeset 4839 for branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encodings
- Timestamp:
- 11/18/10 17:18:51 (14 years ago)
- Location:
- branches/HeuristicLab.MetaOptimization
- Files:
-
- 4 added
- 3 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.MetaOptimization
- Property svn:ignore
-
old new 1 1 HeuristicLab.MetaOptimization.suo 2 HeuristicLab.MetaOptimization.Test
-
- Property svn:ignore
-
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encodings/Crossovers/ParameterConfigurationCrossover.cs
r4832 r4839 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 1 using HeuristicLab.Common; 2 using HeuristicLab.Core; 3 using HeuristicLab.Data; 4 using HeuristicLab.Encodings.IntegerVectorEncoding; 5 using HeuristicLab.Encodings.RealVectorEncoding; 5 6 using HeuristicLab.Operators; 7 using HeuristicLab.Optimization; 8 using HeuristicLab.Parameters; 6 9 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 7 using HeuristicLab.Core;8 using HeuristicLab.Parameters;9 using HeuristicLab.Encodings.RealVectorEncoding;10 using HeuristicLab.Encodings.BinaryVectorEncoding;11 using HeuristicLab.Encodings.IntegerVectorEncoding;12 using HeuristicLab.Collections;13 using HeuristicLab.Data;14 using HeuristicLab.Optimization;15 using HeuristicLab.Common;16 10 17 11 namespace HeuristicLab.Problems.MetaOptimization.Encodings.Crossovers { … … 79 73 IntegerVector integerChild = HeuristicLab.Encodings.IntegerVectorEncoding.DiscreteCrossover.Apply( 80 74 RandomParameter.ActualValue, 81 new IntegerVector(new IntArray(new int[] { ((IntValue)parameter1. Value).Value })),82 new IntegerVector(new IntArray(new int[] { ((IntValue)parameter2. Value).Value })));75 new IntegerVector(new IntArray(new int[] { ((IntValue)parameter1.ActualValueConfiguration).Value })), 76 new IntegerVector(new IntArray(new int[] { ((IntValue)parameter2.ActualValueConfiguration).Value }))); 83 77 return new IntValue(integerChild[0]); 84 78 } -
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encodings/ValueTypeParameterConfiguration.cs
r4832 r4839 18 18 } 19 19 20 public ValueTypeParameterConfiguration( ParameterConfiguration parentConfiguration, string parameterName, IValueParameter valueParameter) : base(parentConfiguration,parameterName, valueParameter) {20 public ValueTypeParameterConfiguration(string parameterName, IValueParameter valueParameter) : base(parameterName, valueParameter) { 21 21 this.ranges = new ItemList<IRange<T>>(); 22 22 this.ranges.ItemsAdded += new CollectionItemsChangedEventHandler<IndexedItem<IRange<T>>>(ranges_ItemsAdded);
Note: See TracChangeset
for help on using the changeset viewer.