author | Alpar Juttner <alpar@cs.elte.hu> |
Mon, 06 Dec 2010 13:09:21 +0100 | |
changeset 1 | c445c931472f |
permissions | -rw-r--r-- |
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 */ |