@@ -58,7 +58,8 @@ cdef class LP:
5858 """ Adds a single column to the LP.
5959
6060 Keyword arguments:
61- entries -- list of tuples, each tuple consists of a row index and a coefficient
61+ entries -- a list of tuples; if p is the index of the new column, then each tuple (i, k) indicates that
62+ A[i][p] = k, where A is the constraint matrix and k is a nonzero entry.
6263 obj -- objective coefficient (default 0.0)
6364 lb -- lower bound (default 0.0)
6465 ub -- upper bound (default infinity)
@@ -85,7 +86,8 @@ cdef class LP:
8586 """ Adds multiple columns to the LP.
8687
8788 Keyword arguments:
88- entrieslist -- list containing lists of tuples, each tuple contains a coefficient and a row index
89+ entrieslist -- a list of lists, where the j-th inner list contains tuples (i, k) such that A[i][p] = k,
90+ where A is the constraint matrix, p is the index of the j-th new column, and k is a nonzero entry.
8991 objs -- objective coefficient (default 0.0)
9092 lbs -- lower bounds (default 0.0)
9193 ubs -- upper bounds (default infinity)
@@ -147,7 +149,8 @@ cdef class LP:
147149 """ Adds a single row to the LP.
148150
149151 Keyword arguments:
150- entries -- list of tuples, each tuple contains a coefficient and a column index
152+ entries -- a list of tuples; if q is the index of the new row, then each tuple (j, k) indicates that
153+ A[q][j] = k, where A is the constraint matrix and k is a nonzero entry.
151154 lhs -- left-hand side of the row (default 0.0)
152155 rhs -- right-hand side of the row (default infinity)
153156 """
@@ -172,7 +175,8 @@ cdef class LP:
172175 """ Adds multiple rows to the LP.
173176
174177 Keyword arguments:
175- entrieslist -- list containing lists of tuples, each tuple contains a coefficient and a column index
178+ entrieslist -- a list of lists, where the i-th inner list contains tuples (j, k) such that A[q][j] = k,
179+ where A is the constraint matrix, q is the index of the i-th new row, and k is a nonzero entry.
176180 lhss -- left-hand side of the row (default 0.0)
177181 rhss -- right-hand side of the row (default infinity)
178182 """
0 commit comments