examples/spxsamp2.c
author Alpar Juttner <alpar@cs.elte.hu>
Mon, 06 Dec 2010 13:09:21 +0100
changeset 1 c445c931472f
permissions -rw-r--r--
Import glpk-4.45

- Generated files and doc/notes are removed
alpar@1
     1
/* spxsamp2.c */
alpar@1
     2
alpar@1
     3
#include <stdio.h>
alpar@1
     4
#include <stdlib.h>
alpar@1
     5
#include <glpk.h>
alpar@1
     6
alpar@1
     7
int main(void)
alpar@1
     8
{     glp_prob *P;
alpar@1
     9
      glp_smcp parm;
alpar@1
    10
      P = glp_create_prob();
alpar@1
    11
      glp_read_mps(P, GLP_MPS_DECK, NULL, "25fv47.mps");
alpar@1
    12
      glp_init_smcp(&parm);
alpar@1
    13
      parm.meth = GLP_DUAL;
alpar@1
    14
      glp_simplex(P, &parm);
alpar@1
    15
      glp_print_sol(P, "25fv47.txt");
alpar@1
    16
      glp_delete_prob(P);
alpar@1
    17
      return 0;
alpar@1
    18
}
alpar@1
    19
alpar@1
    20
/* eof */