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

Last change on this file since 2693 was 2693, checked in by stefan, 7 years ago

make lpi solver names array static

  • Property svn:eol-style set to native
File size: 1.1 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_XPRESS = 7,
27   SCIP_LPISW_NSOLVERS = 8
28};
29typedef enum SCIP_LPISW_LPSolver SCIP_LPISW_LPSOLVER;
30
31static const char* const SCIP_LPISW_SOLVERNAMES[SCIP_LPISW_NSOLVERS] =
32{ "clp", "cplex", "gurobi", "mosek", "none", "qsopt", "soplex", "xpress" };
33
34/** gets enum of currently used LP solver */
35extern
36SCIP_LPISW_LPSOLVER SCIPlpiSwitchGetCurrentSolver();
37
38/** sets static function pointers to LPI functions of a particular solver */
39extern
40SCIP_RETCODE SCIPlpiSwitchSetSolver(
41   SCIP_LPISW_LPSOLVER   lpsolver            /**< LP Solver to use */
42   );
43
44#ifdef __cplusplus
45}
46#endif
47
48#endif /* LPISWITCH_H_ */
Note: See TracBrowser for help on using the repository browser.