src/work/athos/lp/lp_test.cc
changeset 1262 61f989e3e525
parent 1256 3bb4ed285c39
child 1263 a490938ad0aa
equal deleted inserted replaced
1:683367f682f4 2:2f3bdc3eaac8
    26   LP::Expr e;
    26   LP::Expr e;
    27   e[x[3]]=2;
    27   e[x[3]]=2;
    28   e[x[3]]=4;
    28   e[x[3]]=4;
    29   e[x[3]]=1;
    29   e[x[3]]=1;
    30   e.constComp()=12;
    30   e.constComp()=12;
       
    31 
       
    32   LP::Col p1,p2,p3,p4,p5;
       
    33   
    31   lp.addRow(LP::INF,e,23);
    34   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);
    33 }
    39 }