An experimental LPSolverWrapper class which uses glpk. For a short
demo, max flow problems are solved with it. This demo does not
demonstrates, but the main aims of this class are row and column
generation capabilities, i.e. to be a core for easily
implementable branch-and-cut a column generetion algorithms.
7 #include <list_graph.h>
15 typedef ListGraph::Node Node;
16 typedef ListGraph::Edge Edge;
17 typedef ListGraph::NodeIt NodeIt;
18 typedef ListGraph::EdgeIt EdgeIt;
29 G.addEdge(v0, v1);G.addEdge(v0, v1);G.addEdge(v0, v1);
31 G.addEdge(v0, v3);G.addEdge(v0, v3);
32 G.addEdge(v1, v2);G.addEdge(v1, v2);
37 G.addEdge(v1, v0);G.addEdge(v1, v0);G.addEdge(v1, v0);
39 G.addEdge(v3, v0);G.addEdge(v3, v0);
40 G.addEdge(v2, v1);G.addEdge(v2, v1);
46 vector<Node> ma_order;
47 MAOrder<ListGraph> mao(G,ma_order);
49 vector<Node>::iterator i;
50 for (i = ma_order.begin(); i!=ma_order.end(); ++i) {
54 cout << v0 << " " << v1 << " " << v2 << " " << v3 << " " << v4 << " "