Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
InteractiveLPBackend: Expand example with algebraic numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Apr 5, 2016
1 parent 2f8d672 commit 3a26453
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sage/numerical/backends/interactivelp_backend.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,12 @@ cdef class InteractiveLPBackend:
sage: poly = polytopes.dodecahedron(base_ring=AA)
sage: lp = poly.to_linear_program(solver='InteractiveLP')
sage: b = lp.get_backend()
sage: for k in range(3): b.variable_lower_bound(k, 0)
sage: b.set_objective([1, 1, 1])
sage: lp.solve()
2.291796067500631?
sage: [b.get_variable_value(k) for k in range(3)]
[0.763932022500211?, 0.763932022500211?, 0.763932022500211?]
"""

if base_ring is None:
Expand Down

0 comments on commit 3a26453

Please sign in to comment.