I am looking for a way to include Galapagos (or any other evolutionary solver) in a loop.
In my script I am trying to approximate nurbs curves by 3 consecutive arcs segments without discontinuity between the arcs (no kinks).
Hereby Galapagos decides where to split the nurbs curves and creates arcs from these segments in order to build a series of arcs that has least deviation from the original nurbs curve.
Unfortunately I have not just one or two curves but like 200. And each curve has very different genes (values for genomes) for the optimal solution. So it’s not possible to run Galapagos once over a list of all curves.
I don’t want to copy my script 200 times into my canvas an run it manually each time.
What I would like to do is to use a loop plugin. In each iteration the programm should pick a different curve and run an individual optimization process (Galapagos) for that curve. What I need is a way to start Galapagos automatically in that loop process (new iteration → pick new curve → expire solution → start Galapagos…sth like this) and stop the optimization process after a certain time (I know roughly how long it takes to find a good solution).
Anybody out there with an idea how to make this work without professional c# skills?