> I know that it is possible to use GMP together with GLPK in order to > precisely solve a > Linear program using glp_exact(). But is there a method of retrieving the > result as a > GMP rational number (mpq_t *), instead of a double? >
No, you cannot obtain the result in the gmp format, because glpk api does not support it. The only way to do this is either to hack the exact simplex solver (see routine glp_exact in file glpk/src/glpapi07.c) or to use ssx routines directly (see glpk/src/glpssx.*). _______________________________________________ Help-glpk mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-glpk
