25 #ifndef PAGMO_PROBLEM_tsp_vrplc_H
26 #define PAGMO_PROBLEM_tsp_vrplc_H
28 #include <boost/array.hpp>
32 #include "./base_tsp.h"
33 #include "../serialization.h"
35 namespace pagmo {
namespace problem {
57 const std::vector<std::vector<double> >& get_weights()
const;
58 const double& get_capacity()
const;
62 std::string get_name()
const;
63 std::string human_readable_extra()
const;
64 double distance(decision_vector::size_type, decision_vector::size_type)
const;
65 std::vector<std::vector<double> > return_tours(
const decision_vector& x)
const;
70 void check_weights(
const std::vector<std::vector<double> >&)
const;
71 size_t compute_idx(
const size_t i,
const size_t j,
const size_t n)
const;
76 friend class boost::serialization::access;
77 template <
class Archive>
78 void serialize(Archive &ar,
const unsigned int)
80 ar & boost::serialization::base_object<base_tsp>(*this);
82 ar &
const_cast<double&
>(m_capacity);
86 std::vector<std::vector<double> > m_weights;
87 const double m_capacity;
94 #endif //PAGMO_PROBLEM_tsp_vrplc_H
boost::shared_ptr< base > base_ptr
Alias for shared pointer to base problem.
std::vector< double > decision_vector
Decision vector type.
A static Travelling Salesman Problem.
encoding_type
Mechanism used to encode the sequence of vertices to be visited.
std::vector< double > fitness_vector
Fitness vector type.
std::vector< double > constraint_vector
Constraint vector type.
Base TSP (Travelling Salesman Problem).