public class FluxBalanceAnalysis extends Object
This class provides implementation of fba using the information from the SBML fbc packages. This solver implementation supports SBML models with FBC package versions 1 or 2.
Constructor and Description |
---|
FluxBalanceAnalysis(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 and Description |
---|---|
String |
getActiveObjective()
Gets the id of the active objective function
|
double |
getEpsilon()
Gets the value of the EPSILON
|
double |
getObjectiveValue()
Returns the objective value of the current solution.
|
Map<String,Double> |
getSolution()
Returns solution values as a HashMap with key as reaction Id and value as the flux.
|
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. |
void |
setEpsilon(double eps)
Set the value of the EPSILON specific to a particular FBC instance
|
boolean |
solve()
Solves the linear program that is defined in the
SBMLDocument with which this solver
was initialized. |
public FluxBalanceAnalysis(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
Model
s 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 AlgebraicRule
s.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 getObjectiveValue() 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.public Map<String,Double> getSolution()
public double getEpsilon()
public void setEpsilon(double eps)
eps
- public String getActiveObjective()
Copyright © 2007–2021. All rights reserved.