00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef _VRP_MACROS_H
00017 #define _VRP_MACROS_H
00018
00019
00020 #include "sym_proto.h"
00021
00022 #define CHECK_DEBUG_PAR(x, y) \
00023 if (x != 0 && x != 4) { \
00024 (void) fprintf(stderr, "\nio: illegal debug parameter %s\n\n", y); \
00025 exit(1); \
00026 }
00027
00028 #define READ_FLOAT_PAR(par) \
00029 if (sscanf(value, "%f", &(par)) != 1){ \
00030 (void) fprintf(stderr, "\nio: error reading parameter %s\n\n", key); \
00031 exit(1); \
00032 }
00033
00034 void BOTH_ENDS PROTO((int index, int *vh, int *vl));
00035 int NEAREST_INT PROTO((double num));
00036 int INDEX PROTO((int v0, int v1));
00037 int BINS PROTO((int weight, int capacity));
00038 int RHS PROTO((int cust_num, int weight, int capacity));
00039
00040 #endif