Changeset 7686 for branches/IntegerVectorEncoding/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/IntegerVectorCreator.cs
- Timestamp:
- 04/02/12 16:45:39 (12 years ago)
- Location:
- branches/IntegerVectorEncoding
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/IntegerVectorEncoding
-
Property
svn:ignore
set to
*.suo
-
Property
svn:ignore
set to
-
branches/IntegerVectorEncoding/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/IntegerVectorCreator.cs
r7681 r7686 67 67 private void AfterDeserialization() { 68 68 if (!Parameters.ContainsKey("Bounds")) { 69 var min = ((IValueLookupParameter<IntValue>)Parameters["Minimum"]).Value as IntValue; 70 var max = ((IValueLookupParameter<IntValue>)Parameters["Maximum"]).Value as IntValue; 69 71 Parameters.Remove("Minimum"); 70 72 Parameters.Remove("Maximum"); 71 Parameters.Add(new ValueLookupParameter<IntMatrix>("Bounds", "The bounds matrix can contain one row for each dimension with three columns specifying minimum (inclusive), maximum (inclusive), and step size. If less rows are given the matrix is cycled.")); 73 Parameters.Add(new ValueLookupParameter<IntMatrix>("Bounds", "The bounds matrix can contain one row for each dimension with three columns specifying minimum (inclusive), maximum (exclusive), and step size. If less rows are given the matrix is cycled.")); 74 if (min != null && max != null) { 75 BoundsParameter.Value = new IntMatrix(new int[,] { { min.Value, max.Value, 1 } }); 76 } 72 77 } 73 78 }
Note: See TracChangeset
for help on using the changeset viewer.