24 #include "BlisHeuristic.h"
32 std::vector<CoinPackedVector *> list_;
44 typedef struct vrp_neighbors
96 for (
int k = 0; k < numVertices; ++k) {
139 virtual bool searchSolution(
double & objectiveValue,
double * newSolution);
VrpHeurTSP()
Default Constructor.
void createAdjList(VrpModel *model)
Create adjacent list for each vertex.
virtual bool searchSolution(double &objectiveValue, double *newSolution)
Returns 0 if no solution, 1 if valid solution.
std::vector< int > * edgeColMatch_
Edge and column relationship.
int preNode_
The node at which this heuristic was call.
std::vector< CoinPackedVector * > adjList_
const char * name() const
return name of generator.
bool * visited_
Mark if vertices have been visited.
int * neighbors_
Neighbors determined from LP solution.
VrpHeurTSP & operator=(const VrpHeurTSP &rhs)
Illegal Assignment operator.
std::vector< int > tour_
TSP Tour.
int nodeCalls_
Call how many time at a node.
VrpHeurTSP(VrpModel *model, const char *name, BlisHeurStrategy strategy, int freq)
Constructor with model.
virtual int strategy()
Get/set strategy.