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

Commit a382ec1

Browse files
author
Matthias Koeppe
committed
Fix documentation
1 parent 4e9955e commit a382ec1

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

src/sage/numerical/interactive_simplex_method.py

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2746,7 +2746,7 @@ def basic_solution(self, include_slack_variables=False):
27462746
@abstract_method
27472747
def column_coefficients(self, v):
27482748
r"""
2749-
Return the coefficients of a nonbasic variable
2749+
Return the coefficients of a nonbasic variable.
27502750
27512751
INPUT:
27522752
@@ -3096,16 +3096,11 @@ def leaving(self):
30963096

30973097
def leaving_coefficients(self):
30983098
r"""
3099-
Return coefficients of a leaving variable
3100-
3101-
INPUT:
3102-
3103-
- ``v`` -- a basic variable of ``self``, can be given as a string, an
3104-
actual variable, or an integer interpreted as the index of a variable
3099+
Return coefficients of the leaving variable.
31053100
31063101
OUTPUT:
31073102
3108-
- a vector of coefficients of a leaving variable
3103+
- a vector
31093104
31103105
EXAMPLES::
31113106
@@ -3899,7 +3894,12 @@ def basic_variables(self):
38993894

39003895
def column_coefficients(self, v):
39013896
r"""
3902-
Return coefficients of the entering variable.
3897+
Return coefficients of a nonbasic variable.
3898+
3899+
INPUT:
3900+
3901+
- ``v`` -- a nonbasic variable of ``self``, can be given as a string, an
3902+
actual variable, or an integer interpreted as the index of a variable
39033903
39043904
OUTPUT:
39053905
@@ -3912,8 +3912,7 @@ def column_coefficients(self, v):
39123912
sage: c = (10, 5)
39133913
sage: P = InteractiveLPProblemStandardForm(A, b, c)
39143914
sage: D = P.initial_dictionary()
3915-
sage: D.enter(1)
3916-
sage: D.entering_coefficients()
3915+
sage: D.column_coefficients(1)
39173916
(1, 3)
39183917
"""
39193918
if v is not None:
@@ -4782,7 +4781,12 @@ def c_N(self):
47824781

47834782
def column_coefficients(self, v):
47844783
r"""
4785-
Return coefficients of the entering variable.
4784+
Return the coefficients of a nonbasic variable.
4785+
4786+
INPUT:
4787+
4788+
- ``v`` -- a nonbasic variable of ``self``, can be given as a string, an
4789+
actual variable, or an integer interpreted as the index of a variable
47864790
47874791
OUTPUT:
47884792

0 commit comments

Comments
 (0)