1 /* -*- mode: C++; indent-tabs-mode: nil; -*-
3 * This file is a part of LEMON, a generic C++ optimization library.
5 * Copyright (C) 2003-2013
6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
7 * (Egervary Research Group on Combinatorial Optimization, EGRES).
9 * Permission to use, modify and distribute this software is granted
10 * provided that this copyright notice appears in all copies. For
11 * precise terms see the accompanying LICENSE file.
13 * This software is provided "AS IS" with no warranty of any kind,
14 * express or implied, and with no claim as to its suitability for any
22 #include<lemon/config.h>
25 #ifdef LEMON_HAVE_GLPK
26 #include <lemon/glpk.h>
27 #elif LEMON_HAVE_CPLEX
28 #include <lemon/cplex.h>
29 #elif LEMON_HAVE_SOPLEX
30 #include <lemon/soplex.h>
32 #include <lemon/clp.h>
34 #include <lemon/cbc.h>
38 ///\brief Defines a default LP solver
43 ///The default LP solver identifier
45 ///The default LP solver identifier.
48 ///Currently, the possible values are \c GLPK, \c CPLEX,
49 ///\c SOPLEX or \c CLP
50 #define LEMON_DEFAULT_LP SOLVER
51 ///The default LP solver
53 ///The default LP solver.
56 ///Currently, it is either \c GlpkLp, \c CplexLp, \c SoplexLp or \c ClpLp
59 ///The default MIP solver identifier
61 ///The default MIP solver identifier.
64 ///Currently, the possible values are \c GLPK, \c CPLEX or \c CBC
65 #define LEMON_DEFAULT_MIP SOLVER
66 ///The default MIP solver.
68 ///The default MIP solver.
71 ///Currently, it is either \c GlpkMip, \c CplexMip , \c CbcMip
74 #if LEMON_DEFAULT_LP == GLPK
76 #elif LEMON_DEFAULT_LP == CPLEX
78 #elif LEMON_DEFAULT_LP == SOPLEX
80 #elif LEMON_DEFAULT_LP == CLP
83 #if LEMON_DEFAULT_MIP == GLPK
85 #elif LEMON_DEFAULT_MIP == CPLEX
87 #elif LEMON_DEFAULT_MIP == CBC