- Timestamp:
- 05/11/10 19:18:32 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/AckleyEvaluator.cs
r3450 r3781 66 66 } 67 67 68 public override RealVector GetBestKnownSolution(int dimension) { 69 return new RealVector(dimension); 70 } 71 68 72 /// <summary> 69 73 /// Evaluates the Ackley function for a specific <paramref name="point"/>. -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/BealeEvaluator.cs
r3376 r3781 66 66 } 67 67 68 public override RealVector GetBestKnownSolution(int dimension) { 69 if (dimension != 2) throw new ArgumentException(Name + ": This function is only defined for 2 dimensions.", "dimension"); 70 return new RealVector(new double[] { 3, 0.5 }); 71 } 68 72 /// <summary> 69 73 /// Evaluates the test function for a specific <paramref name="point"/>. -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/BoothEvaluator.cs
r3376 r3781 65 65 } 66 66 67 public override RealVector GetBestKnownSolution(int dimension) { 68 if (dimension != 2) throw new ArgumentException(Name + ": This function is only defined for 2 dimensions.", "dimension"); 69 return new RealVector(new double[] { 1, 3 }); 70 } 67 71 /// <summary> 68 72 /// Evaluates the test function for a specific <paramref name="point"/>. -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/GriewankEvaluator.cs
r3376 r3781 67 67 } 68 68 69 public override RealVector GetBestKnownSolution(int dimension) { 70 return new RealVector(dimension); 71 } 69 72 /// <summary> 70 73 /// If dimension of the problem is less or equal than 100 the values of Math.Sqrt(i + 1) are precomputed. -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/LevyEvaluator.cs
r3376 r3781 65 65 } 66 66 67 public override RealVector GetBestKnownSolution(int dimension) { 68 if (dimension < 2) throw new ArgumentException(Name + ": This function is not defined for 1 dimension."); 69 RealVector result = new RealVector(dimension); 70 for (int i = 0; i < dimension; i++) result[i] = 1; 71 return result; 72 } 67 73 /// <summary> 68 74 /// Evaluates the test function for a specific <paramref name="point"/>. … … 80 86 81 87 s = Math.Sin(Math.PI * z[0]); 88 if (Math.Abs(s) < 1e-15) s = 0; // Math.Sin(Math.PI) == 0.00000000000000012246063538223773 82 89 s *= s; 83 90 -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/MatyasEvaluator.cs
r3376 r3781 65 65 } 66 66 67 public override RealVector GetBestKnownSolution(int dimension) { 68 if (dimension != 2) throw new ArgumentException(Name + ": This function is only defined for 2 dimensions.", "dimension"); 69 return new RealVector(dimension); 70 } 67 71 /// <summary> 68 72 /// Evaluates the test function for a specific <paramref name="point"/>. -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/RastriginEvaluator.cs
r3376 r3781 80 80 } 81 81 82 public override RealVector GetBestKnownSolution(int dimension) { 83 return new RealVector(dimension); 84 } 85 82 86 /// <summary> 83 87 /// Initializes a new instance of the RastriginEvaluator with one parameter (<c>A</c>). -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/RosenbrockEvaluator.cs
r3376 r3781 69 69 } 70 70 71 public override RealVector GetBestKnownSolution(int dimension) { 72 if (dimension < 2) throw new ArgumentException(Name + ": This function is not defined for 1 dimension."); 73 RealVector result = new RealVector(dimension); 74 for (int i = 0; i < dimension; i++) result[i] = 1; 75 return result; 76 } 77 71 78 /// <summary> 72 79 /// Evaluates the test function for a specific <paramref name="point"/>. -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/SchwefelEvaluator.cs
r3376 r3781 31 31 /// The Schwefel function (sine root) is implemented as described in Affenzeller, M. and Wagner, S. 2005. Offspring Selection: A New Self-Adaptive Selection Scheme for Genetic Algorithms. Ribeiro, B., Albrecht, R. F., Dobnikar, A., Pearson, D. W., and Steele, N. C. (eds.). Adaptive and Natural Computing Algorithms, pp. 218-221, Springer. 32 32 /// </summary> 33 [Item("SchwefelEvaluator", "Evaluates the Schwefel function (sine root) on a given point. The optimum of this function is0 at (420.968746453712,420.968746453712,...,420.968746453712). It is implemented as described in Affenzeller, M. and Wagner, S. 2005. Offspring Selection: A New Self-Adaptive Selection Scheme for Genetic Algorithms. Ribeiro, B., Albrecht, R. F., Dobnikar, A., Pearson, D. W., and Steele, N. C. (eds.). Adaptive and Natural Computing Algorithms, pp. 218-221, Springer.")]33 [Item("SchwefelEvaluator", "Evaluates the Schwefel function (sine root) on a given point. In the given bounds [-500;500] the optimum of this function is close to 0 at (420.968746453712,420.968746453712,...,420.968746453712). It is implemented as described in Affenzeller, M. and Wagner, S. 2005. Offspring Selection: A New Self-Adaptive Selection Scheme for Genetic Algorithms. Ribeiro, B., Albrecht, R. F., Dobnikar, A., Pearson, D. W., and Steele, N. C. (eds.). Adaptive and Natural Computing Algorithms, pp. 218-221, Springer.")] 34 34 [StorableClass] 35 35 public class SchwefelEvaluator : SingleObjectiveTestFunctionProblemEvaluator { … … 65 65 } 66 66 67 public override RealVector GetBestKnownSolution(int dimension) { 68 return null; 69 } 70 67 71 /// <summary> 68 72 /// Evaluates the test function for a specific <paramref name="point"/>. -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/SingleObjectiveTestFunctionProblemEvaluator.cs
r3665 r3781 87 87 return EvaluateFunction(new RealVector(new double[] { x, y })); 88 88 } 89 /// <summary> 90 /// Gets the best known solution for this function. 91 /// </summary> 92 public abstract RealVector GetBestKnownSolution(int dimension); 89 93 90 94 /// <summary> -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/SphereEvaluator.cs
r3376 r3781 66 66 get { return int.MaxValue; } 67 67 } 68 69 public override RealVector GetBestKnownSolution(int dimension) { 70 return new RealVector(dimension); 71 } 72 68 73 /// <summary> 69 74 /// The parameter C modifies the steepness of the objective function y = C * ||X||^Alpha. Default is C = 1. -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/SumSquaresEvaluator.cs
r3376 r3781 65 65 } 66 66 67 public override RealVector GetBestKnownSolution(int dimension) { 68 return new RealVector(dimension); 69 } 70 67 71 /// <summary> 68 72 /// Evaluates the test function for a specific <paramref name="point"/>. -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/ZakharovEvaluator.cs
r3376 r3781 65 65 } 66 66 67 public override RealVector GetBestKnownSolution(int dimension) { 68 return new RealVector(dimension); 69 } 70 67 71 /// <summary> 68 72 /// Evaluates the test function for a specific <paramref name="point"/>.
Note: See TracChangeset
for help on using the changeset viewer.