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

Commit

Permalink
Last review tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Scrimshaw committed Jun 20, 2014
1 parent 21ce795 commit b541f0e
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions src/sage/numerical/interactive_simplex_method.py
Expand Up @@ -145,10 +145,14 @@
for feasible dictionaries with a set entering variable
or for dual feasible dictionaries
It is also possible to obtain :meth:`feasible sets <LPProblem.feasible_set>` and
:meth:`final dictionaries <LPProblemStandardForm.final_dictionary>` of problems,
work with :class:`revised dictionaries <LPRevisedDictionary>`, and use the dual
simplex method!
It is also possible to obtain :meth:`feasible sets <LPProblem.feasible_set>`
and :meth:`final dictionaries <LPProblemStandardForm.final_dictionary>` of
problems, work with :class:`revised dictionaries <LPRevisedDictionary>`,
and use the dual simplex method!
.. NOTE::
Currently this does not have a display format for the terminal.
"""


Expand Down Expand Up @@ -209,7 +213,7 @@ def _assemble_arrayl(lines, stretch=None):
OUTPUT:
- a :class:`LatexExpr`.
- a :class:`LatexExpr`
EXAMPLES::
Expand Down Expand Up @@ -1921,14 +1925,15 @@ def run_simplex_method(self):
\text{The optimal value: $6250$. An optimal solution: $\left(250,\,750\right)$.}
\end{gather*}
"""
result = []
d = self.initial_dictionary()
result.append(latex(d))

def step(entering, leaving):
result.append(r"\text{{Entering: ${}$. Leaving: ${}$.}}"
.format(latex(entering), latex(leaving)))
result.append(d.ELLUL(entering, leaving))

result = []
d = self.initial_dictionary()
result.append(latex(d))
if d.is_feasible():
is_feasible = True
else:
Expand Down

0 comments on commit b541f0e

Please sign in to comment.