From ef800d4ffafdbde7d7a172ad73bd984b1695c138 Mon Sep 17 00:00:00 2001 From: Pasha Date: Fri, 27 Jan 2023 00:54:07 +0000 Subject: simplex-glpk with modified glpk for fpga --- glpk-5.0/examples/spxsamp1.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 glpk-5.0/examples/spxsamp1.c (limited to 'glpk-5.0/examples/spxsamp1.c') diff --git a/glpk-5.0/examples/spxsamp1.c b/glpk-5.0/examples/spxsamp1.c new file mode 100644 index 0000000..7156423 --- /dev/null +++ b/glpk-5.0/examples/spxsamp1.c @@ -0,0 +1,18 @@ +/* spxsamp1.c */ + +#include +#include +#include + +int main(void) +{ glp_prob *P; + P = glp_create_prob(); + glp_read_mps(P, GLP_MPS_DECK, NULL, "25fv47.mps"); + glp_adv_basis(P, 0); + glp_simplex(P, NULL); + glp_print_sol(P, "25fv47.txt"); + glp_delete_prob(P); + return 0; +} + +/* eof */ -- cgit v1.2.1