lemon-project-template-glpk
annotate 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 |
rev | line source |
---|---|
alpar@9 | 1 /* spxsamp2.c */ |
alpar@9 | 2 |
alpar@9 | 3 #include <stdio.h> |
alpar@9 | 4 #include <stdlib.h> |
alpar@9 | 5 #include <glpk.h> |
alpar@9 | 6 |
alpar@9 | 7 int main(void) |
alpar@9 | 8 { glp_prob *P; |
alpar@9 | 9 glp_smcp parm; |
alpar@9 | 10 P = glp_create_prob(); |
alpar@9 | 11 glp_read_mps(P, GLP_MPS_DECK, NULL, "25fv47.mps"); |
alpar@9 | 12 glp_init_smcp(&parm); |
alpar@9 | 13 parm.meth = GLP_DUAL; |
alpar@9 | 14 glp_simplex(P, &parm); |
alpar@9 | 15 glp_print_sol(P, "25fv47.txt"); |
alpar@9 | 16 glp_delete_prob(P); |
alpar@9 | 17 return 0; |
alpar@9 | 18 } |
alpar@9 | 19 |
alpar@9 | 20 /* eof */ |