[R] optim(,"SANN"...)

2009-11-22 Thread lloyd barcza
Hi, Can anyone please tell me is there a way to view the annealing schedule when using SANN is optim. I have tried setting report=1 in the control list, but cannot seem to get it to work? Ant help or suggestions would be appreciated! Thanks __ R-hel

Re: [R] optim(.. ,"SANN",..)

2009-11-21 Thread Nikhil Kaza
I think the issue is in the function fr, ?apply apply returns a vector or array or list of values So if the inner apply returns a list (this happens when different number of elements in y are positive in different rows) then outer apply cannot coerce it into the correct format to apply the pr

[R] optim(.. ,"SANN",..)

2009-11-19 Thread lloyd barcza
I have a problem using optim, so I am hoping someone can help me out with it: Suppose I have the list: list(D,R,P) [[1]] V1 V2 V3 V4 1 0 1 0 1 2 1 1 0 0 3 1 0 1 0 4 0 0 1 1 5 0 1 0 1 6 1 1 0 0 7 1 0 1 0 8 0 0 1 1 9 1 0 1 0 10 0 0 1 1 [[2]] [1]