| 1 | 1 |
/* -*- mode: C++; indent-tabs-mode: nil; -*- |
| 2 | 2 |
* |
| 3 | 3 |
* This file is a part of LEMON, a generic C++ optimization library. |
| 4 | 4 |
* |
| 5 | 5 |
* Copyright (C) 2003-2008 |
| 6 | 6 |
* Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport |
| 7 | 7 |
* (Egervary Research Group on Combinatorial Optimization, EGRES). |
| 8 | 8 |
* |
| 9 | 9 |
* Permission to use, modify and distribute this software is granted |
| 10 | 10 |
* provided that this copyright notice appears in all copies. For |
| 11 | 11 |
* precise terms see the accompanying LICENSE file. |
| 12 | 12 |
* |
| 13 | 13 |
* This software is provided "AS IS" with no warranty of any kind, |
| 14 | 14 |
* express or implied, and with no claim as to its suitability for any |
| 15 | 15 |
* purpose. |
| 16 | 16 |
* |
| 17 | 17 |
*/ |
| 18 | 18 |
|
| 19 | 19 |
#ifndef LEMON_GLPK_H |
| 20 | 20 |
#define LEMON_GLPK_H |
| 21 | 21 |
|
| 22 | 22 |
///\file |
| 23 | 23 |
///\brief Header of the LEMON-GLPK lp solver interface. |
| 24 | 24 |
///\ingroup lp_group |
| 25 | 25 |
|
| 26 | 26 |
#include <lemon/lp_base.h> |
| 27 | 27 |
|
| 28 | 28 |
// forward declaration |
| 29 | 29 |
#ifndef _GLP_PROB |
| 30 | 30 |
#define _GLP_PROB |
| 31 | 31 |
typedef struct { double _prob; } glp_prob;
|
| 32 | 32 |
/* LP/MIP problem object */ |
| 33 | 33 |
#endif |
| 34 | 34 |
|
| 35 | 35 |
namespace lemon {
|
| 36 | 36 |
|
| 37 | 37 |
|
| 38 | 38 |
/// \brief Base interface for the GLPK LP and MIP solver |
| 39 | 39 |
/// |
| 40 | 40 |
/// This class implements the common interface of the GLPK LP and MIP solver. |
| 41 | 41 |
/// \ingroup lp_group |
| 42 | 42 |
class GlpkBase : virtual public LpBase {
|
| 43 | 43 |
protected: |
| 44 | 44 |
|
| 45 | 45 |
typedef glp_prob LPX; |
| 46 | 46 |
glp_prob* lp; |
| 47 | 47 |
|
| 48 | 48 |
GlpkBase(); |
| 49 | 49 |
GlpkBase(const GlpkBase&); |
| 50 | 50 |
virtual ~GlpkBase(); |
| 51 | 51 |
|
| 52 | 52 |
protected: |
| 53 | 53 |
|
| 54 | 54 |
virtual int _addCol(); |
| 55 | 55 |
virtual int _addRow(); |
| 56 | 56 |
|
| 57 | 57 |
virtual void _eraseCol(int i); |
| 58 | 58 |
virtual void _eraseRow(int i); |
| 59 | 59 |
|
| 60 | 60 |
virtual void _eraseColId(int i); |
| 61 | 61 |
virtual void _eraseRowId(int i); |
| 62 | 62 |
|
| 63 | 63 |
virtual void _getColName(int col, std::string& name) const; |
| 64 | 64 |
virtual void _setColName(int col, const std::string& name); |
| 65 | 65 |
virtual int _colByName(const std::string& name) const; |
| 66 | 66 |
|
| 67 | 67 |
virtual void _getRowName(int row, std::string& name) const; |
| 68 | 68 |
virtual void _setRowName(int row, const std::string& name); |
| 69 | 69 |
virtual int _rowByName(const std::string& name) const; |
| 70 | 70 |
|
| 71 | 71 |
virtual void _setRowCoeffs(int i, ExprIterator b, ExprIterator e); |
| 72 | 72 |
virtual void _getRowCoeffs(int i, InsertIterator b) const; |
| 73 | 73 |
|
| 74 | 74 |
virtual void _setColCoeffs(int i, ExprIterator b, ExprIterator e); |
| 75 | 75 |
virtual void _getColCoeffs(int i, InsertIterator b) const; |
| 76 | 76 |
|
| 77 | 77 |
virtual void _setCoeff(int row, int col, Value value); |
| 78 | 78 |
virtual Value _getCoeff(int row, int col) const; |
| 79 | 79 |
|
| 80 | 80 |
virtual void _setColLowerBound(int i, Value value); |
| 81 | 81 |
virtual Value _getColLowerBound(int i) const; |
| 82 | 82 |
|
| 83 | 83 |
virtual void _setColUpperBound(int i, Value value); |
| 84 | 84 |
virtual Value _getColUpperBound(int i) const; |
| 85 | 85 |
|
| 86 | 86 |
virtual void _setRowLowerBound(int i, Value value); |
| 87 | 87 |
virtual Value _getRowLowerBound(int i) const; |
| 88 | 88 |
|
| 89 | 89 |
virtual void _setRowUpperBound(int i, Value value); |
| 90 | 90 |
virtual Value _getRowUpperBound(int i) const; |
| 91 | 91 |
|
| 92 | 92 |
virtual void _setObjCoeffs(ExprIterator b, ExprIterator e); |
| 93 | 93 |
virtual void _getObjCoeffs(InsertIterator b) const; |
| 94 | 94 |
|
| 95 | 95 |
virtual void _setObjCoeff(int i, Value obj_coef); |
| 96 | 96 |
virtual Value _getObjCoeff(int i) const; |
| 97 | 97 |
|
| 98 | 98 |
virtual void _setSense(Sense); |
| 99 | 99 |
virtual Sense _getSense() const; |
| 100 | 100 |
|
| 101 | 101 |
virtual void _clear(); |
| 102 | 102 |
|
| 103 | 103 |
public: |
| 104 | 104 |
|
| 105 | 105 |
///Pointer to the underlying GLPK data structure. |
| 106 | 106 |
LPX *lpx() {return lp;}
|
| 107 | 107 |
///Const pointer to the underlying GLPK data structure. |
| 108 | 108 |
const LPX *lpx() const {return lp;}
|
| 109 | 109 |
|
| 110 | 110 |
///Returns the constraint identifier understood by GLPK. |
| 111 | 111 |
int lpxRow(Row r) const { return rows(id(r)); }
|
| 112 | 112 |
|
| 113 | 113 |
///Returns the variable identifier understood by GLPK. |
| 114 | 114 |
int lpxCol(Col c) const { return cols(id(c)); }
|
| 115 | 115 |
|
| 116 | 116 |
}; |
| 117 | 117 |
|
| 118 | 118 |
/// \brief Interface for the GLPK LP solver |
| 119 | 119 |
/// |
| 120 | 120 |
/// This class implements an interface for the GLPK LP solver. |
| 121 | 121 |
///\ingroup lp_group |
| 122 | 122 |
class GlpkLp : public LpSolver, public GlpkBase {
|
| 123 | 123 |
public: |
| 124 | 124 |
|
| 125 | 125 |
///\e |
| 126 | 126 |
GlpkLp(); |
| 127 | 127 |
///\e |
| 128 | 128 |
GlpkLp(const GlpkLp&); |
| 129 | 129 |
|
| 130 | 130 |
///\e |
| 131 | 131 |
virtual GlpkLp* cloneSolver() const; |
| 132 | 132 |
///\e |
| 133 | 133 |
virtual GlpkLp* newSolver() const; |
| 134 | 134 |
|
| 135 | 135 |
private: |
| 136 | 136 |
|
| 137 | 137 |
mutable std::vector<double> _primal_ray; |
| 138 | 138 |
mutable std::vector<double> _dual_ray; |
| 139 | 139 |
|
| 140 | 140 |
void _clear_temporals(); |
| 141 | 141 |
|
| 142 | 142 |
protected: |
| 143 | 143 |
|
| 144 | 144 |
virtual const char* _solverName() const; |
| 145 | 145 |
|
| 146 | 146 |
virtual SolveExitStatus _solve(); |
| 147 | 147 |
virtual Value _getPrimal(int i) const; |
| 148 | 148 |
virtual Value _getDual(int i) const; |
| 149 | 149 |
|
| 150 | 150 |
virtual Value _getPrimalValue() const; |
| 151 | 151 |
|
| 152 | 152 |
virtual VarStatus _getColStatus(int i) const; |
| 153 | 153 |
virtual VarStatus _getRowStatus(int i) const; |
| 154 | 154 |
|
| 155 | 155 |
virtual Value _getPrimalRay(int i) const; |
| 156 | 156 |
virtual Value _getDualRay(int i) const; |
| 157 | 157 |
|
| 158 |
///\todo It should be clarified |
|
| 159 |
/// |
|
| 160 | 158 |
virtual ProblemType _getPrimalType() const; |
| 161 | 159 |
virtual ProblemType _getDualType() const; |
| 162 | 160 |
|
| 163 | 161 |
public: |
| 164 | 162 |
|
| 165 | 163 |
///Solve with primal simplex |
| 166 | 164 |
SolveExitStatus solvePrimal(); |
| 167 | 165 |
|
| 168 | 166 |
///Solve with dual simplex |
| 169 | 167 |
SolveExitStatus solveDual(); |
| 170 | 168 |
|
| 171 | 169 |
///Turns on or off the presolver |
| 172 | 170 |
|
| 173 | 171 |
///Turns on (\c b is \c true) or off (\c b is \c false) the presolver |
| 174 | 172 |
/// |
| 175 | 173 |
///The presolver is off by default. |
| 176 | 174 |
void presolver(bool b); |
| 177 | 175 |
|
| 178 | 176 |
///Enum for \c messageLevel() parameter |
| 179 | 177 |
enum MessageLevel {
|
| 180 | 178 |
/// no output (default value) |
| 181 | 179 |
MESSAGE_NO_OUTPUT = 0, |
| 182 | 180 |
/// error messages only |
| 183 | 181 |
MESSAGE_ERROR_MESSAGE = 1, |
| 184 | 182 |
/// normal output |
| 185 | 183 |
MESSAGE_NORMAL_OUTPUT = 2, |
| 186 | 184 |
/// full output (includes informational messages) |
| 187 | 185 |
MESSAGE_FULL_OUTPUT = 3 |
| 188 | 186 |
}; |
| 189 | 187 |
|
| 190 | 188 |
private: |
| 191 | 189 |
|
| 192 | 190 |
MessageLevel _message_level; |
| 193 | 191 |
|
| 194 | 192 |
public: |
| 195 | 193 |
|
| 196 | 194 |
///Set the verbosity of the messages |
| 197 | 195 |
|
| 198 | 196 |
///Set the verbosity of the messages |
| 199 | 197 |
/// |
| 200 | 198 |
///\param m is the level of the messages output by the solver routines. |
| 201 | 199 |
void messageLevel(MessageLevel m); |
| 202 | 200 |
}; |
| 203 | 201 |
|
| 204 | 202 |
/// \brief Interface for the GLPK MIP solver |
| 205 | 203 |
/// |
| 206 | 204 |
/// This class implements an interface for the GLPK MIP solver. |
| 207 | 205 |
///\ingroup lp_group |
| 208 | 206 |
class GlpkMip : public MipSolver, public GlpkBase {
|
| 209 | 207 |
public: |
| 210 | 208 |
|
| 211 | 209 |
///\e |
| 212 | 210 |
GlpkMip(); |
| 213 | 211 |
///\e |
| 214 | 212 |
GlpkMip(const GlpkMip&); |
| 215 | 213 |
|
| 216 | 214 |
virtual GlpkMip* cloneSolver() const; |
| 217 | 215 |
virtual GlpkMip* newSolver() const; |
| 218 | 216 |
|
| 219 | 217 |
protected: |
| 220 | 218 |
|
| 221 | 219 |
virtual const char* _solverName() const; |
| 222 | 220 |
|
| 223 | 221 |
virtual ColTypes _getColType(int col) const; |
| 224 | 222 |
virtual void _setColType(int col, ColTypes col_type); |
| 225 | 223 |
|
| 226 | 224 |
virtual SolveExitStatus _solve(); |
| 227 | 225 |
virtual ProblemType _getType() const; |
| 228 | 226 |
virtual Value _getSol(int i) const; |
| 229 | 227 |
virtual Value _getSolValue() const; |
| 230 | 228 |
|
| 231 | 229 |
///Enum for \c messageLevel() parameter |
| 232 | 230 |
enum MessageLevel {
|
| 233 | 231 |
/// no output (default value) |
| 234 | 232 |
MESSAGE_NO_OUTPUT = 0, |
| 235 | 233 |
/// error messages only |
| 236 | 234 |
MESSAGE_ERROR_MESSAGE = 1, |
| 237 | 235 |
/// normal output |
| 238 | 236 |
MESSAGE_NORMAL_OUTPUT = 2, |
| 239 | 237 |
/// full output (includes informational messages) |
| 240 | 238 |
MESSAGE_FULL_OUTPUT = 3 |
| 241 | 239 |
}; |
| 242 | 240 |
|
| 243 | 241 |
private: |
| 244 | 242 |
|
| 245 | 243 |
MessageLevel _message_level; |
| 246 | 244 |
|
| 247 | 245 |
public: |
| 248 | 246 |
|
| 249 | 247 |
///Set the verbosity of the messages |
| 250 | 248 |
|
| 251 | 249 |
///Set the verbosity of the messages |
| 252 | 250 |
/// |
| 253 | 251 |
///\param m is the level of the messages output by the solver routines. |
| 254 | 252 |
void messageLevel(MessageLevel m); |
| 255 | 253 |
}; |
| 256 | 254 |
|
| 257 | 255 |
|
| 258 | 256 |
} //END OF NAMESPACE LEMON |
| 259 | 257 |
|
| 260 | 258 |
#endif //LEMON_GLPK_H |
| 261 | 259 |
| 1 | 1 |
/* -*- mode: C++; indent-tabs-mode: nil; -*- |
| 2 | 2 |
* |
| 3 | 3 |
* This file is a part of LEMON, a generic C++ optimization library. |
| 4 | 4 |
* |
| 5 | 5 |
* Copyright (C) 2003-2008 |
| 6 | 6 |
* Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport |
| 7 | 7 |
* (Egervary Research Group on Combinatorial Optimization, EGRES). |
| 8 | 8 |
* |
| 9 | 9 |
* Permission to use, modify and distribute this software is granted |
| 10 | 10 |
* provided that this copyright notice appears in all copies. For |
| 11 | 11 |
* precise terms see the accompanying LICENSE file. |
| 12 | 12 |
* |
| 13 | 13 |
* This software is provided "AS IS" with no warranty of any kind, |
| 14 | 14 |
* express or implied, and with no claim as to its suitability for any |
| 15 | 15 |
* purpose. |
| 16 | 16 |
* |
| 17 | 17 |
*/ |
| 18 | 18 |
|
| 19 | 19 |
#ifndef LEMON_LP_SKELETON_H |
| 20 | 20 |
#define LEMON_LP_SKELETON_H |
| 21 | 21 |
|
| 22 | 22 |
#include <lemon/lp_base.h> |
| 23 | 23 |
|
| 24 | 24 |
///\file |
| 25 | 25 |
///\brief Skeleton file to implement LP/MIP solver interfaces |
| 26 | 26 |
/// |
| 27 | 27 |
///The classes in this file do nothing, but they can serve as skeletons when |
| 28 | 28 |
///implementing an interface to new solvers. |
| 29 | 29 |
namespace lemon {
|
| 30 | 30 |
|
| 31 | 31 |
///A skeleton class to implement LP/MIP solver base interface |
| 32 | 32 |
|
| 33 | 33 |
///This class does nothing, but it can serve as a skeleton when |
| 34 | 34 |
///implementing an interface to new solvers. |
| 35 | 35 |
class SkeletonSolverBase : public virtual LpBase {
|
| 36 | 36 |
int col_num,row_num; |
| 37 | 37 |
|
| 38 | 38 |
protected: |
| 39 | 39 |
|
| 40 | 40 |
SkeletonSolverBase() |
| 41 | 41 |
: col_num(-1), row_num(-1) {}
|
| 42 | 42 |
|
| 43 | 43 |
/// \e |
| 44 | 44 |
virtual int _addCol(); |
| 45 | 45 |
/// \e |
| 46 | 46 |
virtual int _addRow(); |
| 47 | 47 |
/// \e |
| 48 | 48 |
virtual void _eraseCol(int i); |
| 49 | 49 |
/// \e |
| 50 | 50 |
virtual void _eraseRow(int i); |
| 51 | 51 |
|
| 52 | 52 |
/// \e |
| 53 | 53 |
virtual void _getColName(int col, std::string& name) const; |
| 54 | 54 |
/// \e |
| 55 | 55 |
virtual void _setColName(int col, const std::string& name); |
| 56 | 56 |
/// \e |
| 57 | 57 |
virtual int _colByName(const std::string& name) const; |
| 58 | 58 |
|
| 59 | 59 |
/// \e |
| 60 | 60 |
virtual void _getRowName(int row, std::string& name) const; |
| 61 | 61 |
/// \e |
| 62 | 62 |
virtual void _setRowName(int row, const std::string& name); |
| 63 | 63 |
/// \e |
| 64 | 64 |
virtual int _rowByName(const std::string& name) const; |
| 65 | 65 |
|
| 66 | 66 |
/// \e |
| 67 | 67 |
virtual void _setRowCoeffs(int i, ExprIterator b, ExprIterator e); |
| 68 | 68 |
/// \e |
| 69 | 69 |
virtual void _getRowCoeffs(int i, InsertIterator b) const; |
| 70 | 70 |
/// \e |
| 71 | 71 |
virtual void _setColCoeffs(int i, ExprIterator b, ExprIterator e); |
| 72 | 72 |
/// \e |
| 73 | 73 |
virtual void _getColCoeffs(int i, InsertIterator b) const; |
| 74 | 74 |
|
| 75 | 75 |
/// Set one element of the coefficient matrix |
| 76 | 76 |
virtual void _setCoeff(int row, int col, Value value); |
| 77 | 77 |
|
| 78 | 78 |
/// Get one element of the coefficient matrix |
| 79 | 79 |
virtual Value _getCoeff(int row, int col) const; |
| 80 | 80 |
|
| 81 | 81 |
/// The lower bound of a variable (column) have to be given by an |
| 82 | 82 |
/// extended number of type Value, i.e. a finite number of type |
| 83 | 83 |
/// Value or -\ref INF. |
| 84 | 84 |
virtual void _setColLowerBound(int i, Value value); |
| 85 | 85 |
/// \e |
| 86 | 86 |
|
| 87 | 87 |
/// The lower bound of a variable (column) is an |
| 88 | 88 |
/// extended number of type Value, i.e. a finite number of type |
| 89 | 89 |
/// Value or -\ref INF. |
| 90 | 90 |
virtual Value _getColLowerBound(int i) const; |
| 91 | 91 |
|
| 92 | 92 |
/// The upper bound of a variable (column) have to be given by an |
| 93 | 93 |
/// extended number of type Value, i.e. a finite number of type |
| 94 | 94 |
/// Value or \ref INF. |
| 95 | 95 |
virtual void _setColUpperBound(int i, Value value); |
| 96 | 96 |
/// \e |
| 97 | 97 |
|
| 98 | 98 |
/// The upper bound of a variable (column) is an |
| 99 | 99 |
/// extended number of type Value, i.e. a finite number of type |
| 100 | 100 |
/// Value or \ref INF. |
| 101 | 101 |
virtual Value _getColUpperBound(int i) const; |
| 102 | 102 |
|
| 103 | 103 |
/// The lower bound of a constraint (row) have to be given by an |
| 104 | 104 |
/// extended number of type Value, i.e. a finite number of type |
| 105 | 105 |
/// Value or -\ref INF. |
| 106 | 106 |
virtual void _setRowLowerBound(int i, Value value); |
| 107 | 107 |
/// \e |
| 108 | 108 |
|
| 109 | 109 |
/// The lower bound of a constraint (row) is an |
| 110 | 110 |
/// extended number of type Value, i.e. a finite number of type |
| 111 | 111 |
/// Value or -\ref INF. |
| 112 | 112 |
virtual Value _getRowLowerBound(int i) const; |
| 113 | 113 |
|
| 114 | 114 |
/// The upper bound of a constraint (row) have to be given by an |
| 115 | 115 |
/// extended number of type Value, i.e. a finite number of type |
| 116 | 116 |
/// Value or \ref INF. |
| 117 | 117 |
virtual void _setRowUpperBound(int i, Value value); |
| 118 | 118 |
/// \e |
| 119 | 119 |
|
| 120 | 120 |
/// The upper bound of a constraint (row) is an |
| 121 | 121 |
/// extended number of type Value, i.e. a finite number of type |
| 122 | 122 |
/// Value or \ref INF. |
| 123 | 123 |
virtual Value _getRowUpperBound(int i) const; |
| 124 | 124 |
|
| 125 | 125 |
/// \e |
| 126 | 126 |
virtual void _setObjCoeffs(ExprIterator b, ExprIterator e); |
| 127 | 127 |
/// \e |
| 128 | 128 |
virtual void _getObjCoeffs(InsertIterator b) const; |
| 129 | 129 |
|
| 130 | 130 |
/// \e |
| 131 | 131 |
virtual void _setObjCoeff(int i, Value obj_coef); |
| 132 | 132 |
/// \e |
| 133 | 133 |
virtual Value _getObjCoeff(int i) const; |
| 134 | 134 |
|
| 135 | 135 |
///\e |
| 136 | 136 |
virtual void _setSense(Sense); |
| 137 | 137 |
///\e |
| 138 | 138 |
virtual Sense _getSense() const; |
| 139 | 139 |
|
| 140 | 140 |
///\e |
| 141 | 141 |
virtual void _clear(); |
| 142 | 142 |
|
| 143 | 143 |
}; |
| 144 | 144 |
|
| 145 | 145 |
/// \brief Skeleton class for an LP solver interface |
| 146 | 146 |
/// |
| 147 | 147 |
///This class does nothing, but it can serve as a skeleton when |
| 148 | 148 |
///implementing an interface to new solvers. |
| 149 | 149 |
|
| 150 | 150 |
///\ingroup lp_group |
| 151 | 151 |
class LpSkeleton : public LpSolver, public SkeletonSolverBase {
|
| 152 | 152 |
public: |
| 153 | 153 |
///\e |
| 154 | 154 |
LpSkeleton() : LpSolver(), SkeletonSolverBase() {}
|
| 155 | 155 |
///\e |
| 156 | 156 |
virtual LpSkeleton* newSolver() const; |
| 157 | 157 |
///\e |
| 158 | 158 |
virtual LpSkeleton* cloneSolver() const; |
| 159 | 159 |
protected: |
| 160 | 160 |
|
| 161 | 161 |
///\e |
| 162 | 162 |
virtual SolveExitStatus _solve(); |
| 163 | 163 |
|
| 164 | 164 |
///\e |
| 165 | 165 |
virtual Value _getPrimal(int i) const; |
| 166 | 166 |
///\e |
| 167 | 167 |
virtual Value _getDual(int i) const; |
| 168 | 168 |
|
| 169 | 169 |
///\e |
| 170 | 170 |
virtual Value _getPrimalValue() const; |
| 171 | 171 |
|
| 172 | 172 |
///\e |
| 173 | 173 |
virtual Value _getPrimalRay(int i) const; |
| 174 | 174 |
///\e |
| 175 | 175 |
virtual Value _getDualRay(int i) const; |
| 176 | 176 |
|
| 177 | 177 |
///\e |
| 178 | 178 |
virtual ProblemType _getPrimalType() const; |
| 179 | 179 |
///\e |
| 180 | 180 |
virtual ProblemType _getDualType() const; |
| 181 | 181 |
|
| 182 | 182 |
///\e |
| 183 | 183 |
virtual VarStatus _getColStatus(int i) const; |
| 184 | 184 |
///\e |
| 185 | 185 |
virtual VarStatus _getRowStatus(int i) const; |
| 186 | 186 |
|
| 187 | 187 |
///\e |
| 188 | 188 |
virtual const char* _solverName() const; |
| 189 | 189 |
|
| 190 | 190 |
}; |
| 191 | 191 |
|
| 192 | 192 |
/// \brief Skeleton class for a MIP solver interface |
| 193 | 193 |
/// |
| 194 | 194 |
///This class does nothing, but it can serve as a skeleton when |
| 195 | 195 |
///implementing an interface to new solvers. |
| 196 | 196 |
///\ingroup lp_group |
| 197 | 197 |
class MipSkeleton : public MipSolver, public SkeletonSolverBase {
|
| 198 | 198 |
public: |
| 199 | 199 |
///\e |
| 200 | 200 |
MipSkeleton() : MipSolver(), SkeletonSolverBase() {}
|
| 201 | 201 |
///\e |
| 202 | 202 |
virtual MipSkeleton* newSolver() const; |
| 203 | 203 |
///\e |
| 204 | 204 |
virtual MipSkeleton* cloneSolver() const; |
| 205 | 205 |
|
| 206 | 206 |
protected: |
| 207 | 207 |
///\e |
| 208 |
|
|
| 209 |
///\bug Wrong interface |
|
| 210 |
/// |
|
| 211 | 208 |
virtual SolveExitStatus _solve(); |
| 212 | 209 |
|
| 213 | 210 |
///\e |
| 214 |
|
|
| 215 |
///\bug Wrong interface |
|
| 216 |
/// |
|
| 217 | 211 |
virtual Value _getSol(int i) const; |
| 218 | 212 |
|
| 219 | 213 |
///\e |
| 220 |
|
|
| 221 |
///\bug Wrong interface |
|
| 222 |
/// |
|
| 223 | 214 |
virtual Value _getSolValue() const; |
| 224 | 215 |
|
| 225 | 216 |
///\e |
| 226 |
|
|
| 227 |
///\bug Wrong interface |
|
| 228 |
/// |
|
| 229 | 217 |
virtual ProblemType _getType() const; |
| 230 | 218 |
|
| 231 | 219 |
///\e |
| 232 | 220 |
virtual const char* _solverName() const; |
| 233 | 221 |
}; |
| 234 | 222 |
|
| 235 | 223 |
} //namespace lemon |
| 236 | 224 |
|
| 237 | 225 |
#endif |
0 comments (0 inline)