examples/spxsamp1.c
changeset 1 c445c931472f
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/examples/spxsamp1.c	Mon Dec 06 13:09:21 2010 +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 */