You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
395 B

  1. /* spxsamp2.c */
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. #include <glpk.h>
  5. int main(void)
  6. { glp_prob *P;
  7. glp_smcp parm;
  8. P = glp_create_prob();
  9. glp_read_mps(P, GLP_MPS_DECK, NULL, "25fv47.mps");
  10. glp_init_smcp(&parm);
  11. parm.meth = GLP_DUAL;
  12. glp_simplex(P, &parm);
  13. glp_print_sol(P, "25fv47.txt");
  14. glp_delete_prob(P);
  15. return 0;
  16. }
  17. /* eof */