Free cookie consent management tool by TermsFeed Policy Generator

Changeset 12837 for trunk


Ignore:
Timestamp:
08/04/15 11:45:28 (9 years ago)
Author:
abeham
Message:

#2451: Fixed bug in constructor

Location:
trunk/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/IntegerVectorEncoding.cs

    r12012 r12837  
    130130      }
    131131
    132       LengthParameter = new FixedValueParameter<IntValue>(Name + ".Length", new IntValue(length));
    133       BoundsParameter = new ValueParameter<IntMatrix>(Name + ".Bounds", bounds);
     132      lengthParameter = new FixedValueParameter<IntValue>(Name + ".Length", new IntValue(length));
     133      boundsParameter = new ValueParameter<IntMatrix>(Name + ".Bounds", bounds);
     134      Parameters.Add(lengthParameter);
     135      Parameters.Add(boundsParameter);
    134136
    135137      SolutionCreator = new UniformRandomIntegerVectorCreator();
  • trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/RealVectorEncoding.cs

    r12012 r12837  
    124124        bounds[i, 1] = max[i];
    125125      }
    126       LengthParameter = new FixedValueParameter<IntValue>(Name + ".Length", new IntValue(length));
    127       BoundsParameter = new ValueParameter<DoubleMatrix>(Name + ".Bounds", bounds);
     126      lengthParameter = new FixedValueParameter<IntValue>(Name + ".Length", new IntValue(length));
     127      boundsParameter = new ValueParameter<DoubleMatrix>(Name + ".Bounds", bounds);
     128      Parameters.Add(lengthParameter);
     129      Parameters.Add(boundsParameter);
    128130
    129131      SolutionCreator = new UniformRandomRealVectorCreator();
Note: See TracChangeset for help on using the changeset viewer.