Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Documentation Suggestions for build.rst and lp.pxi
  • Loading branch information
gtjusila committed Jul 17, 2025
commit 0a8b59c91ef276adeb3a571b09821c5e673486f8
9 changes: 9 additions & 0 deletions docs/build.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,15 @@ For Linux and MacOS systems set the variable with the following command:

export SCIPOPTDIR=<path_to_install_dir>

.. note::

For macOS users, to ensure that the SCIP dynamic library can be found at runtime by PySCIPOpt,
you should add your SCIP installation path to the ``DYLD_LIBRARY_PATH`` environment variable by running:

.. code-block::

export DYLD_LIBRARY_PATH="<path_to_install_dir>/lib:$DYLD_LIBRARY_PATH"

For Windows use the following command:

.. code-block:: bash
Expand Down
12 changes: 8 additions & 4 deletions src/pyscipopt/lp.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ cdef class LP:
"""Adds a single column to the LP.

Keyword arguments:
entries -- list of tuples, each tuple consists of a row index and a coefficient
entries -- a list of tuples; if p is the index of the new column, then each tuple (i, k) indicates that
A[i][p] = k, where A is the constraint matrix and k is a nonzero entry.
obj -- objective coefficient (default 0.0)
lb -- lower bound (default 0.0)
ub -- upper bound (default infinity)
Expand All @@ -85,7 +86,8 @@ cdef class LP:
"""Adds multiple columns to the LP.

Keyword arguments:
entrieslist -- list containing lists of tuples, each tuple contains a coefficient and a row index
entrieslist -- a list of lists, where the j-th inner list contains tuples (i, k) such that A[i][p] = k,
where A is the constraint matrix, p is the index of the j-th new column, and k is a nonzero entry.
objs -- objective coefficient (default 0.0)
lbs -- lower bounds (default 0.0)
ubs -- upper bounds (default infinity)
Expand Down Expand Up @@ -147,7 +149,8 @@ cdef class LP:
"""Adds a single row to the LP.

Keyword arguments:
entries -- list of tuples, each tuple contains a coefficient and a column index
entries -- a list of tuples; if q is the index of the new row, then each tuple (j, k) indicates that
A[q][j] = k, where A is the constraint matrix and k is a nonzero entry.
lhs -- left-hand side of the row (default 0.0)
rhs -- right-hand side of the row (default infinity)
"""
Expand All @@ -172,7 +175,8 @@ cdef class LP:
"""Adds multiple rows to the LP.

Keyword arguments:
entrieslist -- list containing lists of tuples, each tuple contains a coefficient and a column index
entrieslist -- a list of lists, where the i-th inner list contains tuples (j, k) such that A[q][j] = k,
where A is the constraint matrix, q is the index of the i-th new row, and k is a nonzero entry.
lhss -- left-hand side of the row (default 0.0)
rhss -- right-hand side of the row (default infinity)
"""
Expand Down
Loading