/** @file OSParameters.h * * * @author Robert Fourer, Jun Ma, Kipp Martin, * @version 1.0, 10/05/2005 * @since OS1.0 * * \remarks * Copyright (C) 2005, Robert Fourer, Jun Ma, Kipp Martin, * Northwestern University, and the University of Chicago. * All Rights Reserved. * This software is licensed under the Common Public License. * Please see the accompanying LICENSE file in root directory for terms. * */ // CoinFinite includes (I think) which causes a problem //#include //kipp fix up the infinity issue //kipp define OSINFINITY to COIN_DBL_MAX #ifndef OSPARAMETERS #define OSPARAMETERS #include "OSConfig.h" #ifdef HAVE_CMATH # include #else # ifdef HAVE_MATH_H # include # else # error "don't have header file for math" # endif #endif #ifdef HAVE_CFLOAT # include #else # ifdef HAVE_FLOAT_H # include # endif #endif #ifdef HAVE_CIEEEFP # include #else # ifdef HAVE_IEEEFP_H # include # endif #endif #ifdef HAVE_CSTRING # include #else # ifdef HAVE_STRING_H # include # else # error "don't have header file for string" # endif #endif #ifdef HAVE_CSTDLIB # include #else # ifdef HAVE_STDLIB_H # include # endif #endif //#include //#ifdef INFINITY //This is the definition in the ISO C99 standard. // #define OSINFINITY INFINITY //#else // #define OSINFINITY 1e20 //#endif //#define OSINFINITY 1e30 #define OS_E_VALUE exp(1.0) #define OS_PI_VALUE 2*asin(1.0) /** * we use OS_NEAR_EQUAL in unitTest to see if we * are close to the optimal obj value */ #define OS_NEAR_EQUAL 1e-2 #ifdef NAN #define OSNAN NAN #elif defined NaN #define OSNAN NaN #elif defined nan #define OSNAN nan #else #define OSNAN -883849830 #endif #ifdef DBL_MAX #define OSDBL_MAX DBL_MAX #elif defined HUGE_VAL //#define OSDBL_MAX OSINFINITY #define OSDBL_MAX HUGE_VAL #else #define OSDBL_MAX 1e30 #endif #ifdef INT_MAX #define OSINT_MAX INT_MAX #else #define OSINT_MAX 2147483647 #endif #ifndef XSLT_LOCATION #define XSLT_LOCATION OSSRCDIR; #endif #endif