diff --git a/include/ioh/problem/cec/rastrigin.hpp b/include/ioh/problem/cec/rastrigin.hpp index cdc39a1e..da757f5e 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 75e713d0..99365d39 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();