Re: [R] constrained input for optimization algorithm

2009-07-31 Thread Ravi Varadhan
roject.org [mailto:r-help-boun...@r-project.org] On Behalf Of Prof. John C Nash Sent: Friday, July 31, 2009 7:04 AM To: r-help@r-project.org Subject: Re: [R] constrained input for optimization algorithm As someone very involved with optim and its evolution I can say it is not at all suited to th

Re: [R] constrained input for optimization algorithm

2009-07-31 Thread Prof. John C Nash
As someone very involved with optim and its evolution I can say it is not at all suited to this sort of combinatoric optimization. I don't know if there are packages in R to help out -- it would be nice. If (this may be a big IF) your set of possible combinations is not too large, combn() gene

[R] constrained input for optimization algorithm

2009-07-31 Thread Zhi Xie
It seems that optimization algorithm, optim, tries to find optimized parameters within defined lower and upper bounds. In my problem, all the parameters are integers but mutual exclusive. My question is that if there is any means that I can let "optim" only tries mutual exclusive integers. To be sp

[R] constrained input for optimization algorithm

2009-07-30 Thread Zhi Xie
Hi all, It seems that optimization algorithm, optim, tries to find optimized parameters within defined lower and upper bounds. In my problem, all the parameters are integers. My question is that if there is any means that I can let "optim" only tries mutual exclusive integers. To be specific, I am