Re: [R] integer constraint

2011-02-23 Thread Petr Savicky
On Wed, Feb 23, 2011 at 08:02:16PM +0100, Chun Wang wrote: > Dear R users, > > I have a question about optimization. Is that possible set a constraint that > only integer values are allowed for the optim in the R base and some other > optimizers such as psoptim in the package pso? For instance, my

[R] integer constraint

2011-02-23 Thread Chun Wang
Dear R users, I have a question about optimization. Is that possible set a constraint that only integer values are allowed for the optim in the R base and some other optimizers such as psoptim in the package pso? For instance, my lower bound is 0 and upper bound is 100 and I only want integer from