Skip to content

Commit

Permalink
doc: new outline for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
phantomas1234 committed Feb 8, 2016
1 parent 24f10ab commit 1c3d029
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/optlang.rst
@@ -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/
37 changes: 37 additions & 0 deletions docs/solver_interface.rst
@@ -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
------------------------------


~~~~~~~

0 comments on commit 1c3d029

Please sign in to comment.