/home/coin/SVN-release/CoinAll-1.1.0/SYMPHONY/Applications/CNRP/include/cnrp_macros.h

Go to the documentation of this file.
00001 /*===========================================================================*/
00002 /*                                                                           */
00003 /* This file is part of a demonstration application for use with the         */
00004 /* SYMPHONY Branch, Cut, and Price Library. This application is a solver for */
00005 /* Capacitated Network Routing Problems.                                     */
00006 /*                                                                           */
00007 /* (c) Copyright 2000-2008 Ted Ralphs. All Rights Reserved.                  */
00008 /*                                                                           */
00009 /* This application was developed by Ted Ralphs (tkralphs@lehigh.edu)        */
00010 /*                                                                           */
00011 /* This software is licensed under the Common Public License. Please see     */
00012 /* accompanying file for terms.                                              */
00013 /*                                                                           */
00014 /*===========================================================================*/
00015 
00016 #ifndef _CNRP_MACROS_H
00017 #define _CNRP_MACROS_H
00018 
00019 /* SYMPHONY include files */
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((double weight, double capacity));
00038 int RHS PROTO((int cust_num, double weight, double capacity));
00039 
00040 #endif

Generated on Sun Nov 14 14:06:41 2010 for Coin-All by  doxygen 1.4.7