Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Nelder Mead optimization in Mata
From
"Mak, Timothy" <[email protected]>
To
"[email protected]" <[email protected]>
Subject
st: Nelder Mead optimization in Mata
Date
Thu, 4 Nov 2010 10:31:52 +0000
Hi,
Can I just clarify if it is always not possible to put in a negative value for delta when we use Nelder-Mead in optimize()?
And if so, why is there such a restriction?
I'm using Stata 10.1.
See below for a demonstration:
mata
real scalar toy (todo, p, lnf, g, H) {
y = -p[1]^2 - p[2]^2
return(y)
}
S = optimize_init()
optimize_init_evaluator(S, &toy())
optimize_init_technique(S, "nm")
optimize_init_params(S, (1,2))
optimize_init_nmsimplexdeltas(S, (1,-1))
optimize(S)
end
Error message:
opt__validate(): 3498 simplex delta value too small (must be greater than 10*ptol)
optimize(): - function returned error
<istmt>: - function returned error
Thanks, Tim
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/