author | alpar |
Fri, 25 Mar 2005 08:18:27 +0000 | |
changeset 1256 | 3bb4ed285c39 |
parent 1254 | c9558638fe42 |
child 1259 | 11a09f1319b3 |
permissions | -rw-r--r-- |
1 #include"lp_solver_skeleton.h"
3 using namespace lemon;
5 int main()
6 {
7 typedef LpSolverSkeleton LP;
8 LP lp;
10 std::vector<LP::Col> x;
11 for(int i=0;i<10;i++) x.push_back(lp.addCol());
13 std::vector<LP::Col> y(10);
14 lp.addColSet(y);
16 std::map<int,LP::Col> z;
18 z.insert(std::make_pair(12,INVALID));
19 z.insert(std::make_pair(2,INVALID));
20 z.insert(std::make_pair(7,INVALID));
21 z.insert(std::make_pair(5,INVALID));
23 lp.addColSet(z);
26 LP::Expr e;
27 e[x[3]]=2;
28 e[x[3]]=4;
29 e[x[3]]=1;
30 e.constComp()=12;
31 lp.addRow(LP::INF,e,23);
33 }