public class COBRAsolver extends Object
| Constructor | Description |
|---|---|
COBRAsolver(org.sbml.jsbml.SBMLDocument doc) |
Initializes the linear program and all data structures based on the
definitions in the given
SBMLDocument. |
| Modifier and Type | Method | Description |
|---|---|---|
double |
getObjetiveValue() |
Returns the objective value of the current solution.
|
double |
getValue(String reactionId) |
Returns the solution value for the
Reaction variable with the given
identifier. |
double[] |
getValues() |
Returns solution values for an array of
Reaction variables. |
boolean |
solve() |
Solves the linear program that is defined in the
SBMLDocument with
which this solver was initialized. |
public COBRAsolver(org.sbml.jsbml.SBMLDocument doc)
throws org.sbml.jsbml.SBMLException,
org.sbml.jsbml.validator.ModelOverdeterminedException
SBMLDocument.
This implementation should work for diverse levels and versions of SBML
Models given that the model contains an fbc package in version 1 or
2.doc - the SBML container from which the Model is taken. This
implementation only understands SBML core (diverse levels and
versions) in combination with fbc versions 1 and 2.org.sbml.jsbml.validator.ModelOverdeterminedException - if the Model is over determined through
AlgebraicRules.org.sbml.jsbml.SBMLException - if the Model is invalid or inappropriate for flux balance
analysis.public boolean solve()
throws NullPointerException
SBMLDocument with
which this solver was initialized.NullPointerException - If the method fails, an exception of type NullPointerException, or one of
its derived classes, is thrown.public double getObjetiveValue()
throws NullPointerException
NullPointerException - If the method fails, an exception of type IloException, or one of
its derived classes, is thrown.public double getValue(String reactionId) throws NullPointerException, ArrayIndexOutOfBoundsException
Reaction variable with the given
identifier.reactionId - the identifier of the Reaction of interest.Reaction takes for the current solution.NullPointerException - If the Reaction identifier is not in the active model.ArrayIndexOutOfBoundsException - If the method fails, an exception of type ArrayIndexOutOfBoundsException, or one of
its derived classes, is thrown.public double[] getValues()
throws NullPointerException
Reaction variables.NullPointerException - If the method fails, an exception of type NullPointerException, or one of
its derived classes, is thrown.Copyright © 2007–2018. All rights reserved.