Skip to content

Commit

Permalink
Merge pull request #2333 from opencobra/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
rmtfleming authored Oct 2, 2024
2 parents ef80589 + e5d3d27 commit 106a6ca
Show file tree
Hide file tree
Showing 81 changed files with 1,403 additions and 817 deletions.
3 changes: 3 additions & 0 deletions deprecated/buildLPproblemFromModel.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function optProblem = buildLPproblemFromModel(model, verify)
warning('Function buildLPproblemFromModel depreciated, using buildOptProblemFromModel instead.')
optProblem = buildOptProblemFromModel(model, verify);

Large diffs are not rendered by default.

Large diffs are not rendered by default.

45 changes: 28 additions & 17 deletions docs/source/installation/solvers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,32 +85,43 @@ TOMLAB
IBM ILOG CPLEX
~~~~~~~~~~~~~~

1) Download the ``CPLEX`` installation binary. The limited community
edition is
`here <https://www.ibm.com/products/ilog-cplex-optimization-studio>`__.
CPLEX is free for students (and academics) and further information
how to register and download is
`here <https://www.ibm.com/developerworks/community/blogs/jfp/entry/CPLEX_Is_Free_For_Students?lang=en>`__.
N.B. CPLEX is free for students and academics, but only the last version with a matlab interface is 12.10.

2) |macos| |linux| Add ``execute`` permission to binary
1) Obtain IBMid as academic using a university address

2) Navigate to `here <https://academic.ibm.com/a2mt/downloads/data_science#/>`

3) Select IBM ILOG CPLEX Optimization Studio

4) Search Text for “CPLEX 12.10”

5) Select HTTP

6) Select box to left of “CC439ML IBM ILOG CPLEX Optimization Studio V12.10 for Linux x86-64 Multilingual”

7) Below, select “I agree”, only then the option to download appears!

8) Select "Download" then download of cplex_studio1210.linux-x86-64.bin should start

9) |macos| |linux| Add ``execute`` permission to binary

.. code-block:: console
$ chmod +x <cplexbinary>.bin
$ chmod +x cplex_studio1210.linux-x86-64.bin
3) |macos| |linux| Run the installer binary as superuser, follow the installation
10) |macos| |linux| Run the installer binary as superuser, follow the installation
procedure, and accept the default installation path.

.. code-block:: console
$ sudo ./<cplexbinary>.bin
$ sudo ./cplex_studio1210.linux-x86-64.bin
|windows| Run
``cplex_studio<ver>.win-x86-64.exe`` as an administrator. Follow the
``cplex_studio1210.win-x86-64.exe`` as an administrator. Follow the
installation instructions and install ``CPLEX`` in
``C:\Program Files\IBM\ILOG\CPLEX_Studio<ver>``.
``C:\Program Files\IBM\ILOG\CPLEX_Studio1210``.

4) |macos| |linux| Set the environment variable by editing your ``~/.bashrc`` file:
11) |macos| |linux| Set the environment variable by editing your ``~/.bashrc`` file:

.. code-block:: console
Expand All @@ -123,13 +134,13 @@ IBM ILOG CPLEX

.. code-block:: console
export ILOG_CPLEX_PATH="/opt/ibm/ILOG/CPLEX_Studio<ver>"
export ILOG_CPLEX_PATH="/opt/ibm/ILOG/CPLEX_Studio1210"
On |macos|:

.. code-block:: console
export ILOG_CPLEX_PATH="/Applications/IBM/ILOG/CPLEX_Studio<ver>"
export ILOG_CPLEX_PATH="/Applications/IBM/ILOG/CPLEX_Studio1210"
Reload your ``~/.bashrc``:

Expand All @@ -143,8 +154,8 @@ IBM ILOG CPLEX

|windows| |warning| If you installed cplex in a non default folder (or if you are using the community version) please make sure, that you create an environment variable ``ILOG_CPLEX_PATH`` pointing to the directory containing the CPLEX matlab bindings. This can also be done by creating a `startup.m` file as detailed here `here <https://nl.mathworks.com/help/matlab/ref/startup.html>`__.
In this startup file add the following command:
``setenv('ILOG_CPLEX_PATH','C:\<yourCPLEXPath>\CPLEX_Studio<ver>\cplex\matlab\<arch>')``
where ``<yourCPLEXPath>`` is the path to cplex, ``<ver>`` is the installed version and ``<arch>`` is the architecture identifier.
``setenv('ILOG_CPLEX_PATH','C:\<yourCPLEXPath>\CPLEX_Studio1210\cplex\matlab\<arch>')``
where ``<yourCPLEXPath>`` is the path to cplex, ``1210`` is the installed version and ``<arch>`` is the architecture identifier.

GUROBI
~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion docs/source/notes/COBRAModelFields.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ The following fields are defined in the COBRA toolbox. IF the field is present i
|`model.rxnRheaID`| `n x 1` | Column Cell Array of Strings | Rhea identifier of the reaction |
|`model.rxnBiGGID`| `n x 1` | Column Cell Array of Strings | BiGG identifier of the reaction |
|`model.rxnSBOTerms`| `n x 1` | Column Cell Array of Strings | The SBO Identifier associated with the reaction |
|`model.subSystems`| `n x 1` | Column Cell Array of Strings or Column Cell Array of Cell Arrays of Strings | subSystem assignment for each reaction |
|`model.subSystems`| `n x 1` | Column Cell Array of Cell Arrays of Strings | subSystem assignment for each reaction |
|`model.description`| `` | String or Struct | Name of a file the model is loaded from. |
|`model.modelVersion`| `` | Struct | Information on the model version |
|`model.modelName`| `` | String | A Descriptive Name of the model |
Expand Down
2 changes: 1 addition & 1 deletion src/analysis/FBA/enumerateOptimalSolutions.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
solution.nonzero = zeros(nRxns,0);

%sol = optimizeCbModel(model);
LPproblem = buildLPproblemFromModel(model);
LPproblem = buildOptProblemFromModel(model);
NZ = zeros(nRxns,0);
sol = solveCobraLP(LPproblem);
tol = getCobraSolverParams('LP','feasTol');
Expand Down
Loading

0 comments on commit 106a6ca

Please sign in to comment.