CEC 2014 Problem Suite (box-bound, single objective)#
-
class cec2014#
The CEC 2014 problems: Real-Parameter Single Objective Optimization Competition.
New in version 2.8.
The 30 problems of the competition on real-parameter single objective optimization problems that was organized for the 2014 IEEE Congress on Evolutionary Computation.
Note
The code for these UDAs is adapted from the original C code distributed during the competition and linked below.
Note
All problems are box-bounded, continuous, single objective problems.
Public Functions
-
cec2014(unsigned prob_id = 1u, unsigned dim = 2u)#
Constructor.
Will construct one of the 30 CEC2014 problems
- Parameters
prob_id – The problem id. One of [1,2,…,30]
dim – problem dimension. One of [2,10,20,30,50,100]
- Throws
invalid_argument – if
prob_id
is not in [1,30] or ifdim
is not one of [2,10,20,30,50,100]
-
std::pair<vector_double, vector_double> get_bounds() const#
Box-bounds.
It returns the box-bounds for this UDP.
- Returns
the lower and upper bounds for each of the decision vector components
-
vector_double fitness(const vector_double&) const#
Fitness computation.
Computes the fitness for this UDP
- Parameters
x – the decision vector.
- Returns
the fitness of
x
.
-
std::string get_name() const#
Problem name.
- Returns
a string containing the problem name
-
inline const vector_double &get_origin_shift() const#
Returns the origin shift.
This method will return the origin shift.
- Returns
The origin shift.
-
cec2014(unsigned prob_id = 1u, unsigned dim = 2u)#