COIN-OR::LEMON - Graph Library

Changeset 1259:11a09f1319b3 in lemon-0.x for src/work/athos/lp/lp_test.cc


Ignore:
Timestamp:
03/25/05 13:58:52 (15 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1686
Message:
  • Largely extended linear expressions
  • Better docs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/work/athos/lp/lp_test.cc

    r1256 r1259  
    2929  e[x[3]]=1;
    3030  e.constComp()=12;
     31
     32  LP::Col p1,p2,p3,p4,p5;
     33 
    3134  lp.addRow(LP::INF,e,23);
    32 
     35  lp.addRow(LP::INF,3.0*(p1+p2)-p3,23);
     36  lp.addRow(LP::INF,3.0*(x[1]+x[2]/2)-x[3],23);
     37  lp.addRow(LP::INF,3.0*(p1+p2*2-5*p3+12-p4/3)+2*p4-4,23);
     38  lp.addRow(LP::INF,3.0*(x[1]+x[2]*2-5*x[3]+12-x[4]/3)+2*x[4]-4,23);
    3339}
Note: See TracChangeset for help on using the changeset viewer.