Simplex algorithm

To the best of my knowledge there is not straightforward method for implementing e.g. scipy in GHPython (i.e. IronPython). The current path of least resistance might be to implement Rhino Inside Python to communicate with CPython. There’s also at least two CPython scripting components for Grasshopper, but those (from what I’ve seen) appear like quite complicated and brittle solutions.

A simpler solution might be to implement a .NET library instead (assuming it has what you require), such as https://numerics.mathdotnet.com/. Here’s a tutorial Giulio wrote on spinning that up in GHPython:

2 Likes