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

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

add SCIPlpiSwitchSetDefaultSolver

  • Property svn:eol-style set to native
File size: 1.2 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/** sets static function pointers to LPI functions of default solver (determined during configure) */
45extern
46SCIP_RETCODE SCIPlpiSwitchSetDefaultSolver();
47
48#ifdef __cplusplus
49}
50#endif
51
52#endif /* LPISWITCH_H_ */
Note: See TracBrowser for help on using the repository browser.