大便带血是什么原因| 一唱一和是什么生肖| 吃什么对头发好| 咖喱是什么味道| 迎风流泪用什么眼药水| 女人有腰窝意味着什么| 车加失读什么| 紧急避孕药什么时候吃有效| 心脏增大吃什么药| 汗疱疹是什么| mafia是什么意思| 张宇的老婆叫什么名字| neg是什么意思| 大便感觉拉不干净什么原因| 肝血虚吃什么药| 反刍什么意思| 干红是什么意思| 四面弹是什么面料| 心理素质是什么意思| 白兰地是什么酒| 脊柱炎吃什么药效果好| 怀孕养狗对胎儿有什么影响| 鳞状上皮乳头状瘤是什么| 药娘吃的什么药| 祈福什么意思| 健脾祛湿吃什么中成药| 甲状腺彩超挂什么科| 什么的味道| 代偿期和失代偿期是什么意思| 尿的颜色有点红褐色是什么原因| 慢性病都包括什么病| 什么的动作| 小孩流鼻血挂什么科| 猫咪弓背是什么原因| 什么情况下要打破伤风针| 盐酸二甲双胍缓释片什么时候吃| 什么药可以消肿| 血糖高不能吃什么水果| 天仙是什么意思| 三年级用什么笔| 梦见手链断了是什么意思| 血脂高吃什么降血脂| 平均分是什么意思| 身上长扁平疣是什么原因造成的| 杠杠的是什么意思| 怕热不怕冷是什么体质| 站久了脚后跟疼是什么原因| 七月十七是什么星座| 难过美人关是什么生肖| 牙膏尾部的颜色代表什么意思| 土豆有什么营养价值| 农历八月初一是什么星座| 肾病有什么症状男性| 人为什么会长痔疮| 来例假吃什么好| 男生为什么喜欢女生叫爸爸| 脚踝肿是什么原因引起的| 事半功倍什么意思| 十一月二十六是什么星座| 汗疱疹是什么原因引起| vinegar是什么意思| 痛经是什么意思| 款款是什么意思| 每天吃洋葱有什么好处| 下联是什么| 梦见亲人死了是什么意思| 势不可挡是什么意思| 胆结石有什么治疗方法| 黄色五行属什么| 丝瓜什么人不能吃| 马凡氏综合症是什么病| 尿带血是什么原因| 东方是什么意思| 收支两条线是什么意思| 受精卵着床有什么反应| 尿道炎有什么症状| 豁口是什么意思| 腰不好挂什么科| prada是什么品牌| 缺维生素e有什么症状| 吐奶严重是什么原因| 头孢长什么样图片| 第二磨牙什么时候长| 为什么不快乐| 吃惊的近义词是什么| 各什么己| atp 是什么| 体外受精是什么意思| 生吃紫苏叶有什么功效| 门牙旁边的牙齿叫什么| 退而求其次什么意思| 喉炎吃什么药| 膀胱炎是什么症状| 丙辰日是什么意思| 牙龈出血缺什么维生素| 小缺血灶是什么意思| eos是什么| 女生自慰是什么感觉| 肾阳虚喝什么泡水最好| 单抗是什么药| 头孢曲松是什么药| 释迦牟尼是什么意思| 查血挂什么科| 血压低头晕吃什么药| 7月有什么活动| 桃子有什么营养价值| 人瘦是什么原因造成的| 五月是什么星座| 靴型心见于什么病| 肠化生是什么症状| 置换是什么意思| 桂花是什么季节开的| 什么是植物油| lotus是什么牌子| 篮子房是什么意思| 过奖了是什么意思| 耳朵真菌感染用什么药| 身心俱疲是什么意思| 白醋洗脸有什么效果| tissot是什么牌子1853| 刮痧有什么作用| 腿疼去医院挂什么科| 什么叫血糖| 胸膈痞闷什么意思| 为情所困是什么意思| 梦见跑步是什么意思| 小猫来家里有什么预兆| 丸美属于什么档次| hpv52阳性有什么症状| 私人订制什么意思| 发情是什么意思| 湿热泄泻是什么意思| 暂时无法接通是什么意思| 什么叫三叉神经痛| 老茧是什么意思| 江团鱼是什么鱼| 钢镚是什么意思| 怕热爱出汗是什么原因| 克拉霉素主治什么病| 狗毛对人体有什么危害| crp是什么检查项目| 保险凭证号是什么| 大圣归来2什么时候上映| 失眠去药店买什么药| 蛤蜊是什么| essential是什么意思| 高血压是什么原因造成的| 维生素检查项目叫什么| 疼痛科主要看什么病| 告辞是什么意思| 肉是什么意思| 梦到亲人死了是什么征兆| 肝内钙化斑是什么意思| 经期吃凉的东西有什么影响| 杜甫被称为什么| 缺锌会导致什么| 什么的愿望| 韩国烧酒什么味道| 金钱骨是什么部位| 松垮是什么意思| 1998年出生属什么生肖| 传导阻滞是什么意思| 腹部包块是什么样子的| 重庆东站什么时候通车| 美国为什么不建高铁| 血常规是什么意思| 缺钙查什么化验项目| 血管炎是什么症状| 175是什么码| 去心火吃什么药| 庚子是什么时辰| 彩蛋是什么意思| 时间观念是什么意思| 小孩经常尿床是什么原因| pci手术全称是什么| 吃四方是什么生肖| 大便为什么不成形| 九头身是什么意思| 为什么玉镯不能戴左手| 黄色裤子配什么上衣好看| cpf是什么意思| 什么族不吃猪肉| 10月出生是什么星座| 三点水一个条读什么| 面部油腻是什么原因| 热玛吉是做什么的| 复苏是什么意思| 林心如什么学历| 酪朊酸钠是什么| 搭桥和支架有什么区别| 欲钱看正月初一是什么生肖| 男生属鸡和什么属相配| 氯偏高是什么原因| 气色是什么意思| 孩子喝什么牛奶有助于长高| 今年42岁属什么生肖| 爱生气的人容易得什么病| 代理是什么| 脸部肌肉跳动是什么原因| 鲤鱼旗的含义是什么| ct挂什么科| 打完耳洞要注意什么| 女人白带多什么原因| 梦见家里水管漏水是什么意思| 湿疹擦什么药膏| 抗ro52抗体阳性是什么意思| 下缘达宫颈内口是什么意思| 香港特首是什么级别| 子宫形态不规则是什么意思| 玫瑰花可以和什么一起泡水喝| 神机妙算是什么生肖| 12度穿什么衣服| 毛刺是什么意思| 1989年五行属什么| 乌鸡放什么炖补气补血| 浅表性胃炎吃什么药好使| 拜你所赐什么意思| 一什么清风| 肝在五行中属什么| 汉武帝叫什么名字| 碘吃多了有什么危害| 孕妇吃花胶对胎儿有什么好处| 妈妈的姐姐的儿子叫什么| 九月十五是什么星座的| 违法是什么意思| 为什么会头疼| 向日葵代表什么生肖| 梦见自己给自己理发是什么意思| 中国最高学位是什么| 奥美拉唑与雷贝拉唑有什么区别| 艾滋病一年有什么症状| 汗斑是什么原因引起的| 喝羊奶有什么好处| 梦见牙碎了是什么预兆| 宣字五行属什么| 哮喘吃什么药最好| 更是什么结构的字| 依波手表什么档次| 月球是地球的什么星| 75岁属什么| 念珠菌感染用什么药| 捆鸡是什么做的| 梦见别人给自己剪头发是什么意思| 不置可否什么意思| 青蛙是什么生肖| 头晕目眩挂什么科| 阿尼是什么意思| 身份证最后一位代表什么| 脑梗适合吃什么食物| 宝宝肌张力高会有什么影响| 丸美属于什么档次| 静脉曲张吃什么食物好| 飞的第一笔是什么| 一什么见什么| 矫正度数是什么意思| 梦见补的牙齿掉了是什么意思| 榴莲树长什么样子| 夭寿是什么意思| 美国是什么人种| 压疮是什么| eso是什么意思| 脚面肿是什么原因| 小儿急性喉炎吃什么药| 元参别名叫什么| 百度
Learn R Programming

