diff -r 8e85e6bbefdf -r e0beb94d08bf lemon/lp_base.h --- a/lemon/lp_base.h Mon May 23 04:48:14 2005 +0000 +++ b/lemon/lp_base.h Thu May 26 12:16:16 2005 +0000 @@ -417,7 +417,14 @@ //Abstract virtual functions virtual LpSolverBase &_newLp() = 0; - virtual LpSolverBase &_copyLp() = 0; + virtual LpSolverBase &_copyLp(){ + ///\todo This should be implemented here, too, when we have problem retrieving routines. It can be overriden. + + //Starting: + LpSolverBase & newlp(_newLp()); + return newlp; + //return *(LpSolverBase*)0; + }; virtual int _addCol() = 0; virtual int _addRow() = 0; @@ -608,6 +615,15 @@ return r; } + ///Set an element of the coefficient matrix of the LP + + ///\param r is the row of the element to be modified + ///\param c is the coloumn of the element to be modified + ///\param val is the new value of the coefficient + void setCoeff(Row r, Col c, Value val){ + _setCoeff(rows.floatingId(r.id),cols.floatingId(c.id), val); + } + /// Set the lower bound of a column (i.e a variable) /// The upper bound of a variable (column) has to be given by an