lemon-project-template-glpk
diff deps/glpk/examples/spxsamp1.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 diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/deps/glpk/examples/spxsamp1.c Sun Nov 06 20:59:10 2011 +0100 1.3 @@ -0,0 +1,18 @@ 1.4 +/* spxsamp1.c */ 1.5 + 1.6 +#include <stdio.h> 1.7 +#include <stdlib.h> 1.8 +#include <glpk.h> 1.9 + 1.10 +int main(void) 1.11 +{ glp_prob *P; 1.12 + P = glp_create_prob(); 1.13 + glp_read_mps(P, GLP_MPS_DECK, NULL, "25fv47.mps"); 1.14 + glp_adv_basis(P, 0); 1.15 + glp_simplex(P, NULL); 1.16 + glp_print_sol(P, "25fv47.txt"); 1.17 + glp_delete_prob(P); 1.18 + return 0; 1.19 +} 1.20 + 1.21 +/* eof */