COIN-OR::LEMON - Graph Library

Changeset 1493:94535d1833b5 in lemon-0.x


Ignore:
Timestamp:
06/15/05 12:13:08 (19 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1974
Message:

Bugfixes related to DualExpr?.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lemon/lp_base.h

    r1484 r1493  
    489489      }
    490490      ///\e
    491       DualExpr(const Value &v) {}
    492       ///\e
    493491      void set(const Key &v,const Value &c) {
    494492        Base::insert(std::make_pair(v, c));
     
    707705    ///\bug This is a temportary function. The interface will change to
    708706    ///a better one.
    709     Col addCol(Value l,const DualExpr &e, Value obj=0) {
     707    Col addCol(const DualExpr &e, Value obj=0) {
    710708      Col c=addCol();
    711709      setCol(c,e);
    712       objCoeff(c,0);
     710      objCoeff(c,obj);
    713711      return c;
    714712    }
  • test/lp_test.cc

    r1484 r1493  
    165165    e/=2.2;
    166166   
    167     e=((p1+p2)+(p1-p2)+(p1+12)+(12+p1)+(p1-12)+(12-p1)+
     167    e=((p1+p2)+(p1-p2)+
    168168       (p1+f)+(f+p1)+(f+g)+
    169169       (p1-f)+(f-p1)+(f-g)+
Note: See TracChangeset for help on using the changeset viewer.