How to include Galapagos in a loop

Hello All,

I am trying to do something similar, but I would like to use python instead of C#. How do I go about looping a Galapagos instance? Trying to do a 3D tetris for brick work.

I have a simple galapagos instance which optimizes the position of an irregular piece of brick onto a recycled brick wall. I now need to loop it sequentially for each brick. I would like to do it sequentially in stead of optimizing all at the same time. I think all at the same time would be computationally prohibitive on a large wall.

Thanks for your time

3d tetris.gh (21.5 KB)

3D Nesting 007.3dm (16.6 MB)