lp.h

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

Generated on Fri Feb 3 18:38:41 2006 for LEMON by  doxygen 1.4.6