Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/05/15 11:09:38 (10 years ago)
Author:
abeham
Message:

#2253:

  • Changed parameter from fixedvalue to valuelookup to be consistent with other operators in binary encoding plugin
  • Added backwards compatibility region
  • Fixed several other inconsistencies
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Crossovers/NPointCrossover.cs

    r11171 r11909  
    4141    /// Number of crossover points.
    4242    /// </summary>
    43     public ValueLookupParameter<IntValue> NParameter {
    44       get { return (ValueLookupParameter<IntValue>)Parameters["N"]; }
     43    public IValueLookupParameter<IntValue> NParameter {
     44      get { return (IValueLookupParameter<IntValue>)Parameters["N"]; }
    4545    }
    4646
     
    137137      if (NParameter.ActualValue == null) throw new InvalidOperationException("NPointCrossover: Parameter " + NParameter.ActualName + " could not be found.");
    138138
    139       return Apply(random, parents[0], parents[1], NParameter.Value);
     139      return Apply(random, parents[0], parents[1], NParameter.ActualValue);
    140140    }
    141141  }
Note: See TracChangeset for help on using the changeset viewer.