/home/coin/SVN-release/CoinAll-1.1.0/SYMPHONY/Applications/SPP/include/spp_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 /* the Set Partitioning Problem.                                             */
00006 /*                                                                           */
00007 /* (c) Copyright 2005-2008 Marta Eso and Ted Ralphs. All Rights Reserved.    */
00008 /*                                                                           */
00009 /* This application was originally developed by Marta Eso and was modified   */
00010 /* Ted Ralphs (tkralphs@lehigh.edu)                                          */
00011 /*                                                                           */
00012 /* This software is licensed under the Common Public License. Please see     */
00013 /* accompanying file for terms.                                              */
00014 /*                                                                           */
00015 /*===========================================================================*/
00016 
00017 #ifndef _SPP_MACROS_H_
00018 #define _SPP_MACROS_H_
00019 
00020 #define OPEN_WRITE_ERROR(x) \
00021 { \
00022      (void) fprintf(stderr, \
00023                     "ERROR: Could not open file %s for writing!\n", x ); \
00024      exit(1); \
00025 }
00026      
00027 #define OPEN_READ_ERROR(x) \
00028 { \
00029      (void) fprintf(stderr, \
00030                     "ERROR: Could not open file %s for reading!\n", x ); \
00031      exit(1); \
00032 }
00033 
00034 #define IO_ERROR \
00035 { \
00036      (void) fprintf(stderr, \
00037                     "pp_read_input : Problem while reading input file\n"); \
00038      exit(1); \
00039 }
00040 
00041 #endif

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