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 #if LEMON_DEFAULT_LP == _LEMON_GLPK || LEMON_DEFAULT_MIP == _LEMON_GLPK
26 #include <lemon/glpk.h>
28 #if LEMON_DEFAULT_LP == _LEMON_CPLEX || LEMON_DEFAULT_MIP == _LEMON_CPLEX
29 #include <lemon/cplex.h>
31 #if LEMON_DEFAULT_LP == _LEMON_SOPLEX
32 #include <lemon/soplex.h>
34 #if LEMON_DEFAULT_LP == _LEMON_CLP
35 #include <lemon/clp.h>
37 #if LEMON_DEFAULT_MIP == _LEMON_CBC
38 #include <lemon/cbc.h>
42 ///\brief Defines a default LP solver
47 ///The default LP solver identifier
49 ///The default LP solver identifier.
52 ///Currently, the possible values are \c _LEMON_GLPK, \c LEMON__CPLEX,
53 ///\c _LEMON_SOPLEX or \c LEMON__CLP
54 #define LEMON_DEFAULT_LP SOLVER
55 ///The default LP solver
57 ///The default LP solver.
60 ///Currently, it is either \c GlpkLp, \c CplexLp, \c SoplexLp or \c ClpLp
63 ///The default MIP solver identifier
65 ///The default MIP solver identifier.
68 ///Currently, the possible values are \c _LEMON_GLPK, \c LEMON__CPLEX
70 #define LEMON_DEFAULT_MIP SOLVER
71 ///The default MIP solver.
73 ///The default MIP solver.
76 ///Currently, it is either \c GlpkMip, \c CplexMip , \c CbcMip
79 #if LEMON_DEFAULT_LP == _LEMON_GLPK
81 #elif LEMON_DEFAULT_LP == _LEMON_CPLEX
83 #elif LEMON_DEFAULT_LP == _LEMON_SOPLEX
85 #elif LEMON_DEFAULT_LP == _LEMON_CLP
88 #if LEMON_DEFAULT_MIP == _LEMON_GLPK
90 #elif LEMON_DEFAULT_MIP == _LEMON_CPLEX
92 #elif LEMON_DEFAULT_MIP == _LEMON_CBC