Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
24f10ab
commit 1c3d029
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
============================ | ||
The optlang solver interface | ||
============================ | ||
|
||
`optlang`_ is a generic interface solver interface to . It is based on the | ||
|
||
.. _optlang: http://biosustain.github.io/optlang/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
============ | ||
Dependencies | ||
============ | ||
|
||
For efficiency reasons, cameo does not utilize the cobrapy's interface to LP and MILP solver. Instead it utilizes | ||
optlang. | ||
|
||
|
||
Changing the solver | ||
================== | ||
|
||
The LP/MILP solver can be changed in the following way. | ||
|
||
.. code-block:: python | ||
model.solver = 'cplex' | ||
Currently `'cplex'` and `'glpk' are supported. | ||
|
||
cameo (load models from different formats): | ||
|
||
.. code-block:: python | ||
|
||
from cameo import load_model | ||
# read SBML model | ||
model = load_model('path/to/model.xml') | ||
# ... or read a pickled model | ||
model = load_model('path/to/model.pickle') | ||
# ... or just import a model by ID from http://darwin.di.uminho.pt/models | ||
iAF1260 = load_model('iAF1260') | ||
|
||
|
||
Manipulating the solver object | ||
------------------------------ | ||
|
||
|
||
~~~~~~~ |