examples/spxsamp2.c
changeset 1 c445c931472f
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/examples/spxsamp2.c	Mon Dec 06 13:09:21 2010 +0100
     1.3 @@ -0,0 +1,20 @@
     1.4 +/* spxsamp2.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 +      glp_smcp parm;
    1.13 +      P = glp_create_prob();
    1.14 +      glp_read_mps(P, GLP_MPS_DECK, NULL, "25fv47.mps");
    1.15 +      glp_init_smcp(&parm);
    1.16 +      parm.meth = GLP_DUAL;
    1.17 +      glp_simplex(P, &parm);
    1.18 +      glp_print_sol(P, "25fv47.txt");
    1.19 +      glp_delete_prob(P);
    1.20 +      return 0;
    1.21 +}
    1.22 +
    1.23 +/* eof */