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

Commit c8559f3

Browse files
committed
Clarify the sign of row coefficients.
1 parent 6a5998f commit c8559f3

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

src/sage/numerical/interactive_simplex_method.py

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2799,7 +2799,8 @@ def add_row(self, nonbasic_coefficients, constant, basic_variable=None):
27992799
INPUT:
28002800
28012801
- ``nonbasic_coefficients``-- a list of the coefficients for the
2802-
new row
2802+
new row (with which nonbasic variables are subtracted in the relation
2803+
for the new basic variable)
28032804
28042805
- ``constant``-- the constant term for the new row
28052806
@@ -3564,7 +3565,10 @@ def ratios(self):
35643565
@abstract_method
35653566
def row_coefficients(self, v):
35663567
r"""
3567-
Return the coefficients of a basic variable
3568+
Return the coefficients of the basic variable ``v``.
3569+
3570+
These are the coefficients with which nonbasic variables are subtracted
3571+
in the relation for ``v``.
35683572
35693573
INPUT:
35703574
@@ -4066,7 +4070,8 @@ def add_row(self, nonbasic_coefficients, constant, basic_variable=None):
40664070
INPUT:
40674071
40684072
- ``nonbasic_coefficients``-- a list of the coefficients for the
4069-
new row
4073+
new row (with which nonbasic variables are subtracted in the relation
4074+
for the new basic variable)
40704075
40714076
- ``constant``-- the constant term for the new row
40724077
@@ -4269,7 +4274,10 @@ def objective_value(self):
42694274

42704275
def row_coefficients(self, v):
42714276
r"""
4272-
Return the coefficients of a basic variable
4277+
Return the coefficients of the basic variable ``v``.
4278+
4279+
These are the coefficients with which nonbasic variables are subtracted
4280+
in the relation for ``v``.
42734281
42744282
INPUT:
42754283
@@ -4949,7 +4957,8 @@ def add_row(self, nonbasic_coefficients, constant, basic_variable=None):
49494957
INPUT:
49504958
49514959
- ``nonbasic_coefficients``-- a list of the coefficients for the
4952-
new row
4960+
new row (with which nonbasic variables are subtracted in the relation
4961+
for the new basic variable)
49534962
49544963
- ``constant``-- the constant term for the new row
49554964
@@ -5346,7 +5355,10 @@ def problem(self):
53465355

53475356
def row_coefficients(self, v):
53485357
r"""
5349-
Return the coefficients of a basic variable.
5358+
Return the coefficients of the basic variable ``v``.
5359+
5360+
These are the coefficients with which nonbasic variables are subtracted
5361+
in the relation for ``v``.
53505362
53515363
INPUT:
53525364

0 commit comments

Comments
 (0)