public class COBRAsolverExample extends Object
-Djava.library.path=/path/to/the/binaries/of/CPLEX/
.
Note that this project does not redistribute CPLEX.Constructor | Description |
---|---|
COBRAsolverExample(File file) |
Modifier and Type | Method | Description |
---|---|---|
static void |
main(String[] args) |
Simple test function that reads and solves an SBML file in a flux balance
constraints framework.
|
void |
solve(File file) |
public COBRAsolverExample(File file) throws org.sbml.jsbml.SBMLException, org.sbml.jsbml.validator.ModelOverdeterminedException, XMLStreamException, IOException
file
- can be a file or a directory.org.sbml.jsbml.SBMLException
- if the model is invalid or inappropriate for flux balance analysis.XMLStreamException
- if the file cannot be parsed into an SBMLDocument
.IOException
- if the given path is invalid or cannot be readorg.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 void solve(File file) throws org.sbml.jsbml.SBMLException, org.sbml.jsbml.validator.ModelOverdeterminedException, XMLStreamException, IOException
file
- can be a file or a directory. In the latter case, the directory will be recursively queried.org.sbml.jsbml.SBMLException
- if the model is invalid or inappropriate for flux balance analysis.XMLStreamException
- if the file cannot be parsed into an SBMLDocument
.IOException
- if the given path is invalid or cannot be readorg.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 static void main(String[] args) throws FileNotFoundException
args
- the path to a valid SBML file with fbc version 2.FileNotFoundException
Copyright © 2007–2018. All rights reserved.