Re: [Rd] Strange R object

2010-07-08 Thread Gabor Grothendieck
The attachment did not work so I am trying it again. This time I am naming the file problem.RData.txt (its an ascii save file). RDA2 A 2 133889 131840 1026 1 9 3 zz2 526 1 1 1026 1 9 5 class 16 2 9 6 zooreg 9 3 zoo 254 254 __ R-devel@r-project.org mailing

[Rd] Strange R object

2010-07-08 Thread Gabor Grothendieck
I have *** attached *** an RData file containing an R object that is acting strangely. Try this in a fresh workspace. Do not load zoo or any other package. We load the object, zz2, from the attached RData file. It is just the number 1 with the class c("zooreg", "zoo"). Now create an S3 print rou

Re: [Rd] constrained optimization

2010-07-08 Thread Jelmer Ypma
As far as I know, the reference describing the algorithm is: A. Wächter and L. T. Biegler. On the implementation of a primal-dual interior point filter line search algorithm for large-scale nonlinear programming. Mathematical Programming, 106(1):25-57, 2006. There are more references here: http://

Re: [Rd] constrained optimization

2010-07-08 Thread Christophe Dutang
Dear Paul, No I haven't tried to use L-BFGS-B algorithm with bounds. Let me check if a variable change can be used on my problem. Thanks Christophe Le 7 juil. 2010 à 19:49, Paul Bailey a écrit : > > Have you considered using the optim function with L-BFGS-B for bounded > optimization. Obviou

Re: [Rd] pass-by-reference

2010-07-08 Thread Gabor Grothendieck
On Thu, Jul 8, 2010 at 12:52 AM, Paul Bailey wrote: > > I'm working with a large object that I want to modify slightly in a function. > Pass-by-reference would make a lot of sense, but I don't know how to do it. > > I've searched this archive and thought that I can do something like > > f <- funct

Re: [Rd] pass-by-reference

2010-07-08 Thread Henrik Bengtsson
...and for tracing memory allocations/duplications, see tracemem(). /Henrik On Thu, Jul 8, 2010 at 9:14 AM, Henrik Bengtsson wrote: > See packages R.oo and proto. > > If you wish to do it yourself, you want to utilize environments for this. > > /Henrik > > On Thu, Jul 8, 2010 at 6:52 AM, Paul Ba

Re: [Rd] pass-by-reference

2010-07-08 Thread Henrik Bengtsson
See packages R.oo and proto. If you wish to do it yourself, you want to utilize environments for this. /Henrik On Thu, Jul 8, 2010 at 6:52 AM, Paul Bailey wrote: > > I'm working with a large object that I want to modify slightly in a function. > Pass-by-reference would make a lot of sense, but