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 _LEMON_GLPK, \c LEMON__CPLEX,
49 ///\c _LEMON_SOPLEX or \c LEMON__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 _LEMON_GLPK, \c LEMON__CPLEX
66 #define LEMON_DEFAULT_MIP SOLVER
67 ///The default MIP solver.
69 ///The default MIP solver.
72 ///Currently, it is either \c GlpkMip, \c CplexMip , \c CbcMip
75 #if LEMON_DEFAULT_LP == _LEMON_GLPK
77 #elif LEMON_DEFAULT_LP == _LEMON_CPLEX
79 #elif LEMON_DEFAULT_LP == _LEMON_SOPLEX
81 #elif LEMON_DEFAULT_LP == _LEMON_CLP
84 #if LEMON_DEFAULT_MIP == _LEMON_GLPK
86 #elif LEMON_DEFAULT_MIP == _LEMON_CPLEX
88 #elif LEMON_DEFAULT_MIP == _LEMON_CBC