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_