COIN-OR::LEMON - Graph Library

Changeset 1899:2d4835f5a86a in lemon-0.x


Ignore:
Timestamp:
01/18/06 10:42:59 (14 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2474
Message:
  • setCol() -> col()
  • better doc.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/lp_base.h

    r1895 r1899  
    702702    ///\param c is the column to be modified
    703703    ///\param e is a dual linear expression (see \ref DualExpr)
    704     ///\bug This is a temporary function. The interface will change to
    705704    ///a better one.
    706     void setCol(Col c,const DualExpr &e) {
     705    void col(Col c,const DualExpr &e) {
    707706      std::vector<int> indices;
    708707      std::vector<Value> values;
     
    710709      values.push_back(0);
    711710      for(DualExpr::const_iterator i=e.begin(); i!=e.end(); ++i)
    712         if((*i).second!=0) { ///\bug EPSILON would be necessary here!!!
     711        if((*i).second!=0) {
    713712          indices.push_back(rows.floatingId((*i).first.id));
    714713          values.push_back((*i).second);
     
    724723    ///function. It is 0 by default.
    725724    ///\return The created column.
    726     ///\bug This is a temportary function. The interface will change to
    727     ///a better one.
    728725    Col addCol(const DualExpr &e, Value obj=0) {
    729726      Col c=addCol();
    730       setCol(c,e);
     727      col(c,e);
    731728      objCoeff(c,obj);
    732729      return c;
Note: See TracChangeset for help on using the changeset viewer.