Skip to content
Prev 12310 / 63461 Next

optim-Bug (PR#6720)

Hi Hans,

I've been able to reproduce your error (version see below). The 
non-deterministic behavior is indeed worrying.

This is not directly related to your bug report, but constrained 
optimization can be fickle, especially if the objective function is 
singular somewhere close to the boundaries. In your case, you may be 
able to circumvent some problems by transforming q to a new variable eq, 
eg.

eq = exp(q)/(1+exp(q)),

do the unbounded optimization, and backtransform. It may also be 
worthwhile to provide the gradient to optim.

Best regards
-------------------------------------
Wolfgang Huber
Division of Molecular Genome Analysis
German Cancer Research Center
Heidelberg, Germany
Phone: +49 6221 424709
Fax:   +49 6221 42524709
Http:  www.dkfz.de/abt0840/whuber
-------------------------------------


 > version
          _
platform i686-pc-linux-gnu
arch     i686
os       linux-gnu
system   i686, linux-gnu
status   alpha
major    1
minor    9.0
year     2004
month    03
day      08
language R
kestler@neuro.informatik.uni-ulm.de wrote: