From: horndude77@... Date: 2005-09-07T13:26:29+09:00 Subject: Re: Particle Swarm Optimizer in Ruby? Yeah, the hard part of PSO and genetic algorithms is coming up with a way to represent the problem with a vector of a predetermined length (ok well with genetic algorithms there are ways around the set vector length actually). In your case it looks pretty simple actually. I assume that the number of atoms is constant (If not then it would take a lot more thought). Just string out all of their positions together into one long vector. When you calculate the fitness you just have to know how to pull out the correct position of each individual atom from the particle's position vector. (If they're not unique then I guess this doesn't really matter.) I believe that this would work just fine. -----horndude77