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

Commit

Permalink
Clarify the sign of row coefficients.
Browse files Browse the repository at this point in the history
  • Loading branch information
novoselt committed Jul 20, 2016
1 parent 6a5998f commit c8559f3
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions src/sage/numerical/interactive_simplex_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -2799,7 +2799,8 @@ def add_row(self, nonbasic_coefficients, constant, basic_variable=None):
INPUT:
- ``nonbasic_coefficients``-- a list of the coefficients for the
new row
new row (with which nonbasic variables are subtracted in the relation
for the new basic variable)
- ``constant``-- the constant term for the new row
Expand Down Expand Up @@ -3564,7 +3565,10 @@ def ratios(self):
@abstract_method
def row_coefficients(self, v):
r"""
Return the coefficients of a basic variable
Return the coefficients of the basic variable ``v``.
These are the coefficients with which nonbasic variables are subtracted
in the relation for ``v``.
INPUT:
Expand Down Expand Up @@ -4066,7 +4070,8 @@ def add_row(self, nonbasic_coefficients, constant, basic_variable=None):
INPUT:
- ``nonbasic_coefficients``-- a list of the coefficients for the
new row
new row (with which nonbasic variables are subtracted in the relation
for the new basic variable)
- ``constant``-- the constant term for the new row
Expand Down Expand Up @@ -4269,7 +4274,10 @@ def objective_value(self):

def row_coefficients(self, v):
r"""
Return the coefficients of a basic variable
Return the coefficients of the basic variable ``v``.
These are the coefficients with which nonbasic variables are subtracted
in the relation for ``v``.
INPUT:
Expand Down Expand Up @@ -4949,7 +4957,8 @@ def add_row(self, nonbasic_coefficients, constant, basic_variable=None):
INPUT:
- ``nonbasic_coefficients``-- a list of the coefficients for the
new row
new row (with which nonbasic variables are subtracted in the relation
for the new basic variable)
- ``constant``-- the constant term for the new row
Expand Down Expand Up @@ -5346,7 +5355,10 @@ def problem(self):

def row_coefficients(self, v):
r"""
Return the coefficients of a basic variable.
Return the coefficients of the basic variable ``v``.
These are the coefficients with which nonbasic variables are subtracted
in the relation for ``v``.
INPUT:
Expand Down

0 comments on commit c8559f3

Please sign in to comment.