COIN-OR::LEMON - Graph Library

Changeset 1436:e0beb94d08bf in lemon-0.x for lemon/lp_base.h


Ignore:
Timestamp:
05/26/05 14:16:16 (15 years ago)
Author:
athos
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1910
Message:

_copyLp(), _newLp() implemented.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/lp_base.h

    r1435 r1436  
    418418    //Abstract virtual functions
    419419    virtual LpSolverBase &_newLp() = 0;
    420     virtual LpSolverBase &_copyLp() = 0;
     420    virtual LpSolverBase &_copyLp(){
     421      ///\todo This should be implemented here, too,  when we have problem retrieving routines. It can be overriden.
     422
     423      //Starting:
     424      LpSolverBase & newlp(_newLp());
     425      return newlp;
     426      //return *(LpSolverBase*)0;
     427    };
    421428
    422429    virtual int _addCol() = 0;
     
    609616    }
    610617
     618    ///Set an element of the coefficient matrix of the LP
     619
     620    ///\param r is the row of the element to be modified
     621    ///\param c is the coloumn of the element to be modified
     622    ///\param val is the new value of the coefficient
     623    void setCoeff(Row r, Col c, Value val){
     624      _setCoeff(rows.floatingId(r.id),cols.floatingId(c.id), val);
     625    }
     626
    611627    /// Set the lower bound of a column (i.e a variable)
    612628
Note: See TracChangeset for help on using the changeset viewer.