58 |
58 |
59 virtual int _addCol(); |
59 virtual int _addCol(); |
60 virtual int _addRow(); |
60 virtual int _addRow(); |
61 virtual void _eraseCol(int i); |
61 virtual void _eraseCol(int i); |
62 virtual void _eraseRow(int i); |
62 virtual void _eraseRow(int i); |
63 virtual void _getColName(int col, std::string & name); |
63 virtual void _getColName(int col, std::string & name) const; |
64 virtual void _setColName(int col, const std::string & name); |
64 virtual void _setColName(int col, const std::string & name); |
|
65 virtual int _colByName(const std::string& name) const; |
65 virtual void _setRowCoeffs(int i, ConstRowIterator b, ConstRowIterator e); |
66 virtual void _setRowCoeffs(int i, ConstRowIterator b, ConstRowIterator e); |
66 virtual void _getRowCoeffs(int i, RowIterator b); |
67 virtual void _getRowCoeffs(int i, RowIterator b) const; |
67 virtual void _setColCoeffs(int i, ConstColIterator b, ConstColIterator e); |
68 virtual void _setColCoeffs(int i, ConstColIterator b, ConstColIterator e); |
68 virtual void _getColCoeffs(int i, ColIterator b); |
69 virtual void _getColCoeffs(int i, ColIterator b) const; |
69 virtual void _setCoeff(int row, int col, Value value); |
70 virtual void _setCoeff(int row, int col, Value value); |
70 virtual Value _getCoeff(int row, int col); |
71 virtual Value _getCoeff(int row, int col) const; |
71 |
72 |
72 virtual void _setColLowerBound(int i, Value value); |
73 virtual void _setColLowerBound(int i, Value value); |
73 virtual Value _getColLowerBound(int i); |
74 virtual Value _getColLowerBound(int i) const; |
74 virtual void _setColUpperBound(int i, Value value); |
75 virtual void _setColUpperBound(int i, Value value); |
75 virtual Value _getColUpperBound(int i); |
76 virtual Value _getColUpperBound(int i) const; |
76 |
77 |
77 // virtual void _setRowLowerBound(int i, Value value); |
78 // virtual void _setRowLowerBound(int i, Value value); |
78 // virtual void _setRowUpperBound(int i, Value value); |
79 // virtual void _setRowUpperBound(int i, Value value); |
79 virtual void _setRowBounds(int i, Value lower, Value upper); |
80 virtual void _setRowBounds(int i, Value lower, Value upper); |
80 virtual void _getRowBounds(int i, Value &lb, Value &ub); |
81 virtual void _getRowBounds(int i, Value &lb, Value &ub) const; |
81 virtual void _setObjCoeff(int i, Value obj_coef); |
82 virtual void _setObjCoeff(int i, Value obj_coef); |
82 virtual Value _getObjCoeff(int i); |
83 virtual Value _getObjCoeff(int i) const; |
83 virtual void _clearObj(); |
84 virtual void _clearObj(); |
84 |
85 |
85 |
86 |
86 virtual SolveExitStatus _solve(); |
87 virtual SolveExitStatus _solve(); |
87 virtual Value _getPrimal(int i); |
88 virtual Value _getPrimal(int i) const; |
88 virtual Value _getDual(int i); |
89 virtual Value _getDual(int i) const; |
89 virtual Value _getPrimalValue(); |
90 virtual Value _getPrimalValue() const; |
90 virtual bool _isBasicCol(int i); |
91 virtual bool _isBasicCol(int i) const; |
91 |
92 |
92 virtual SolutionStatus _getPrimalStatus(); |
93 virtual SolutionStatus _getPrimalStatus() const; |
93 virtual SolutionStatus _getDualStatus(); |
94 virtual SolutionStatus _getDualStatus() const; |
94 virtual ProblemTypes _getProblemType(); |
95 virtual ProblemTypes _getProblemType() const; |
95 |
96 |
96 |
97 |
97 virtual void _setMax(); |
98 virtual void _setMax(); |
98 virtual void _setMin(); |
99 virtual void _setMin(); |
99 |
100 |
100 virtual bool _isMax(); |
101 virtual bool _isMax() const; |
101 |
102 |
102 }; |
103 }; |
103 } //END OF NAMESPACE LEMON |
104 } //END OF NAMESPACE LEMON |
104 |
105 |
105 #endif //LEMON_LP_CPLEX_H |
106 #endif //LEMON_LP_CPLEX_H |