Dip  0.92.4
lb_types.h
Go to the documentation of this file.
1 /*===========================================================================*/
2 /* */
3 /* This file is part of a demonstration application for use with the */
4 /* SYMPHONY Branch, Cut, and Price Library. This application is a solver for */
5 /* the Vehicle Routing Problem and the Traveling Salesman Problem. */
6 /* */
7 /* This application was developed by Ted Ralphs (ted@lehigh.edu) */
8 /* This file was modified by Ali Pilatin January, 2005 (alp8@lehigh.edu) */
9 /* */
10 /* (c) Copyright 2000-2005 Ted Ralphs. All Rights Reserved. */
11 /* */
12 /* This software is licensed under the Eclipse Public License. Please see */
13 /* accompanying file for terms. */
14 /* */
15 /*===========================================================================*/
16 
17 #ifndef _LB_TYPES_H
18 #define _LB_TYPES_H
19 
20 #include "vrp_common_types.h"
21 #include "lb_params.h"
22 
23 /*---------------------------------------------------------------------------*\
24 | Contains the problem data needed by the lower bounding procedures |
25 \*---------------------------------------------------------------------------*/
26 
27 typedef struct LB_PROB{
28  lb_params par; /*problem parameters*/
29  int vertnum; /*the number of nodes in the problem,*\
30  \*including the depot */
31  int edgenum;
32  int numroutes; /*contains the number of routes that the*\
33  | problem is to be solved with. can be |
34  \*prespecified. */
35  int depot; /*the index of the depot, usually 1*/
36  int capacity; /*the capacity of a truck*/
37  int *demand; /*an array containing the demands for *\
38  | each node. node i's demand is |
39  \*p->demand[i-1] */
40  distances dist; /*contains the information for computing the costs*/
41  int window; /*contains the tid of the graphics window*/
42 
43 }lb_prob;
44 
45 #endif
distances dist
Definition: lb_types.h:40
int capacity
Definition: lb_types.h:36
lb_params par
Definition: lb_types.h:28
int edgenum
Definition: lb_types.h:31
int numroutes
Definition: lb_types.h:32
int window
Definition: lb_types.h:41
int * demand
Definition: lb_types.h:37
int vertnum
Definition: lb_types.h:29
struct LB_PROB lb_prob
int depot
Definition: lb_types.h:35