author | Alpar Juttner <alpar@cs.elte.hu> |
Mon, 06 Dec 2010 13:09:21 +0100 | |
changeset 1 | c445c931472f |
permissions | -rw-r--r-- |
1 /* spxsamp2.c */
3 #include <stdio.h>
4 #include <stdlib.h>
5 #include <glpk.h>
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 }
20 /* eof */