33 #ifndef DART_OPTIMIZER_PAGMO_PAGMOMULTIOBJECTIVEPROBLEMADAPTOR_HPP_
34 #define DART_OPTIMIZER_PAGMO_PAGMOMULTIOBJECTIVEPROBLEMADAPTOR_HPP_
37 #include <pagmo/pagmo.hpp>
57 std::shared_ptr<MultiObjectiveProblem> problem);
63 pagmo::vector_double
fitness(
const pagmo::vector_double& x)
const;
66 pagmo::vector_double::size_type
get_nobj()
const;
69 pagmo::vector_double::size_type
get_nec()
const;
72 pagmo::vector_double::size_type
get_nic()
const;
75 pagmo::vector_double::size_type
get_nix()
const;
78 std::pair<pagmo::vector_double, pagmo::vector_double>
get_bounds()
const;
84 template <
typename Archive>
88 std::shared_ptr<MultiObjectiveProblem>
mProb;
92 template <
typename Archive>
95 ar(
mProb->getSolutionDimension(),
mProb->getFitnessDimension());
Adaptor class for the user defined problem (UDP) that is used by Pagmo2.
Definition: PagmoMultiObjectiveProblemAdaptor.hpp:48
pagmo::vector_double fitness(const pagmo::vector_double &x) const
Evaluates fitness, which is a vector of objectives, equality constraints, and inequality constraints.
Definition: PagmoMultiObjectiveProblemAdaptor.cpp:49
PagmoMultiObjectiveProblemAdaptor()=default
Default constructor.
pagmo::vector_double::size_type get_nic() const
Returns the number of inequality constraints.
Definition: PagmoMultiObjectiveProblemAdaptor.cpp:73
pagmo::vector_double::size_type get_nec() const
Returns the number of equality constraints.
Definition: PagmoMultiObjectiveProblemAdaptor.cpp:66
std::pair< pagmo::vector_double, pagmo::vector_double > get_bounds() const
Returns the box-bounds. Infinities in the bounds are allowed.
Definition: PagmoMultiObjectiveProblemAdaptor.cpp:81
pagmo::vector_double::size_type get_nix() const
Returns the dimension of the integer part of the problem.
Definition: PagmoMultiObjectiveProblemAdaptor.cpp:92
std::shared_ptr< MultiObjectiveProblem > mProb
Definition: PagmoMultiObjectiveProblemAdaptor.hpp:88
void serialize(Archive &ar)
Serializes to ar.
Definition: PagmoMultiObjectiveProblemAdaptor.hpp:93
std::string get_name() const
Returns the problem name. Currently always returns "PagmoProblem".
Definition: PagmoMultiObjectiveProblemAdaptor.cpp:100
pagmo::vector_double::size_type get_nobj() const
Returns the number of objectives of the optimization problem.
Definition: PagmoMultiObjectiveProblemAdaptor.cpp:59
Definition: BulletCollisionDetector.cpp:65