closest: Finds the closest point in within the k-cone to a query point...

Description Usage Arguments Value See Also Examples

View source: R/linprog.R

Description

Finds the closest point in within the k-cone to a query point p.

Usage

1
closest(p, S, m_terms)

Arguments

p

The query point. Can be outside or inside the k-cone.

S

The stochiometric matrix.

m_terms

The metbaolic terms to be used. Must be have ncol(S) elements.

Value

A vector containing the closest point to p within the k-cone.

See Also

fba for optimization within the k-cone.

Examples

1
2
3
4
data(eryth)
S <- stoichiometry(eryth)
mats <- runif(ncol(S))
closest(runif(ncol(S)), S, mats)

cdiener/dycone documentation built on Sept. 26, 2017, 9:11 p.m.