COIN-OR::LEMON - Graph Library

source: glpk-cmake/examples/spxsamp2.c @ 2:4c8956a7bdf4

Last change on this file since 2:4c8956a7bdf4 was 1:c445c931472f, checked in by Alpar Juttner <alpar@…>, 13 years ago

Import glpk-4.45

  • Generated files and doc/notes are removed
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.