From 8f581576b2e1dec0c0366fce62ff1c4e9155e1f0 Mon Sep 17 00:00:00 2001 From: Dimitri Rusin Date: Mon, 27 Nov 2023 18:15:34 +0100 Subject: [PATCH] CEC_Rosenbrock and CEC_Rastrigin names. --- include/ioh/problem/cec/rastrigin.hpp | 4 ++-- include/ioh/problem/cec/rosenbrock.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/ioh/problem/cec/rastrigin.hpp b/include/ioh/problem/cec/rastrigin.hpp index cdc39a1e5..da757f5e4 100644 --- a/include/ioh/problem/cec/rastrigin.hpp +++ b/include/ioh/problem/cec/rastrigin.hpp @@ -6,7 +6,7 @@ namespace ioh::problem::cec { /// The Rastrigin class represents the Rastrigin optimization problem, inheriting necessary functionalities from the CECProblem template class. - class Rastrigin final : public CECProblem + class CEC_Rastrigin final : public CECProblem { protected: @@ -42,7 +42,7 @@ namespace ioh::problem::cec /// Constructor initializing the Rastrigin problem with given instance number and variable count. /// @param instance Instance number for the problem. /// @param n_variables Number of variables for the problem. - Rastrigin(const int instance, const int n_variables) : + CEC_Rastrigin(const int instance, const int n_variables) : CECProblem(meta_problem_id, instance, n_variables, meta_name) { this->set_optimum(); diff --git a/include/ioh/problem/cec/rosenbrock.hpp b/include/ioh/problem/cec/rosenbrock.hpp index 75e713d09..99365d39e 100644 --- a/include/ioh/problem/cec/rosenbrock.hpp +++ b/include/ioh/problem/cec/rosenbrock.hpp @@ -6,7 +6,7 @@ namespace ioh::problem::cec { /// The Rosenbrock class encapsulates the Rosenbrock optimization problem, inheriting functionalities from the template class CECProblem. - class Rosenbrock final : public CECProblem + class CEC_Rosenbrock final : public CECProblem { protected: @@ -44,7 +44,7 @@ namespace ioh::problem::cec /// Constructs a Rosenbrock problem instance with specified number of variables and instance identifier. /// @param instance An integer representing the specific problem instance number. /// @param n_variables An integer representing the number of variables for this problem. - Rosenbrock(const int instance, const int n_variables) : + CEC_Rosenbrock(const int instance, const int n_variables) : CECProblem(meta_problem_id, instance, n_variables, meta_name) { this->set_optimum();