source: ThirdParty/SCIP/trunk/lpiswitch.h @ 3235

Last change on this file since 3235 was 3235, checked in by stefan, 6 years ago

add possibility to use lpi_spx2 and make it default, if soplex available

  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1/* Copyright (C) 2012 Stefan Vigerske and others
2 * All Rights Reserved.
3 * This code is published under the Eclipse Public License.
4 *
5 * Author: Stefan Vigerske
6 */
7
8#ifndef LPISWITCH_H_
9#define LPISWITCH_H_
10
11#include "scip/type_retcode.h"
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17enum SCIP_LPISW_LPSolver
18{
19   SCIP_LPISW_CLP = 0,
20   SCIP_LPISW_CPLEX = 1,
21   SCIP_LPISW_GUROBI = 2,
22   SCIP_LPISW_MOSEK = 3,
23   SCIP_LPISW_NONE = 4,
24   SCIP_LPISW_QSOPT = 5,
25   SCIP_LPISW_SOPLEX = 6,
26   SCIP_LPISW_SOPLEX2 = 7,
27   SCIP_LPISW_XPRESS = 8,
28   SCIP_LPISW_NSOLVERS = 9
29};
30typedef enum SCIP_LPISW_LPSolver SCIP_LPISW_LPSOLVER;
31
32static const char* const SCIP_LPISW_SOLVERNAMES[SCIP_LPISW_NSOLVERS] =
33{ "clp", "cplex", "gurobi", "mosek", "none", "qsopt", "soplex", "soplex2", "xpress" };
34
35/** gets enum of currently used LP solver */
36extern
37SCIP_LPISW_LPSOLVER SCIPlpiSwitchGetCurrentSolver();
38
39/** sets static function pointers to LPI functions of a particular solver */
40extern
41SCIP_RETCODE SCIPlpiSwitchSetSolver(
42   SCIP_LPISW_LPSOLVER   lpsolver            /**< LP Solver to use */
43   );
44
45/** sets static function pointers to LPI functions of default solver (determined during configure) */
46extern
47SCIP_RETCODE SCIPlpiSwitchSetDefaultSolver();
48
49#ifdef __cplusplus
50}
51#endif
52
53#endif /* LPISWITCH_H_ */
Note: See TracBrowser for help on using the repository browser.