- Timestamp:
- 06/18/12 10:16:59 (12 years ago)
- Location:
- branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encoding/Crossovers/ParameterConfigurationCrossover.cs
r6017 r8027 119 119 IntegerVector integerChild = HeuristicLab.Encodings.IntegerVectorEncoding.DiscreteCrossover.Apply( 120 120 RandomParameter.ActualValue, 121 new IntegerVector(new IntArray(new int[] { ((IntValue)parameter1.ActualValue.Value).Value })), 122 new IntegerVector(new IntArray(new int[] { ((IntValue)parameter2.ActualValue.Value).Value }))); 121 new ItemArray<IntegerVector>( 122 new IntegerVector[] { 123 new IntegerVector(new IntArray(new int[] { ((IntValue)parameter1.ActualValue.Value).Value })), 124 new IntegerVector(new IntArray(new int[] { ((IntValue)parameter2.ActualValue.Value).Value })) 125 })); 123 126 return new IntValue(integerChild[0]); 124 127 } -
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Operators/Manipulators/IntValue/UniformIntValueManipulator.cs
r6038 r8027 38 38 do { 39 39 vector[0] = val; 40 UniformOnePositionManipulator.Apply(random, vector, range.LowerBound, new IntValue(range.UpperBound.Value + 1));40 UniformOnePositionManipulator.Apply(random, vector, new IntMatrix(new int[,] { { range.LowerBound.Value, range.UpperBound.Value } } )); 41 41 value.Value = vector[0]; 42 42 value.Value = range.ApplyStepSize(value.Value);
Note: See TracChangeset
for help on using the changeset viewer.