I have a c++ executable that performs a simulation and would like to use this simulation as my function for an optimization routine. My idea is to implement the optimization routine in python and glue python and the c++ executable together using a bash script.
Is this possible? Are there other approaches I should consider?
I have looked at creating a python extension module but the c++ project is large and I believe it will take far too long to implement this.