stats (version 3.6.2)

八爪鱼是什么

Description

百度 财报展望,2018年,中国石油计划原油产量为百万桶,天然气产量十亿立方英尺,油气当量合计为百万桶。

Unconstrained and box-constrained optimization using PORT routines.

For historical compatibility.

Usage

nlminb(start, objective, gradient = NULL, hessian = NULL, …,
       scale = 1, control = list(), lower = -Inf, upper = Inf)

Arguments

start

numeric vector, initial values for the parameters to be optimized.

objective

Function to be minimized. Must return a scalar value. The first argument to objective is the vector of parameters to be optimized, whose initial values are supplied through start. Further arguments (fixed during the course of the optimization) to objective may be specified as well (see ).

gradient

Optional function that takes the same arguments as objective and evaluates the gradient of objective at its first argument. Must return a vector as long as start.

hessian

Optional function that takes the same arguments as objective and evaluates the hessian of objective at its first argument. Must return a square matrix of order length(start). Only the lower triangle is used.

Further arguments to be supplied to objective.

scale

See PORT documentation (or leave alone).

control

A list of control parameters. See below for details.

lower, upper

vectors of lower and upper bounds, replicated to be as long as start. If unspecified, all parameters are assumed to be unconstrained.

Value

A list with components:

par

The best set of parameters found.

