Changeset 3450 for trunk/sources/HeuristicLab.Problems.TestFunctions/3.3
- Timestamp:
- 04/20/10 18:53:14 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.TestFunctions/3.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/AckleyEvaluator.cs
r3376 r3450 72 72 /// <returns>The result value of the Ackley function at the given point.</returns> 73 73 public static double Apply(RealVector point) { 74 double result = 20 + Math.E;74 double result; 75 75 double val; 76 76 … … 80 80 val /= point.Length; 81 81 val = -0.2 * Math.Sqrt(val); 82 result -=20 * Math.Exp(val);82 result = 20 - 20 * Math.Exp(val); 83 83 84 84 val = 0; … … 86 86 val += Math.Cos(2 * Math.PI * point[i]); 87 87 val /= point.Length; 88 result -=Math.Exp(val);88 result += Math.E - Math.Exp(val); 89 89 return (result); 90 90 } -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/MoveEvaluators/RealVectorAdditiveMoveWrapper.cs
r3187 r3450 31 31 private RealVector vector; 32 32 33 public RealVectorAdditiveMoveWrapper() { 34 dimension = -1; 35 moveDistance = 0; 36 this.vector = new RealVector(); 37 } 38 33 39 public RealVectorAdditiveMoveWrapper(AdditiveMove move, RealVector vector) { 34 40 dimension = move.Dimension; -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/SingleObjectiveTestFunctionProblem.cs
r3336 r3450 40 40 public sealed class SingleObjectiveTestFunctionProblem : ParameterizedNamedItem, ISingleObjectiveProblem { 41 41 [Storable] 42 private St rategyVectorCreator strategyVectorCreator;42 private StdDevStrategyVectorCreator strategyVectorCreator; 43 43 [Storable] 44 private St rategyVectorCrossover strategyVectorCrossover;44 private StdDevStrategyVectorCrossover strategyVectorCrossover; 45 45 [Storable] 46 private St rategyVectorManipulator strategyVectorManipulator;46 private StdDevStrategyVectorManipulator strategyVectorManipulator; 47 47 48 48 public override Image ItemImage { … … 151 151 Parameters.Add(new OptionalValueParameter<DoubleValue>("BestKnownQuality", "The quality of the best known solution of this TSP instance.", new DoubleValue(evaluator.BestKnownQuality))); 152 152 153 strategyVectorCreator = new St rategyVectorCreator();153 strategyVectorCreator = new StdDevStrategyVectorCreator(); 154 154 strategyVectorCreator.LengthParameter.ActualName = ProblemSizeParameter.Name; 155 strategyVectorCrossover = new StrategyVectorCrossover(); 156 strategyVectorManipulator = new StrategyVectorManipulator(); 155 strategyVectorCrossover = new StdDevStrategyVectorCrossover(); 156 strategyVectorManipulator = new StdDevStrategyVectorManipulator(); 157 strategyVectorManipulator.LearningRateParameter.Value = new DoubleValue(0.5); 158 strategyVectorManipulator.GeneralLearningRateParameter.Value = new DoubleValue(0.5); 157 159 158 160 creator.RealVectorParameter.ActualName = "Point";
Note: See TracChangeset
for help on using the changeset viewer.