equal
deleted
inserted
replaced
1 #include<lemon/lp_skeleton.h> |
1 #ifdef HAVE_CONFIG_H |
2 #include<lemon/lp_glpk.h> |
2 #include <config.h> |
|
3 #endif |
|
4 |
|
5 #ifdef HAVE_GLPK |
|
6 #include <lemon/lp_glpk.h> |
|
7 #elif HAVE_CPLEX |
|
8 #include <lemon/lp_cplex.h> |
|
9 #endif |
3 |
10 |
4 using namespace lemon; |
11 using namespace lemon; |
|
12 |
|
13 #ifdef HAVE_GLPK |
|
14 typedef LpGlpk LpDefault; |
|
15 #elif HAVE_CPLEX |
|
16 typedef LpCplex LpDefault; |
|
17 #endif |
5 |
18 |
6 void lpTest(LpSolverBase & lp) |
19 void lpTest(LpSolverBase & lp) |
7 { |
20 { |
8 typedef LpSolverBase LP; |
21 typedef LpSolverBase LP; |
9 |
22 |
127 |
140 |
128 } |
141 } |
129 |
142 |
130 int main() |
143 int main() |
131 { |
144 { |
132 LpSkeleton lp_skel; |
145 LpDefault lp; |
133 LpGlpk lp_glpk; |
|
134 |
146 |
135 lpTest(lp_skel); |
147 lpTest(lp); |
136 lpTest(lp_glpk); |
|
137 |
148 |
138 return 0; |
149 return 0; |
139 } |
150 } |