objective

The value of objective corresponding to par.

convergence

An integer code. 0 indicates successful convergence.

message

A character string giving any additional information returned by the optimizer, or NULL. For details, see PORT documentation.

iterations

Number of iterations performed.

evaluations

Number of objective function and gradient function evaluations

Control parameters

Possible names in the control list and their default values are:

eval.max

Maximum number of evaluations of the objective function allowed. Defaults to 200.

% MXFCAL
iter.max

Maximum number of iterations allowed. Defaults to 150.

% MXITER
trace

The value of the objective function and the parameters is printed every trace'th iteration. Defaults to 0 which indicates no trace information is to be printed.

abs.tol

Absolute tolerance. Defaults to 0 so the absolute convergence test is not used. If the objective function is known to be non-negative, the previous default of 1e-20 would be more appropriate.

% AFCTOL 31
rel.tol

Relative tolerance. Defaults to 1e-10.

% RFCTOL 32
x.tol

X tolerance. Defaults to 1.5e-8.

% XCTOL 33
xf.tol

false convergence tolerance. Defaults to 2.2e-14.

% XFTOL 34
step.min, step.max

Minimum and maximum step size. Both default to 1..

% LMAX0 35 / LMAXS 36
sing.tol

singular convergence tolerance; defaults to rel.tol.

% SCTOL 37
scale.init

...

% DINIT 38
diff.g

an estimated bound on the relative error in the objective function value.

% ETA0 42

Details

Any names of start are passed on to objective and where applicable, gradient and hessian. The parameter vector will be coerced to double.

If any of the functions returns NA or NaN this is an error for the gradient and Hessian, and such values for function evaluation are replaced by +Inf with a warning.

References

David M. Gay (1990), Usage summary for selected optimization routines. Computing Science Technical Report 153, AT&T Bell Laboratories, Murray Hill.

See Also

optim (which is preferred) and nlm.

optimize for one-dimensional minimization and constrOptim for constrained optimization.

Examples

Run this code
# NOT RUN {
x <- rnbinom(100, mu = 10, size = 10)
hdev <- function(par)
    -sum(dnbinom(x, mu = par[1], size = par[2], log = TRUE))
nlminb(c(9, 12), hdev)
nlminb(c(20, 20), hdev, lower = 0, upper = Inf)
nlminb(c(20, 20), hdev, lower = 0.001, upper = Inf)

