Dip  0.92.4
mpp.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 Mixed Postman Problem. */
6 /* */
7 /* (c) Copyright 2005-2008 Lehigh University. All Rights Reserved. */
8 /* */
9 /* This application was originally developed by Andrew Hofmann and was */
10 /* modified by Ted Ralphs (ted@lehigh.edu) */
11 /* */
12 /* This software is licensed under the Eclipse Public License. Please see */
13 /* accompanying file for terms. */
14 /* */
15 /*===========================================================================*/
16 
17 #ifndef _MPP_H
18 #define _MPP_H
19 
20 /* Cut types */
21 
22 #define ODD_CUT 1
23 
24 /*---------------------------------------------------------------------------*\
25  * Use this data structure to store the value of any run-time parameters.
26 \*---------------------------------------------------------------------------*/
27 
28 typedef struct MPP_PARAMETERS{
29  /* Name of file containingthe instance data */
31  int test;
32  char test_dir[MAX_FILE_NAME_LENGTH +1]; /* Test files directory */
34 
35 /*---------------------------------------------------------------------------*\
36  * Use this data structure to store the instance data after it is read in.
37 \*---------------------------------------------------------------------------*/
38 
39 typedef struct MPP_PROBLEM{
40  mpp_parameters par; /* the parameters */
41  int numnodes; /* the number of nodes in the graph */
42  int numedges; /* number of edges in the graph */
43  int numarcs; /* number of arcs in the graph */
44  int *cost; /* an array containing the costs */
45  int *head; /* an array containing the head of each arc/edge*/
46  int *tail; /* an array containing the tail of each arc/edge*/
47  char *type; /* an array containing the variable types */
48  int *is_odd; /* array containing a 1 if odd 0 if not*/
49  int odd_checker;/*indicates if odds have been checked */
50 }mpp_problem;
51 
52 #endif
int numarcs
Definition: mpp.h:43
int * cost
Definition: mpp.h:44
char infile[MAX_FILE_NAME_LENGTH+1]
Definition: mpp.h:30
int numedges
Definition: mpp.h:42
int numnodes
Definition: mpp.h:41
#define MAX_FILE_NAME_LENGTH
Definition: sym_proto.h:18
int * is_odd
Definition: mpp.h:48
struct MPP_PARAMETERS mpp_parameters
int * head
Definition: mpp.h:45
char test_dir[MAX_FILE_NAME_LENGTH+1]
Definition: mpp.h:32
mpp_parameters par
Definition: mpp.h:40
struct MPP_PROBLEM mpp_problem
int * tail
Definition: mpp.h:46
int odd_checker
Definition: mpp.h:49
char * type
Definition: mpp.h:47
int test
Definition: mpp.h:31