53 |
53 |
54 protected: |
54 protected: |
55 virtual LpSolverBase &_newLp(); |
55 virtual LpSolverBase &_newLp(); |
56 virtual LpSolverBase &_copyLp(); |
56 virtual LpSolverBase &_copyLp(); |
57 |
57 |
|
58 |
58 virtual int _addCol(); |
59 virtual int _addCol(); |
59 virtual int _addRow(); |
60 virtual int _addRow(); |
60 virtual void _eraseCol(int i); |
61 virtual void _eraseCol(int i); |
61 virtual void _eraseRow(int i); |
62 virtual void _eraseRow(int i); |
62 virtual void _getColName(int col, std::string & name); |
63 virtual void _getColName(int col, std::string & name); |
63 virtual void _setColName(int col, const std::string & name); |
64 virtual void _setColName(int col, const std::string & name); |
64 virtual void _setRowCoeffs(int i, LpRowIterator b, LpRowIterator e); |
65 virtual void _setRowCoeffs(int i, LpRowIterator b, LpRowIterator e); |
65 virtual void _setColCoeffs(int i, LpColIterator b, LpColIterator e); |
66 virtual void _setColCoeffs(int i, LpColIterator b, LpColIterator e); |
66 virtual void _setCoeff(int row, int col, Value value); |
67 virtual void _setCoeff(int row, int col, Value value); |
|
68 virtual Value _getCoeff(int row, int col); |
|
69 |
67 virtual void _setColLowerBound(int i, Value value); |
70 virtual void _setColLowerBound(int i, Value value); |
|
71 virtual Value _getColLowerBound(int i); |
68 virtual void _setColUpperBound(int i, Value value); |
72 virtual void _setColUpperBound(int i, Value value); |
|
73 virtual Value _getColUpperBound(int i); |
|
74 |
69 // virtual void _setRowLowerBound(int i, Value value); |
75 // virtual void _setRowLowerBound(int i, Value value); |
70 // virtual void _setRowUpperBound(int i, Value value); |
76 // virtual void _setRowUpperBound(int i, Value value); |
71 virtual void _setRowBounds(int i, Value lower, Value upper); |
77 virtual void _setRowBounds(int i, Value lower, Value upper); |
|
78 virtual void _getRowBounds(int i, Value &lb, Value &ub); |
72 virtual void _setObjCoeff(int i, Value obj_coef); |
79 virtual void _setObjCoeff(int i, Value obj_coef); |
|
80 virtual Value _getObjCoeff(int i); |
73 virtual void _clearObj(); |
81 virtual void _clearObj(); |
74 ///\e |
82 |
75 |
83 |
76 virtual SolveExitStatus _solve(); |
84 virtual SolveExitStatus _solve(); |
77 virtual Value _getPrimal(int i); |
85 virtual Value _getPrimal(int i); |
78 virtual Value _getDual(int i); |
86 virtual Value _getDual(int i); |
79 virtual Value _getPrimalValue(); |
87 virtual Value _getPrimalValue(); |