## slightly modified from the S-PLUS help page for nlminb
# this example minimizes a sum of squares with known solution y
sumsq <- function( x, y) {sum((x-y)^2)}
y <- rep(1,5)
x0 <- rnorm(length(y))
nlminb(start = x0, sumsq, y = y)
# now use bounds with a y that has some components outside the bounds
y <- c( 0, 2, 0, -2, 0)
nlminb(start = x0, sumsq, lower = -1, upper = 1, y = y)
# try using the gradient
sumsq.g <- function(x, y) 2*(x-y)
nlminb(start = x0, sumsq, sumsq.g,
       lower = -1, upper = 1, y = y)
# now use the hessian, too
sumsq.h <- function(x, y) diag(2, nrow = length(x))
nlminb(start = x0, sumsq, sumsq.g, sumsq.h,
       lower = -1, upper = 1, y = y)

## Rest lifted from optim help page

fr <- function(x) {   ## Rosenbrock Banana function
    x1 <- x[1]
    x2 <- x[2]
    100 * (x2 - x1 * x1)^2 + (1 - x1)^2
}
grr <- function(x) { ## Gradient of 'fr'
    x1 <- x[1]
    x2 <- x[2]
    c(-400 * x1 * (x2 - x1 * x1) - 2 * (1 - x1),
       200 *      (x2 - x1 * x1))
}
nlminb(c(-1.2,1), fr)
nlminb(c(-1.2,1), fr, grr)


flb <- function(x)
    { p <- length(x); sum(c(1, rep(4, p-1)) * (x - c(1, x[-p])^2)^2) }
## 25-dimensional box constrained
## par[24] is *not* at boundary
nlminb(rep(3, 25), flb, lower = rep(2, 25), upper = rep(4, 25))
## trying to use a too small tolerance:
r <- nlminb(rep(3, 25), flb, control = list(rel.tol = 1e-16))
stopifnot(grepl("rel.tol", r$message))
# }

Run the code above in your browser using DataLab

长智齿牙龈肿痛吃什么药 脾虚痰湿吃什么中成药 人老是放屁是什么原因 吃环孢素有什么副作用 狗狗能看见什么颜色
七月份怀孕预产期是什么时候 扫墓是什么意思 窦性心律不齐是什么意思 吃土豆有什么好处 正常人为什么会低血糖
路人甲是什么意思 雌激素是什么 吹面不寒杨柳风什么意思 什么是水印照片 狗嚎叫有什么预兆
什么什么一什么 瑞字属于五行属什么 什么叫膳食纤维 总蛋白偏高有什么危害 兵部尚书相当于现在的什么官
为什么下巴经常长痘痘hcv7jop9ns5r.cn 西瓜和什么相克hcv7jop7ns4r.cn 做噩梦被吓醒预示什么creativexi.com 心血虚吃什么中成药hcv9jop3ns5r.cn 青少年梦遗有什么危害hcv9jop3ns2r.cn
眼睛痒什么原因520myf.com 痛风挂什么科就医xinmaowt.com 胃肠炎吃什么药好hcv9jop4ns2r.cn 翅膀车标是什么车hcv9jop6ns3r.cn 胃功能三项检查是什么hcv9jop0ns9r.cn
左心房扩大是什么意思hcv9jop2ns4r.cn 经常放屁什么原因hcv8jop5ns0r.cn 什么钱最值钱hcv9jop1ns2r.cn 三伏天吃什么水果好hcv9jop5ns9r.cn 上不来气是什么原因hcv9jop5ns5r.cn
硬卧是什么样子的luyiluode.com 恐龙灭绝的原因是什么hcv9jop1ns0r.cn 双鱼座是什么星象hcv7jop6ns4r.cn 中性粒细胞百分比偏低是什么意思hcv9jop6ns6r.cn 修复子宫内膜吃什么药hcv8jop6ns1r.cn
百度