How to automatically simulate a series of specific variants?

Hello everyone,
I would like to simulate several variants of a model automatically. I have created a Honeybee model and can change various settings with sliders, e.g.

  • orientation of the building to the north (north orientation can rotate from 0 to 359°)
  • window-to-wall ratio (hypothetically 1% to 99%)
    etc.
    Now I would like each of these sliders to be able to assume only certain, discrete values, perhaps only three variants per slider, e.g.
  • Orientation only 90°, 180°, 270°
  • window-to-wall ratio only 25%, 50%, 75%
    etc.
    In this way, I would like to be able to simulate either all possible combinations or self-selected combinations.
    (I don’t want to wait for each individual simulation and then adjust the sliders manually. Instead Grasshopper should do this automatically.)
    I thought this would be possible with Colibri, but that doesn’t seem to be the case.
    Does anyone have a solution for this? Do I need a Python code for this or is there another way?

Thanks a lot in advance!
Best, Maria

1 Like

Thanks for the quick reply! That has already helped me. However, unfortunately I don’t just have values with continuous intervals but I will find a solution for that.
I guess using expressions, I could let run Colibri through all combinations. But there is still the question how to run only specific combinations one after the other.

Maybe you mean something like this?
series.gh (10.5 KB)

1 Like

Hello Leopoldomonzani,
great, that helped me again! Applying your example, I can after all define specific combinations from a list of all combinations.
But the main difficulty remain for me:
How can I use Colibri (or something different) to iterate through the specified combinations only (see panel D-optimal design e.g. case 1,2,3, and 6)?

(By the way, I have set all the sliders so that they can only be set to the necessary values only. But I have no idea how to extract the possible values from the slider. Thats why I used the panels instead for now.)


Example.gh (14.8 KB)