Changeset 11640 for branches/Parameter-less Population Pyramid/HeuristicLab.Algorithms.ParameterlessPopulationPyramid/3.3/Problems/BinaryVectorProblem.cs
- Timestamp:
- 12/03/14 17:14:56 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Parameter-less Population Pyramid/HeuristicLab.Algorithms.ParameterlessPopulationPyramid/3.3/Problems/BinaryVectorProblem.cs
r11636 r11640 48 48 protected BinaryVectorProblem(bool deserializing) : base(deserializing) { } 49 49 protected BinaryVectorProblem(BinaryVectorProblem original, Cloner cloner) : base(original, cloner) { } 50 public bool IsBetter(double quality, double bestQuality) { 51 return (Maximization && quality > bestQuality || !Maximization && quality < bestQuality); 52 } 50 53 51 54 public BinaryVectorProblem() 52 55 : base() { 53 Parameters.Add(new FixedValueParameter<IntValue>(LengthParameterName, "", new IntValue( 5)));56 Parameters.Add(new FixedValueParameter<IntValue>(LengthParameterName, "", new IntValue(20))); 54 57 } 55 58
Note: See TracChangeset
for help on using the changeset viewer.