examples/spxsamp1.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
/* spxsamp1.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
      P = glp_create_prob();
alpar@1
    10
      glp_read_mps(P, GLP_MPS_DECK, NULL, "25fv47.mps");
alpar@1
    11
      glp_adv_basis(P, 0);
alpar@1
    12
      glp_simplex(P, NULL);
alpar@1
    13
      glp_print_sol(P, "25fv47.txt");
alpar@1
    14
      glp_delete_prob(P);
alpar@1
    15
      return 0;
alpar@1
    16
}
alpar@1
    17
alpar@1
    18
/* eof */