examples/spxsamp2.c
author Alpar Juttner <alpar@cs.elte.hu>
Sun, 05 Dec 2010 17:35:23 +0100
changeset 2 4c8956a7bdf4
permissions -rw-r--r--
Set up CMAKE build environment
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 */