Hi everyone,

I have a mesh on which I draw geodesic curves with K2. I would like these curves to be separated by a certain distance one from another. The distance between curves is evaluated at curve midpoint.

As the distance of one curve from another only depends on the position of the previous one, the best way to optimise this problem would be to look for a first curve, then for the second one, and so on. I then end up with a stack of lots of galapagos solvers that I have to run manually if want to change any input.

Optimisation stacked.gh (78.0 KB)

Of course, I can also feed all curves to Galapagos directly, but as the solver looks for all solutions at once, the problem has much more variables than needed, and Galapagos tends to not be able to find a really precise solution.

Optimisation multiple.gh (60.6 KB)

This brings a problem which I find interesting to solve : is there a way, I guess through coding, to stack otpimisation solvers ? There would be the question of when to decide the solvers have reach a solution, but a tolerance input might work well for this case.

I’ve found some threads about Galapagos inside loops but they don’t really end up with solutions and are quite old, any update if this is possible ?