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

Commit 3a26453

Browse files
author
Matthias Koeppe
committed
InteractiveLPBackend: Expand example with algebraic numbers
1 parent 2f8d672 commit 3a26453

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sage/numerical/backends/interactivelp_backend.pyx

+3
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,12 @@ cdef class InteractiveLPBackend:
5454
sage: poly = polytopes.dodecahedron(base_ring=AA)
5555
sage: lp = poly.to_linear_program(solver='InteractiveLP')
5656
sage: b = lp.get_backend()
57+
sage: for k in range(3): b.variable_lower_bound(k, 0)
5758
sage: b.set_objective([1, 1, 1])
5859
sage: lp.solve()
5960
2.291796067500631?
61+
sage: [b.get_variable_value(k) for k in range(3)]
62+
[0.763932022500211?, 0.763932022500211?, 0.763932022500211?]
6063
"""
6164

6265
if base_ring is None:

0 commit comments

Comments
 (0)