This way it works also when both GLPK and CPLEX are enabled.
2 * src/lemon/lp_cplex.h - Part of LEMON, a generic C++ optimization library
4 * Copyright (C) 2005 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
5 * (Egervary Research Group on Combinatorial Optimization, EGRES).
7 * Permission to use, modify and distribute this software is granted
8 * provided that this copyright notice appears in all copies. For
9 * precise terms see the accompanying LICENSE file.
11 * This software is provided "AS IS" with no warranty of any kind,
12 * express or implied, and with no claim as to its suitability for any
17 #ifndef LEMON_LP_CPLEX_H
18 #define LEMON_LP_CPLEX_H
21 ///\brief Header of the LEMON-CPLEX lp solver interface.
23 #include <lemon/lp_base.h>
25 #include <ilcplex/cplex.h>
31 /// \brief Wrapper for GLPK solver
33 /// This class implements a lemon wrapper for GLPK.
34 class LpCplex : public LpSolverBase {
38 typedef LpSolverBase Parent;
52 virtual LpSolverBase &_newLp();
53 virtual LpSolverBase &_copyLp();
55 virtual int _addCol();
56 virtual int _addRow();
57 virtual void _setRowCoeffs(int i,
60 const Value * values );
61 virtual void _setColCoeffs(int i,
64 const Value * values);
65 virtual void _setColLowerBound(int i, Value value);
66 virtual void _setColUpperBound(int i, Value value);
67 virtual void _setRowLowerBound(int i, Value value);
68 virtual void _setRowUpperBound(int i, Value value);
69 virtual void _setRowBounds(int i, Value lower, Value upper);
70 virtual void _setObjCoeff(int i, Value obj_coef);
71 virtual void _clearObj();
76 virtual SolveExitStatus _solve();
81 virtual Value _getPrimal(int i);
86 virtual Value _getPrimalValue();
91 virtual SolutionStatus _getPrimalStatus();
97 virtual void _setMax();
100 ///\bug Unimplemented
102 virtual void _setMin();
105 } //END OF NAMESPACE LEMON
107 #endif //LEMON_LP_CPLEX_H