#include <shark/Algorithms/DirectSearch/Operators/Recombination/PartiallyMappedCrossover.h>
#include <shark/Algorithms/DirectSearch/Operators/Selection/RouletteWheelSelection.h>
#include <shark/Algorithms/DirectSearch/Individual.h>
#include <shark/ObjectiveFunctions/AbstractObjectiveFunction.h>
#include <shark/LinAlg/Base.h>
#include <boost/format.hpp>
#include <boost/graph/adjacency_matrix.hpp>
#include <boost/graph/adjacency_list.hpp>
#include <boost/graph/graphml.hpp>
#include <boost/graph/graphviz.hpp>
#include <boost/graph/metric_tsp_approx.hpp>
#include <boost/property_map/dynamic_property_map.hpp>
#include <numeric>
Go to the source code of this file.
Typedefs | |
typedef IntVector | Tour |
typedef boost::adjacency_matrix< boost::undirectedS, boost::property< boost::vertex_color_t, std::string >, boost::property< boost::edge_weight_t, double, boost::property< boost::edge_color_t, std::string > >, boost::no_property > | Graph |
typedef boost::graph_traits< Graph >::vertex_descriptor | Vertex |
typedef boost::graph_traits< Graph >::edge_descriptor | Edge |
typedef boost::property_map< Graph, boost::edge_weight_t >::type | WeightMap |
typedef boost::property_map< Graph, boost::edge_color_t >::type | ColorMap |
typedef Individual< Tour, double > | IndividualType |
typedef std::vector< IndividualType > | Population |
Functions | |
int | main (int argc, char **argv) |
Variables | |
const double | cities [10][10] |
Defines the problem, i.e., its cost matrix. More... | |
typedef boost::adjacency_matrix< boost::undirectedS, boost::property< boost::vertex_color_t, std::string >, boost::property< boost::edge_weight_t, double, boost::property< boost::edge_color_t, std::string > >, boost::no_property > Graph |
typedef Individual< Tour,double > IndividualType |
typedef std::vector< IndividualType > Population |
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 128 of file TSP.cpp.
References cities, lambda, and shark::searchPoint().
const double cities[10][10] |
Defines the problem, i.e., its cost matrix.
Definition at line 70 of file TSP.cpp.
Referenced by main().