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