File tree Expand file tree Collapse file tree 2 files changed +15
-7
lines changed
src/sage/numerical/backends Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -1012,10 +1012,14 @@ cdef class GLPKBackend(GenericBackend):
1012
1012
(`get_col_dual` etc.) or tableau data (`get_row_stat` etc.),
1013
1013
one needs to switch to "simplex_only" before solving.
1014
1014
1015
- GLPK also has an exact rational simplex solver. The only
1016
- access to data is via double-precision floats, however. It
1017
- reconstructs rationals from doubles and also provides results
1018
- as doubles.
1015
+ GLPK also has an exact rational simplex solver. The only access
1016
+ to data is via double-precision floats, which means that
1017
+ rationals in the input data may be rounded before the exact
1018
+ solver sees them. Thus, it is unreasonable to expect that
1019
+ arbitrary LPs with rational coefficients are solved exactly.
1020
+ Once the LP has been read into the backend, it reconstructs
1021
+ rationals from doubles and does solve exactly over the rationals,
1022
+ but results are returned as as doubles.
1019
1023
1020
1024
EXAMPLES::
1021
1025
Original file line number Diff line number Diff line change @@ -19,9 +19,13 @@ cdef class GLPKExactBackend(GLPKBackend):
19
19
"""
20
20
MIP Backend that runs the GLPK solver in exact rational simplex mode.
21
21
22
- The only access to data is via double-precision floats, however. It
23
- reconstructs rationals from doubles and also provides results
24
- as doubles.
22
+ The only access to data is via double-precision floats, which
23
+ means that rationals in the input data may be rounded before
24
+ the exact solver sees them. Thus, it is unreasonable to expect
25
+ that arbitrary LPs with rational coefficients are solved exactly.
26
+ Once the LP has been read into the backend, it reconstructs
27
+ rationals from doubles and does solve exactly over the rationals,
28
+ but results are returned as as doubles.
25
29
26
30
There is no support for integer variables.
27
31
"""
You can’t perform that action at this time.
0 commit comments