Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/02/12 16:45:39 (12 years ago)
Author:
abeham
Message:

#1775: Updated integer vector encoding

  • Added advanced bounds to all operators
  • Added new operators
  • Changed DiscreteCrossover to work with >= 2 parents
Location:
branches/IntegerVectorEncoding
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/IntegerVectorEncoding

    • Property svn:ignore set to
      *.suo
  • branches/IntegerVectorEncoding/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/IntegerVectorCreator.cs

    r7681 r7686  
    6767    private void AfterDeserialization() {
    6868      if (!Parameters.ContainsKey("Bounds")) {
     69        var min = ((IValueLookupParameter<IntValue>)Parameters["Minimum"]).Value as IntValue;
     70        var max = ((IValueLookupParameter<IntValue>)Parameters["Maximum"]).Value as IntValue;
    6971        Parameters.Remove("Minimum");
    7072        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        }
    7277      }
    7378    }
Note: See TracChangeset for help on using the changeset viewer.