Free cookie consent management tool by TermsFeed Policy Generator

Changeset 8027


Ignore:
Timestamp:
06/18/12 10:16:59 (12 years ago)
Author:
abeham
Message:

#1775: updated metaopt branch

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  
    119119      IntegerVector integerChild = HeuristicLab.Encodings.IntegerVectorEncoding.DiscreteCrossover.Apply(
    120120        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          }));
    123126      return new IntValue(integerChild[0]);
    124127    }
  • branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Operators/Manipulators/IntValue/UniformIntValueManipulator.cs

    r6038 r8027  
    3838      do {
    3939        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 } } ));
    4141        value.Value = vector[0];
    4242        value.Value = range.ApplyStepSize(value.Value);
Note: See TracChangeset for help on using the changeset viewer.