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

Description Usage Arguments Value See Also Examples

View source: R/kcone.R

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 Sept. 26, 2017, 9:11 p.m.