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.

18 lines
344 B

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