diff -r 6455f64a85dc -r 3bb4ed285c39 src/work/athos/lp/lp_test.cc --- a/src/work/athos/lp/lp_test.cc Thu Mar 24 12:19:05 2005 +0000 +++ b/src/work/athos/lp/lp_test.cc Fri Mar 25 08:18:27 2005 +0000 @@ -4,5 +4,30 @@ int main() { - LpSolverSkeleton lp; + typedef LpSolverSkeleton LP; + LP lp; + + std::vector x; + for(int i=0;i<10;i++) x.push_back(lp.addCol()); + + std::vector y(10); + lp.addColSet(y); + + std::map z; + + z.insert(std::make_pair(12,INVALID)); + z.insert(std::make_pair(2,INVALID)); + z.insert(std::make_pair(7,INVALID)); + z.insert(std::make_pair(5,INVALID)); + + lp.addColSet(z); + + + LP::Expr e; + e[x[3]]=2; + e[x[3]]=4; + e[x[3]]=1; + e.constComp()=12; + lp.addRow(LP::INF,e,23); + }