lemon-project-template-glpk
view deps/glpk/examples/spxsamp2.c @ 9:33de93886c88
Import GLPK 4.47
author | Alpar Juttner <alpar@cs.elte.hu> |
---|---|
date | Sun, 06 Nov 2011 20:59:10 +0100 |
parents | |
children |
line source
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 */