Controlling Galapagos (or another optimizer) via script?

Hi there,

It would be great if there were a way to control an optimizer via C# or Python script. I know that this question has been here before. Still, it was quite a while ago. So I’d love to know if there is anyone out there who knows if there is a way to accomplish this with the scripting interface directly without needing to simulate human input or by utilizing reflecting.

I’m looking for in detail to interact with the solver via C# script (python could work as well). Meaning being able to see for how long the solver has been running for and starting and stopping it via API calls. I’m looking to accomplish this as I have multiple fitness tests that I need to loop through. Another way to do that would be with the multi-objective solver, but that doesn’t fit my needs as my fitness calculation is pretty comprehensive.

Thanks a lot!

Here are the two other posts I could find on this topic:

Here is a visual explanation of what I’m looking for:

Screenshot 2021-12-27 at 22.27.43

Do you mean you want to use Grasshopper data for optimization?
You can use RhinoCompute from Python or other scripts to run Grasshopper data and perform optimizations.
What about the way it is not done on Grasshopper?

Hi @hiron,

Yes, I’d like to use Gh data for optimization. I’ve looked into Rhino Compute and that might be my best option. However, I was wondering if it would be possible to control the Galapagos component directly through a scripting component inside of Grasshopper. That would automate a huge part of the work I’m doing as I could automatically restart the optimization process with a new model after a certain amount of time allowing it to optimize for many models without human input needed.