dcolli23 / PyOpt

Python optimization framework
GNU General Public License v3.0
1 stars 0 forks source link

Figure hangs when plotting using default options #25

Open dcolli23 opened 4 years ago

dcolli23 commented 4 years ago

Description

The figure used for SimplexPlotterMixin hangs when using the default options. However, I don't believe this issue is with the SimplexPlotterMixin figure at all. I believe this is to do with how SimulationRunner calls the command for optimization.

Proposal

SimulationRunner.run_simulation currently uses subprocess.call to run the model that we're optimizing. By changing this to subprocess.Popen and repeatedly updating the figure/polling to see if the job ended we can mitigate this hang.