Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set
// doxy/ or-tools/ examples/ cpp/

or-tools/examples/cpp/cvrptw.cc File Reference

#include <vector>
#include "base/callback.h"
#include "base/commandlineflags.h"
#include "base/integral_types.h"
#include "base/logging.h"
#include "base/scoped_ptr.h"
#include "base/stringprintf.h"
#include "constraint_solver/routing.h"
#include "base/random.h"

Go to the source code of this file.

Classes

class  LocationContainer
 Location container, contains positions of orders and can be used to obtain Manhattan distances/times between locations. More...
class  LocationContainer::Location
class  RandomDemand
 Random demand. More...
class  ServiceTimePlusTransition
 Service time (proportional to demand) + transition time callback. More...

Functions

 DEFINE_int32 (vrp_orders, 100,"Nodes in the problem.")
 DEFINE_int32 (vrp_vehicles, 20,"Size of Traveling Salesman Problem instance.")
 DEFINE_bool (vrp_use_deterministic_random_seed, false,"Use deterministic random seeds.")
int32 GetSeed ()
 Random seed generator.
void DisplayPlan (const RoutingModel &routing, const Assignment &plan)
 Route plan displayer.
int main (int argc, char **argv)

Variables

const char * kTime = "Time"
const char * kCapacity = "Capacity"


Function Documentation

DEFINE_bool ( vrp_use_deterministic_random_seed  ,
false  ,
"Use deterministic random seeds."   
)

DEFINE_int32 ( vrp_vehicles  ,
20  ,
"Size of Traveling Salesman Problem instance."   
)

DEFINE_int32 ( vrp_orders  ,
100  ,
"Nodes in the problem."   
)

void DisplayPlan ( const RoutingModel &  routing,
const Assignment &  plan 
)

Route plan displayer.

Todo:
TODO(user): Move the display code to the routing library.

Definition at line 160 of file cvrptw.cc.

int32 GetSeed (  ) 

Random seed generator.

Definition at line 55 of file cvrptw.cc.

int main ( int  argc,
char **  argv 
)

Definition at line 210 of file cvrptw.cc.


Variable Documentation

const char* kCapacity = "Capacity"

Definition at line 52 of file cvrptw.cc.

const char* kTime = "Time"

Definition at line 51 of file cvrptw.cc.