Changeset 5277 for branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Operators
- Timestamp:
- 01/11/11 16:00:17 (14 years ago)
- Location:
- branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Operators
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Operators/Crossovers/DiscreteIntValueCrossover.cs
r5111 r5277 28 28 } 29 29 30 public void Apply(IRandom random, IntValue value, IntValue Range range) {31 Apply (random, value, range);30 public void Apply(IRandom random, IntValue value, IntValue other, IntValueRange range) { 31 ApplyStatic(random, value, other, range); 32 32 } 33 33 34 public static void ApplyStatic(IRandom random, IntValue value, IntValueRange range) { 35 34 public static void ApplyStatic(IRandom random, IntValue value, IntValue other, IntValueRange range) { 35 if (random.NextDouble() > 0.5) { 36 value.Value = other.Value; 37 } 36 38 } 37 39 } -
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Operators/Interfaces/IDoubleValueCrossover.cs
r5111 r5277 9 9 namespace HeuristicLab.Problems.MetaOptimization { 10 10 public interface IDoubleValueCrossover : ICrossover { 11 void Apply(IRandom random, DoubleValue value, DoubleValue Range range);11 void Apply(IRandom random, DoubleValue value, DoubleValue other, DoubleValueRange range); 12 12 } 13 13 } -
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Operators/Interfaces/IIntValueCrossover.cs
r5111 r5277 9 9 namespace HeuristicLab.Problems.MetaOptimization { 10 10 public interface IIntValueCrossover : ICrossover { 11 void Apply(IRandom random, IntValue value, IntValue Range range);11 void Apply(IRandom random, IntValue value, IntValue other, IntValueRange range); 12 12 } 13 13 }
Note: See TracChangeset
for help on using the changeset viewer.