COIN-OR::LEMON - Graph Library

source: lemon-project-template-glpk/deps/glpk/examples/spxsamp2.c

subpack-glpk
Last change on this file was 9:33de93886c88, checked in by Alpar Juttner <alpar@…>, 13 years ago

Import GLPK 4.47

File size: 395 bytes
Line 
1/* spxsamp2.c */
2
3#include <stdio.h>
4#include <stdlib.h>
5#include <glpk.h>
6
7int main(void)
8{     glp_prob *P;
9      glp_smcp parm;
10      P = glp_create_prob();
11      glp_read_mps(P, GLP_MPS_DECK, NULL, "25fv47.mps");
12      glp_init_smcp(&parm);
13      parm.meth = GLP_DUAL;
14      glp_simplex(P, &parm);
15      glp_print_sol(P, "25fv47.txt");
16      glp_delete_prob(P);
17      return 0;
18}
19
20/* eof */
Note: See TracBrowser for help on using the repository browser.