Simulation loop problem - array

Joined
Nov 20, 2010
Messages
1
Reaction score
0
I have a set of variables, each with a # of options that can be tested. As an example

Var_name #options Option1 Option2 Option3 Option4
SL 2 90.0 95.0
CL 4 6 8 10 12
RM 3 TS SS POI


Therefore I need to test the 2 SL options with every CL option (of which there are 4) with every RM option (of which there are 3). In this case, it represents 2x4x3 tests = 24.

These sets of options per variable is passed to another algorithm that calculates an output.

Depending on user input, the nr / names of variables, the nr of options per variable, and the option values themselves can change.

I'd like to avoid recursive solutions, as the exponential increase in iterations (depending on user specifications) will potentially cause memory issues.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top