Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

BasicDefines.h

Go to the documentation of this file.
00001 //------------------------------------------------------------------------------
00002 //
00003 //  Thomas Berger (main author), Pepijn Schreinemachers, and Thorsten Arnold
00004 //
00005 //
00006 //  Hohenheim University (490d)
00007 //  Professorship for Land Use Economics in the Tropics and Subtropics
00008 //
00009 //  May not be distributed without permission by main author
00010 //
00011 //  File:       BasicDefines.h (formerly const_defs.h)
00012 //
00013 //  Contents:   Contains defines
00014 //
00015 //
00016 //
00017 //------------------------------------------------------------------------------
00018 #ifndef _BasicDefines_h
00019 #define _BasicDefines_h
00020 
00021 /* TODO -cNote : Here description of compiler flags */
00022 /* Compiler Flags:
00023 NRSLV       Uses NR-solver (not debugged)
00024 MTX                     Debug information for MILP MatrixDouble . Now exchanged to "WRITE_MTX()", 
00025 AIX                     Functions only for UNIX, using OSL-solver
00026 OSLMSDLL                Functions only for WIN32, needed to invoke OSL library
00027 OSL                     Debug information for OSL-solver
00028 SLV2                    Start solving with OSL-solver of level 2
00029 DBG2004         Debug information for Pepijn's dissertation
00030 */
00031 
00032 //for BC 4.52 und cxx
00033 #define true 1
00034 #define false 0
00035 
00036 #define _MAXCATCHMENTS_ 10
00037 #define _MAXSECTORS_ 50
00038 //#define _NUM_IRRIGMETHODS_ 7
00039 
00040 // used to set inflows if no files available
00041 #define fixInflows 1.0E6
00042 
00043 
00044 //#ifdef LP_OLD  (well, as the NR solver is not used any more..)
00045 //   //Rounding parameters that improve performance of NR solver
00046 //   #define NK1 4        //number of digits in function round1()
00047 //   #define NK2 0.0001   //precision in function rround2()
00048 //#endif
00049 //Rounding parameters that improve performance in LP_OLD
00050 #ifndef NK1
00051     #define NK1 5        //number of digits in function round1()
00052 #endif
00053 
00054 #ifndef NK2
00055     #define NK2 0.00001   //precision in function rround2()
00056 #endif
00057 
00058 //Misc.
00059 #define MXLENGTH 150    //maximum length of filename
00060 #define NUMDIGIT 0.1 //number of relevant digits when investing in perm. crops
00061 #define OBJNAME 11   //maximum length of name of investment object
00062 #define EXLCOLS 254  //maximum number of columns for building LP model in Excel
00063 #define EPS 1.0e-6   //precision, OSL seems to work with 1.0e-7 (see "ekk_c_api.h")
00064 #define MAXCOLS 10000//maximum number of columns needed for ekk_integerType()
00065 
00066 /* TODO 3 -oBerger -cImplement : Thorsten: maximum agents is static, should become dynamic sooner or later */
00067 #define MAXAGENTSPERSEKTOR 10000// Maximum number of agents per sctor. C
00068 
00069 #define _VERSION_ 1  //default number of stages in lottery
00070 
00071 
00072 //Arnold2006_14
00073 #define _EACHAGENT_ 1
00074 #define _NODATADEF_ -1   //default value vor No data
00075 #define _SEED_DEFAULT_ -2502   //default seed value
00076 #define STAGES 20  //default number of stages in lottery
00077 
00078 #define _maxVal_LU_mas2wasim_  2
00079 
00080 #endif

Generated on Thu Aug 28 12:38:44 2008 for MPMAS by  doxygen 1.3.9.1