From: Diego Virasoro Date: 2009-11-24T23:45:07+09:00 Subject: Re: ideas for a "parameter sweep" program? On 24 Nov, 12:36, Robert Klemme wrote: > 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 > Yep, something like this in its simplest form. But I'd like to make it a little more generic and powerful, for example allowing for some action before or after the main call, for the user to express the name of the experiment, for actions before or after the whole script, etc... The question wasn't how to do it, but what would be the best way to do it, if you see what I mean. I've got a few ideas and I am not sure what will work because some (like a DSL) I've never done before and others (like a Yaml file) may not be enough. Diego