From: Robert Klemme Date: 2009-11-24T21:36:50+09:00 Subject: Re: ideas for a "parameter sweep" program? 2009/11/23 Diego Virasoro : > I often need to run my computational experiments with a combination of > parameter values, and I was thinking of automatising it with Ruby. Any > idea on what would be the best way to go about it? Not sure what you actually mean. Are you looking for something like p1 = [1,2,10,3] p2 = [1312,42345,235435,65] p3 = [123,23,476,43] p1.each do |param1| p2.each do |param2| p3.each do |param3| system "experiment", param1, param2, param3 end end or rather params = [ [1,11,2], [23,4,21], [5,1,4], ] params.each do |pa| system "experiment", *pa end ? Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/