changeset 1 | c445c931472f |
-1:000000000000 | 0:69a7dcddac61 |
---|---|
1 /* spxsamp2.c */ |
|
2 |
|
3 #include <stdio.h> |
|
4 #include <stdlib.h> |
|
5 #include <glpk.h> |
|
6 |
|
7 int main(void) |
|
8 { glp_prob *P; |
|
9 glp_smcp parm; |
|
10 P = glp_create_prob(); |
|
11 glp_read_mps(P, GLP_MPS_DECK, NULL, "25fv47.mps"); |
|
12 glp_init_smcp(&parm); |
|
13 parm.meth = GLP_DUAL; |
|
14 glp_simplex(P, &parm); |
|
15 glp_print_sol(P, "25fv47.txt"); |
|
16 glp_delete_prob(P); |
|
17 return 0; |
|
18 } |
|
19 |
|
20 /* eof */ |