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.
Random seed generator.
Definition at line 55 of file cvrptw.cc.
| int main |
( |
int |
argc, |
|
|
char ** |
argv | |
|
) |
| | |
Variable Documentation
| const char* kTime = "Time" |