Geometric optimization for curvatures in fabrication

Hello there,

Anyone can suggest some good way to optimize (complex) curvatures though GH / Python ?

THANKS