help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] Rational Output


From: Andrew Makhorin
Subject: Re: [Help-glpk] Rational Output
Date: Thu, 28 Nov 2013 22:30:26 +0400

> 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.*).





reply via email to

[Prev in Thread] Current Thread [Next in Thread]