由买买提看人间百态

topics

全部话题 - 话题: fminunc
(共0页)
r*******y
发帖数: 1081
1
来自主题: Mathematics版 - matlab里的fminunc函数
执行完毕以后总是出来这几句:
Optimization completed because the size of the gradient at the initial point
is less than the default value of the function tolerance.

有没有办法不让这几句出现?谢谢。难道还必须去修改fminunc.m吗?
谢谢
m*********s
发帖数: 368
2
来自主题: Mathematics版 - matlab里的fminunc函数
help 一下这个函数
一般的话, 这些话都是一个返回值
表示这个函数的执行结果
用这样的格式调用
[a,b] = fminunc(...)
b就把这些话个吃掉而不显示出来了

point
l*****a
发帖数: 119
3
来自主题: Mathematics版 - matlab里的fminunc函数
fminunc是判断FOC的 初始点的导数太接近0了 所以算法觉得初始点就是最优解 停
止了
a***m
发帖数: 74
4
来自主题: Quant版 - matlab fminunc for GARCH model
Greetings!
I used fminunc to estimate parameters for a GARCH model,where innovation
process is a mixture distribution. The estimate give back complex parameters
and maximum feval have reached. But I retrieved real part and transformed
the parameter before calculating each likelihood function in the iteration.
I don't understand why matlab kept give me complex estimations. This occurs
to fminsearch as well.
Any suggestions are welcome.Many thanks!
t******i
发帖数: 35
5
来自主题: Programming版 - 【包子求】BFGS-Matlab package
那样的话 matlab fminunc就行吧?http://www.mathworks.com/help/optim/ug/fminunc.html?refresh=true
s*********l
发帖数: 103
6
来自主题: JobHunting版 - 不会newton多项式
:发信人: dreamstring (ric_li), 信区: JobHunting
:标 题: Re: 不会newton多项式
:发信站: BBS 未名空间站 (Tue Jan 22 10:27:34 2013, 美东)
:【 在 lingandcs (lingandcs) 的大作中提到: 】
:: 牛顿迭代在machine learning里面貌似很有用
:: 好多模型,比如最大熵,CRF,SVM,等的training方法都是基于这个的,叫L-BFGS。
BFGS (L-BFGS) 不是严格意义上的牛顿法,而属于拟牛顿法(Quasi-Newton Method).
http://en.wikipedia.org/wiki/BFGS_method
http://en.wikipedia.org/wiki/L-BFGS
http://en.wikipedia.org/wiki/Quasi-Newton_method
:其实能不用尽量都不用,算逆矩阵太费事~~
Quasi-Newton 方法不用算二阶导 (Hessian Matrix) 以及逆矩阵 (inverse of
Hessia... 阅读全帖
a***m
发帖数: 74
7
来自主题: Programming版 - matlab fmincon...feval complex number?
Greetings!
My function evaluation sometimes generate complex numbers when I use fmincon
, fminsearch, and fminunc. The optimizations stop or won't converge. Why
this could happen? Can I dump the imaginary part to continue the routine?
Any experience to share?
Many Thanks.
p***c
发帖数: 2403
8
来自主题: Computation版 - 问个matlab里调用自定义函数的问题
自定义了一个函数如 function [out1,out2]=xxx(in1,in2)
我想求out2的极值, 如果只有一个输出的时候,可以用fminunc
现在有两个的时候,怎么用呢?
谢谢
M********g
发帖数: 183
9
来自主题: Computation版 - 问个matlab里调用自定义函数的问题
没用过fminunc,不过你再定义一个函数调用xxx只返回out2不行吗?
这个难道还要找什么elegant的方法?
s****h
发帖数: 3979
10
来自主题: EE版 - a question about VAR
Suppose I have a VAR model:
X_t = A * X_(t-1) + B * Y_t,
And I need to estimate the coefficient matrix A & B?
What's the best way to do if A is 3X3 matrix, and B is a 3X5 matrix?
I have only used gradient based method for simpler problems before. For as
many as 3X8 = 24 parameters, should the gradient method works well if I just
use a matlab unction fminunc?
Or, should I estimate A & B separately?
Thanks for your input.
N***m
发帖数: 4460
11
来自主题: Mathematics版 - matlab里的fminunc函数
warning off all

point
r*******y
发帖数: 1081
12
来自主题: Mathematics版 - matlab里的fminunc函数
那些不是 warning.
warning off all了也没用
l********a
发帖数: 1154
13
来自主题: Mathematics版 - matlab里的fminunc函数
Optimization completed because the size of the gradient at the initial point
is less than the default value of the function tolerance.
优化结束,因为初始点的梯度尺寸小于函数容限的默认值
结束啦
s****h
发帖数: 3979
14
来自主题: Quant版 - a question about VAR (转载)
【 以下文字转载自 Stock 讨论区 】
发信人: squash (鼻涕泡泡不是传说), 信区: Stock
标 题: a question about VAR
发信站: BBS 未名空间站 (Mon Nov 19 17:05:47 2007)
Suppose I have a VAR model:
X_t = A * X_(t-1) + B * Y_t,
And I need to estimate the coefficient matrix A & B?
What's the best way to do if A is 3X3 matrix, and B is a 3X5 matrix?
I have only used gradient based method for simpler problems before. For as
many as 3X8 = 24 parameters, should the gradient method works well if I just
use a matlab unction fminunc?
Or, should I e
l*****i
发帖数: 3929
15
来自主题: Quant版 - matlab fminunc for GARCH model
Check your formulation first. Doesn't GARCH have constraints (sum of 3 param
eters = 1 or something like that)? -- I assume you use GARCH(1,1).

parameters
.
occurs
a***m
发帖数: 74
16
来自主题: Quant版 - matlab fminunc for GARCH model
I copied likelihood function from Bollerslev paper. It used gamma and log
functions. I scaled parameters so that they were bounded. Grad and hessian
was provided by the function. So I wonder about the origin of complex
estimation.Any hints? Many thanks!
f********y
发帖数: 278
17
来自主题: Statistics版 - Matlab求教 (转载)
谢谢 DaShagen,这一步我已经解决了。
假定b=[1 x;3 y;x y], 下一步的问题是求min max{(1-x)^2,(3-y)^2,(x-y)^2}.
如果我直接设置方程,f=max{(1-x)^2,(3-y)^2,(x-y)^2}
然后fminunc(f,x,y,z)这样好象不行,有没有另外的方法?
(共0页)