25 #ifndef PAGMO_PROBLEM_DEATH_PENALTY_H
26 #define PAGMO_PROBLEM_DEATH_PENALTY_H
30 #include "../serialization.h"
33 #include "base_meta.h"
35 namespace pagmo{
namespace problem {
64 death_penalty(
const base & =
cec2006(4),
const method_type = SIMPLE,
const std::vector<double>& = std::vector<double>());
67 std::string get_name()
const;
69 std::string human_readable_extra()
const;
73 friend class boost::serialization::access;
74 template <
class Archive>
75 void serialize(Archive &ar,
const unsigned int)
77 ar & boost::serialization::base_object<base_meta>(*this);
78 ar &
const_cast<method_type &
>(m_method);
79 ar & m_penalty_factors;
81 const method_type m_method;
82 std::vector<double> m_penalty_factors;
89 #endif // PAGMO_PROBLEM_DEATH_PENALTY_H
boost::shared_ptr< base > base_ptr
Alias for shared pointer to base problem.
std::vector< double > decision_vector
Decision vector type.
method_type
Mechanism used to assign the penalty.
The CEC 2006 problems: Constrained Real-Parameter Optimization.
std::vector< double > fitness_vector
Fitness vector type.
Constrainted death penalty meta-problem.