steady(rootSolve)
steady()所属R语言包:rootSolve
General steady-state solver for a set of ordinary differential equations.
一般的稳定状态,一组常微分方程的求解。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Estimates the steady-state condition for a system of ordinary differential equations.
估计常微分方程系统的稳定状态。
This is a wrapper around steady-state solvers stode, stodes and runsteady.
这是一个包装周围的稳态解算器stode,stodes和runsteady。
用法----------Usage----------
steady(y, time = NULL, func, parms = NULL, method = "stode", ...)
参数----------Arguments----------
参数:y
the initial guess of (state) values for the ODE system, a vector. If y has a name attribute, the names will be used to label the output matrix.
(州)的初始估计值的ODE系统的一个向量。 y如果有一个name属性,名称将被用于标记输出矩阵。
参数:time
time for which steady-state is wanted; the default is time=0 (for method = "stode" or method = "stodes", and time = c(0,Inf) for method = "runsteady".
时间的稳定状态被通缉,默认的是time=0(method = "stode"或method = "stodes"和time = c(0,Inf)method = "runsteady"。
参数:func
either an R-function that computes the values of the derivatives in the ode system (the model defininition) at time time, or a character string giving the name of a compiled function in a dynamically loaded shared library. If func is an R-function, it must be defined as: yprime = func(t, y, parms,...). t is the current time point in the integration, y is the current estimate of the variables in the ODE system. If the initial values y has a names attribute, the names will be available inside func. parms is a vector or list of parameters; ... (optional) are any other arguments passed to the function. The return value of func should be a list, whose first element is a vector containing the derivatives of y with respect to time, and whose next elements are global values whose steady-state value is also required. The derivatives should be specified in the same order as the state variables y.
可以是R-函数的衍生物中的值,计算在时间的颂歌系统(模型defininition)time,或给人的编译函数在一个动态加载的共享库的名称的字符串。如果func是一个R-函数,它必须被定义为:yprime = func(t, y, parms,...)。 t是当前时间点的整合,y是目前估计的ODE系统中的变量。如果初始值y有一个名称属性,名称将是提供内func。 parms是一个向量或参数列表; (可选)传递给函数的任何其他参数。 func的返回值应该是一个列表的第一个元素是一个向量包含y的衍生工具就time,而其下一个元素是全球性的值,其稳态值也是必需的。衍生工具应以相同的顺序指定的作为状态变量y。
参数:parms
parameters passed to func.
参数传递到func。
参数:method
the solution method to use, one of stode, stodes or runsteady.
解决的方法使用,一stode,stodes或runsteady。
参数:...
additional arguments passed to function stode, stodes or runsteady.
额外的参数传递给函数的stode,stodes或runsteady。
Details
详细信息----------Details----------
This is simply a wrapper around the various steady-state solvers.
这仅仅是一个包装周围的各种稳态解算器。
See package vignette for information about specifying the model in compiled code.
编译后的代码中指定型号的信息,请参阅包小插曲。
See the selected solver for the additional options.
所选择的求解器的附加选项。
值----------Value----------
A list containing
一个列表,其中包含
参数:y
a vector with the state variable values from the last iteration during estimation of steady-state condition of the system of equations. If y has a names attribute, it will be used to label the output values.
从最后一次迭代在估算过程中的方程系统的稳态状况的状态变量值的一个矢量。如果y有一个名称属性,它会被用来标注的输出值。
参数:...
the number of "global" values returned.
返回的“全球性”的价值观。
The output will have the attribute steady, which returns TRUE, if steady-state has been reached and the attribute precis with the precision attained during each iteration.
输出将有steady,它返回的属性TRUE,如果稳态已达到和属性precis在每次迭代中达到的精度。
(作者)----------Author(s)----------
Karline Soetaert <karline.soetaert@nioz.nl>
参见----------See Also----------
steady.band, to find the steady-state of ODE models with a banded Jacobian
steady.band,找到稳定状态的ODE模型的一个带状的雅可比
steady.1D, steady.2D, steady.3D, steady-state solvers for 1-D, 2-D and 3-D partial differential equations.
steady.1D,steady.2D,steady.3D,1-D,2-D和3-D偏微分方程的稳态解算器。
stode, iterative steady-state solver for ODEs with full or banded Jacobian.
stode,常微分方程全部或带状雅可比迭代稳态解算器。
stodes, iterative steady-state solver for ODEs with arbitrary sparse Jacobian.
stodes,常微分方程任意稀疏Jacobian迭代稳态解算器。
runsteady, steady-state solver by dynamically running to steady-state
runsteady,通过动态运行到稳定状态的稳态求解器
实例----------Examples----------
## =======================================================================[#================================================= ======================]
## Bacteria (Bac) growing on a substrate (Sub)[#菌(Bac的)的衬底上生长(分)]
## =======================================================================[#================================================= ======================]
model <- function(t, state, pars) {
with (as.list(c(state,pars)), {
# substrate uptake death respiration[底物的吸收死亡呼吸]
dBact = gmax*eff*Sub/(Sub+ks)*Bact - dB*Bact - rB*Bact
dSub =-gmax *Sub/(Sub+ks)*Bact + dB*Bact +input
return(list(c(dBact, dSub)))
})
}
pars <- list(gmax = 0.5,eff = 0.5,
ks = 0.5, rB = 0.01, dB = 0.01, input = 0.1)
# Newton-Raphson[牛顿 - 拉夫逊]
steady(y = c(Bact = 0.1, Sub = 0), time = 0,
func = model, parms = pars, pos = TRUE)
# Dynamic run to steady-state[动态运行到稳定状态]
as.data.frame(steady(y = c(Bact = 0.1, Sub = 0), time = c(0, 1e5),
func = model, parms = pars, method = "runsteady"))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|