1.1 --- a/lemon/lp_base.h Mon May 23 04:48:14 2005 +0000
1.2 +++ b/lemon/lp_base.h Thu May 26 12:16:16 2005 +0000
1.3 @@ -417,7 +417,14 @@
1.4
1.5 //Abstract virtual functions
1.6 virtual LpSolverBase &_newLp() = 0;
1.7 - virtual LpSolverBase &_copyLp() = 0;
1.8 + virtual LpSolverBase &_copyLp(){
1.9 + ///\todo This should be implemented here, too, when we have problem retrieving routines. It can be overriden.
1.10 +
1.11 + //Starting:
1.12 + LpSolverBase & newlp(_newLp());
1.13 + return newlp;
1.14 + //return *(LpSolverBase*)0;
1.15 + };
1.16
1.17 virtual int _addCol() = 0;
1.18 virtual int _addRow() = 0;
1.19 @@ -608,6 +615,15 @@
1.20 return r;
1.21 }
1.22
1.23 + ///Set an element of the coefficient matrix of the LP
1.24 +
1.25 + ///\param r is the row of the element to be modified
1.26 + ///\param c is the coloumn of the element to be modified
1.27 + ///\param val is the new value of the coefficient
1.28 + void setCoeff(Row r, Col c, Value val){
1.29 + _setCoeff(rows.floatingId(r.id),cols.floatingId(c.id), val);
1.30 + }
1.31 +
1.32 /// Set the lower bound of a column (i.e a variable)
1.33
1.34 /// The upper bound of a variable (column) has to be given by an