1.1 --- a/lemon/lp_cplex.h Fri Feb 16 15:57:48 2007 +0000
1.2 +++ b/lemon/lp_cplex.h Fri Feb 16 19:11:31 2007 +0000
1.3 @@ -60,44 +60,45 @@
1.4 virtual int _addRow();
1.5 virtual void _eraseCol(int i);
1.6 virtual void _eraseRow(int i);
1.7 - virtual void _getColName(int col, std::string & name);
1.8 + virtual void _getColName(int col, std::string & name) const;
1.9 virtual void _setColName(int col, const std::string & name);
1.10 + virtual int _colByName(const std::string& name) const;
1.11 virtual void _setRowCoeffs(int i, ConstRowIterator b, ConstRowIterator e);
1.12 - virtual void _getRowCoeffs(int i, RowIterator b);
1.13 + virtual void _getRowCoeffs(int i, RowIterator b) const;
1.14 virtual void _setColCoeffs(int i, ConstColIterator b, ConstColIterator e);
1.15 - virtual void _getColCoeffs(int i, ColIterator b);
1.16 + virtual void _getColCoeffs(int i, ColIterator b) const;
1.17 virtual void _setCoeff(int row, int col, Value value);
1.18 - virtual Value _getCoeff(int row, int col);
1.19 + virtual Value _getCoeff(int row, int col) const;
1.20
1.21 virtual void _setColLowerBound(int i, Value value);
1.22 - virtual Value _getColLowerBound(int i);
1.23 + virtual Value _getColLowerBound(int i) const;
1.24 virtual void _setColUpperBound(int i, Value value);
1.25 - virtual Value _getColUpperBound(int i);
1.26 + virtual Value _getColUpperBound(int i) const;
1.27
1.28 // virtual void _setRowLowerBound(int i, Value value);
1.29 // virtual void _setRowUpperBound(int i, Value value);
1.30 virtual void _setRowBounds(int i, Value lower, Value upper);
1.31 - virtual void _getRowBounds(int i, Value &lb, Value &ub);
1.32 + virtual void _getRowBounds(int i, Value &lb, Value &ub) const;
1.33 virtual void _setObjCoeff(int i, Value obj_coef);
1.34 - virtual Value _getObjCoeff(int i);
1.35 + virtual Value _getObjCoeff(int i) const;
1.36 virtual void _clearObj();
1.37
1.38
1.39 virtual SolveExitStatus _solve();
1.40 - virtual Value _getPrimal(int i);
1.41 - virtual Value _getDual(int i);
1.42 - virtual Value _getPrimalValue();
1.43 - virtual bool _isBasicCol(int i);
1.44 + virtual Value _getPrimal(int i) const;
1.45 + virtual Value _getDual(int i) const;
1.46 + virtual Value _getPrimalValue() const;
1.47 + virtual bool _isBasicCol(int i) const;
1.48
1.49 - virtual SolutionStatus _getPrimalStatus();
1.50 - virtual SolutionStatus _getDualStatus();
1.51 - virtual ProblemTypes _getProblemType();
1.52 + virtual SolutionStatus _getPrimalStatus() const;
1.53 + virtual SolutionStatus _getDualStatus() const;
1.54 + virtual ProblemTypes _getProblemType() const;
1.55
1.56
1.57 virtual void _setMax();
1.58 virtual void _setMin();
1.59
1.60 - virtual bool _isMax();
1.61 + virtual bool _isMax() const;
1.62
1.63 };
1.64 } //END OF NAMESPACE LEMON