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

Commit

Permalink
Fix documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed May 3, 2016
1 parent 4e9955e commit a382ec1
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions src/sage/numerical/interactive_simplex_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -2746,7 +2746,7 @@ def basic_solution(self, include_slack_variables=False):
@abstract_method
def column_coefficients(self, v):
r"""
Return the coefficients of a nonbasic variable
Return the coefficients of a nonbasic variable.
INPUT:
Expand Down Expand Up @@ -3096,16 +3096,11 @@ def leaving(self):

def leaving_coefficients(self):
r"""
Return coefficients of a leaving variable
INPUT:
- ``v`` -- a basic variable of ``self``, can be given as a string, an
actual variable, or an integer interpreted as the index of a variable
Return coefficients of the leaving variable.
OUTPUT:
- a vector of coefficients of a leaving variable
- a vector
EXAMPLES::
Expand Down Expand Up @@ -3899,7 +3894,12 @@ def basic_variables(self):

def column_coefficients(self, v):
r"""
Return coefficients of the entering variable.
Return coefficients of a nonbasic variable.
INPUT:
- ``v`` -- a nonbasic variable of ``self``, can be given as a string, an
actual variable, or an integer interpreted as the index of a variable
OUTPUT:
Expand All @@ -3912,8 +3912,7 @@ def column_coefficients(self, v):
sage: c = (10, 5)
sage: P = InteractiveLPProblemStandardForm(A, b, c)
sage: D = P.initial_dictionary()
sage: D.enter(1)
sage: D.entering_coefficients()
sage: D.column_coefficients(1)
(1, 3)
"""
if v is not None:
Expand Down Expand Up @@ -4782,7 +4781,12 @@ def c_N(self):

def column_coefficients(self, v):
r"""
Return coefficients of the entering variable.
Return the coefficients of a nonbasic variable.
INPUT:
- ``v`` -- a nonbasic variable of ``self``, can be given as a string, an
actual variable, or an integer interpreted as the index of a variable
OUTPUT:
Expand Down

0 comments on commit a382ec1

Please sign in to comment.