constrain_by_Keq: Get the equality constraints for a given set of known...

Description Usage Arguments Value See Also Examples

Description

Get the equality constraints for a given set of known equlibrium constants.

Usage

1
constrain_by_Keq(r, name = "Keq", mats = NULL)

Arguments

r

A reaction list.

name

Name of the annotation that contains the constants.

mats

A vector of mass-action terms to integrate with the equalities. Useful if you want to constrain the flux cone rather than a k-cone. Default is NULL (do not use mass-action terms).

Value

A n_r x n_e matrix containing the n_e constraints.

See Also

polytope_basis how to add those to polytope computation.

Examples

1
2
3
4
data(eryth)
x <- eryth
x[[4]]$Keq <- 10
co <- constrain_by_Keq(x)

cdiener/dycone documentation built on May 13, 2019, 2:41 p.m.