#13650: Base rings for MIP backends
------------------------------------------------+---------------------------
Reporter: vbraun | Owner: ncohen
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-5.5
Component: linear programming | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers: Dima
Pasechnik, Volker Braun
Authors: Volker Braun, Dima Pasechnik | Merged in:
Dependencies: #13646, #12533 | Stopgaps:
------------------------------------------------+---------------------------
Comment (by vbraun):
Example of normalizing the coefficients:
{{{
sage: p = MixedIntegerLinearProgram(maximization=False, solver =
'GLPK')
sage: p.base_ring()
Real Double Field
sage: x = p.new_variable()
sage: 0.5 + 3/2*x[1]
0.5 + 1.5*x_0
sage: p = MixedIntegerLinearProgram(maximization=False, solver =
'ppl')
sage: p.base_ring()
Rational Field
sage: x = p.new_variable()
sage: 0.5 + 3/2*x[1]
1/2 + 3/2*x_0
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13650#comment:9>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.