I've been working with perceptrons lately which have a lot of changing parameters. So I came up with this simple piece of code that makes entering parameters much faster.
params = ParamStr("Tab Sep Params","1 2 3 4 5 6"); // Enter your prams as a tab separated list.
x1 = Optimize("X1",StrToNum(StrExtract(params,0,separator = ' ')),-10,10,1);
x2 = Optimize("X2",StrToNum(StrExtract(params,1,separator = ' ')),-10,10,1);
x3 = optimize("X3",StrToNum(StrExtract(params,2,separator = ' ')),-10,10,1);
x4 = optimize("X4",StrToNum(StrExtract(params,3,separator = ' ')),-10,10,1);
x5 = optimize("X5",StrToNum(StrExtract(params,4,separator = ' ')),-10,10,1);
x6 = optimize("X6",StrToNum(StrExtract(params,5,separator = ' ')),-10,10,1);
This allows you to have a single parameter that controls as many sub parameters as you'd like.
This is helpful because the way we currently enter parameters requires a physical mouse click in order to get into the dialogue box, which takes a lot of time when you have a lot of parameter combinations to manually enter.
Now, you can use this with a comma, or a space, or any other separating character between the values - but a TAB is used here because if you copy all of the contents of an optimize report, paste that into a notepad file (or blank page in the AFL Editor), you can now simply copy the list of values you want and paste them into this single parameter!
Hopefully this helps someone out there.