Re: [R] How to fix error in the package 'rgenoud'

2010-10-17 Thread Wonsang You
I could solve this problem by setting the boundary options as follows. par1Bnd-c(0.001,0.999) par2Bnd-c(-10,10) DomainMat-matrix(c(par1Bnd,par2Bnd), nrow = 2, ncol=2, byrow=TRUE) result-genoud(Qmin, nvars=2, starting.values=c(0.5,0), Domains=DomainMat, control=list(ndeps=c(1e-7,1e-2)),

[R] How to fix error in the package 'rgenoud'

2010-10-13 Thread Wonsang You
Dear R user fellows, I would like to ask you about the package 'rgenoud' which is a genetic optimization tool. I ran the function 'genoud' with two variables to be minimized by the following command. result-genoud(fn,nvars=2,starting.values=c(0.5,0), pop.size=1000, max.generations=10,

Re: [R] How to fix error in the package 'rgenoud'

2010-10-13 Thread Wonsang You
I have to make correction in my error message which I introduced in my original message. Sorry for my mistake. Finally, I had the following error message after running the function ' genoud'. Error in optim(foo.vals, fn = fn1, gr = gr1, method = optim.method, control = control) : non-finite

Re: [R] How to fix error in the package 'rgenoud'

2010-10-13 Thread Wonsang You
I have to make correction in my error message which I introduced in my original message. Sorry for my mistake. Finally, I had the following error message after running the function 'genoud'. Error in optim(foo.vals, fn = fn1, gr = gr1, method = optim.method, control = control) : non-finite