Skip to content

Commit

Permalink
CEC_Rosenbrock and CEC_Rastrigin names.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitri Rusin committed Nov 27, 2023
1 parent 6d73070 commit 8f58157
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/ioh/problem/cec/rastrigin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<Rastrigin>
class CEC_Rastrigin final : public CECProblem<CEC_Rastrigin>
{
protected:

Expand Down Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions include/ioh/problem/cec/rosenbrock.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<Rosenbrock>
class CEC_Rosenbrock final : public CECProblem<CEC_Rosenbrock>
{
protected:

Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 8f58157

Please sign in to comment.