OR-Tools  9.6
cvrptw_soft_capacity.cc File Reference

Go to the source code of this file.

Functions

 ABSL_FLAG (int, vrp_orders, 100, "Number of nodes in the problem.")
 
 ABSL_FLAG (int, vrp_vehicles, 20, "Number of vehicles in the problem.")
 
 ABSL_FLAG (int, vrp_vehicle_hard_capacity, 80, "Hard capacity for a vehicle; set to 0 to disable the hard capacity " "constraint")
 
 ABSL_FLAG (int, vrp_vehicle_soft_capacity, 40, "Soft capacity for a vehicle; set to 0 to disable the soft capacity " "constraint")
 
 ABSL_FLAG (int, vrp_vehicle_soft_capacity_cost, 5000, "Cost of using a vehicle beyond its soft capacity (per unit " "of storage over the soft capacity)")
 
 ABSL_FLAG (bool, vrp_use_deterministic_random_seed, false, "Use deterministic random seeds.")
 
 ABSL_FLAG (bool, vrp_use_same_vehicle_costs, false, "Use same vehicle costs in the routing model")
 
 ABSL_FLAG (std::string, routing_search_parameters, "", "Text proto RoutingSearchParameters (possibly partial) that will " "override the DefaultRoutingSearchParameters()")
 
int main (int argc, char **argv)
 

Variables

const char * kTime = "Time"
 
const char * kCapacity = "Capacity"
 
const int64_t kMaxNodesPerGroup = 10
 
const int64_t kSameVehicleCost = 1000
 

Function Documentation

◆ ABSL_FLAG() [1/8]

ABSL_FLAG ( bool  ,
vrp_use_deterministic_random_seed  ,
false  ,
"Use deterministic random seeds."   
)

◆ ABSL_FLAG() [2/8]

ABSL_FLAG ( bool  ,
vrp_use_same_vehicle_costs  ,
false  ,
"Use same vehicle costs in the routing model  
)

◆ ABSL_FLAG() [3/8]

ABSL_FLAG ( int  ,
vrp_orders  ,
100  ,
"Number of nodes in the problem."   
)

◆ ABSL_FLAG() [4/8]

ABSL_FLAG ( int  ,
vrp_vehicle_hard_capacity  ,
80  ,
"Hard capacity for a vehicle; set to 0 to disable the hard capacity " "constraint"   
)

◆ ABSL_FLAG() [5/8]

ABSL_FLAG ( int  ,
vrp_vehicle_soft_capacity  ,
40  ,
"Soft capacity for a vehicle; set to 0 to disable the soft capacity " "constraint"   
)

◆ ABSL_FLAG() [6/8]

ABSL_FLAG ( int  ,
vrp_vehicle_soft_capacity_cost  ,
5000  ,
"Cost of using a vehicle beyond its soft capacity (per unit " "of storage over the soft capacity)"   
)

◆ ABSL_FLAG() [7/8]

ABSL_FLAG ( int  ,
vrp_vehicles  ,
20  ,
"Number of vehicles in the problem."   
)

◆ ABSL_FLAG() [8/8]

ABSL_FLAG ( std::string  ,
routing_search_parameters  ,
""  ,
"Text proto RoutingSearchParameters (possibly partial) that will " "override the DefaultRoutingSearchParameters()"   
)

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 75 of file cvrptw_soft_capacity.cc.

Variable Documentation

◆ kCapacity

const char* kCapacity = "Capacity"

Definition at line 71 of file cvrptw_soft_capacity.cc.

◆ kMaxNodesPerGroup

const int64_t kMaxNodesPerGroup = 10

Definition at line 72 of file cvrptw_soft_capacity.cc.

◆ kSameVehicleCost

const int64_t kSameVehicleCost = 1000

Definition at line 73 of file cvrptw_soft_capacity.cc.

◆ kTime

const char* kTime = "Time"

Definition at line 70 of file cvrptw_soft_capacity.cc.