Adaptor class for the user defined problem (UDP) that is used by Pagmo2.
More...
#include <PagmoMultiObjectiveProblemAdaptor.hpp>
|
| PagmoMultiObjectiveProblemAdaptor ()=default |
| Default constructor. More...
|
|
| PagmoMultiObjectiveProblemAdaptor (std::shared_ptr< MultiObjectiveProblem > problem) |
| Constructor. More...
|
|
pagmo::vector_double | fitness (const pagmo::vector_double &x) const |
| Evaluates fitness, which is a vector of objectives, equality constraints, and inequality constraints. More...
|
|
pagmo::vector_double::size_type | get_nobj () const |
| Returns the number of objectives of the optimization problem. More...
|
|
pagmo::vector_double::size_type | get_nec () const |
| Returns the number of equality constraints. More...
|
|
pagmo::vector_double::size_type | get_nic () const |
| Returns the number of inequality constraints. More...
|
|
pagmo::vector_double::size_type | get_nix () const |
| Returns the dimension of the integer part of the problem. More...
|
|
std::pair< pagmo::vector_double, pagmo::vector_double > | get_bounds () const |
| Returns the box-bounds. Infinities in the bounds are allowed. More...
|
|
std::string | get_name () const |
| Returns the problem name. Currently always returns "PagmoProblem". More...
|
|
template<typename Archive > |
void | serialize (Archive &ar) |
| Serializes to ar . More...
|
|
Adaptor class for the user defined problem (UDP) that is used by Pagmo2.
Please see this for the details: https://esa.github.io/pagmo2/docs/cpp/problem.html
◆ PagmoMultiObjectiveProblemAdaptor() [1/2]
dart::optimizer::PagmoMultiObjectiveProblemAdaptor::PagmoMultiObjectiveProblemAdaptor |
( |
| ) |
|
|
default |
◆ PagmoMultiObjectiveProblemAdaptor() [2/2]
dart::optimizer::PagmoMultiObjectiveProblemAdaptor::PagmoMultiObjectiveProblemAdaptor |
( |
std::shared_ptr< MultiObjectiveProblem > |
problem | ) |
|
|
explicit |
Constructor.
- Parameters
-
[in] | problem | Multi-objective problem to be adapted. |
◆ fitness()
pagmo::vector_double dart::optimizer::PagmoMultiObjectiveProblemAdaptor::fitness |
( |
const pagmo::vector_double & |
x | ) |
const |
Evaluates fitness, which is a vector of objectives, equality constraints, and inequality constraints.
- Parameters
-
[in] | x | Optimization parameters. |
◆ get_bounds()
std::pair< pagmo::vector_double, pagmo::vector_double > dart::optimizer::PagmoMultiObjectiveProblemAdaptor::get_bounds |
( |
| ) |
const |
Returns the box-bounds. Infinities in the bounds are allowed.
◆ get_name()
std::string dart::optimizer::PagmoMultiObjectiveProblemAdaptor::get_name |
( |
| ) |
const |
Returns the problem name. Currently always returns "PagmoProblem".
◆ get_nec()
pagmo::vector_double::size_type dart::optimizer::PagmoMultiObjectiveProblemAdaptor::get_nec |
( |
| ) |
const |
Returns the number of equality constraints.
◆ get_nic()
pagmo::vector_double::size_type dart::optimizer::PagmoMultiObjectiveProblemAdaptor::get_nic |
( |
| ) |
const |
Returns the number of inequality constraints.
◆ get_nix()
pagmo::vector_double::size_type dart::optimizer::PagmoMultiObjectiveProblemAdaptor::get_nix |
( |
| ) |
const |
Returns the dimension of the integer part of the problem.
◆ get_nobj()
pagmo::vector_double::size_type dart::optimizer::PagmoMultiObjectiveProblemAdaptor::get_nobj |
( |
| ) |
const |
Returns the number of objectives of the optimization problem.
◆ serialize()
template<typename Archive >
void dart::optimizer::PagmoMultiObjectiveProblemAdaptor::serialize |
( |
Archive & |
ar | ) |
|
◆ mProb