Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

lp.h

Go to the documentation of this file.
00001 /* -*- C++ -*-
00002  * lemon/lp.h - Part of LEMON, a generic C++ optimization library
00003  *
00004  * Copyright (C) 2005 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
00005  * (Egervary Research Group on Combinatorial Optimization, EGRES).
00006  *
00007  * Permission to use, modify and distribute this software is granted
00008  * provided that this copyright notice appears in all copies. For
00009  * precise terms see the accompanying LICENSE file.
00010  *
00011  * This software is provided "AS IS" with no warranty of any kind,
00012  * express or implied, and with no claim as to its suitability for any
00013  * purpose.
00014  *
00015  */
00016 
00017 #ifndef LEMON_LP_H
00018 #define LEMON_LP_H
00019 
00020 #include<lemon/config.h>
00021 
00022 #ifdef HAVE_GLPK
00023 #include <lemon/lp_glpk.h>
00024 #elif HAVE_CPLEX
00025 #include <lemon/lp_cplex.h>
00026 #endif
00027 
00031 namespace lemon {
00032  
00033 #ifdef DOXYGEN
00034 
00035 
00040 #define DEFAULT_LP SOLVER
00041 
00042 
00047   typedef LpGlpk Lp;
00049 
00054   const char default_solver_name[]="SOLVER";  
00055 #else
00056 #ifdef HAVE_GLPK
00057 #define DEFAULT_LP GLPK
00058   typedef LpGlpk Lp;
00059   const char default_solver_name[]="GLPK";
00060 #elif HAVE_CPLEX
00061 #define DEFAULT_LP CPLEX
00062   typedef LpCplex Lp;
00063   const char default_solver_name[]="CPLEX";
00064 #endif
00065 #endif
00066  
00067 } //namespace lemon
00068 
00069 #endif //LEMON_LP_BASE_H

Generated on Sat Aug 27 14:14:53 2005 for LEMON by  doxygen 1.4.4