Closed david-waterworth closed 4 years ago
I did a little initial troubleshooting. It appears that this is only a problem on the apm executable that is compiled for Linux with a gcc compiler (gekko v0.2.7, apm v0.9.2). The public server executable (also Linux, apm v0.9.1) is compiled with an Intel Fortran compiler and the script also runs without error with the local Windows executable (apm v0.9.2). The gcc compilers are generally very good so it may be catching an errors with memory allocation so I'll run it again soon to look at those issues. Thanks for highlighting this problem.
BTW The public server isn't timing out today - so that was unrelated.
I recompiled the local APM executable with Intel compilers and the problem is resolved. It will be in the next Gekko release (v0.2.8) or you can replace the apm
executable manually in the gekko bin directory.
https://github.com/BYU-PRISM/GEKKO/blob/master/gekko/bin/apm
When the new version of Gekko is available, you can get the upgraded package with:
pip install gekko --upgrade
I've just started investigating GEKKO. I'm working through examples on the webpage (http://apmonitor.com/wiki/index.php/Main/GekkoPythonOptimization) - I'm getting the following error for "4 - Interpolation with Cubic Spline"
I've altered to run locally - it was giving my an HTTP timeout for remote. Locally it looks like some sort of exception being thrown by the solver? I'm using Python 3.6 on Linux (Ubuntu 18.04)