GEKKO error when running remote = False on Windows 10 Pro
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Mysterious Puzzle
--
Chapters
00:00 Gekko Error When Running Remote = False On Windows 10 Pro
02:00 Accepted Answer Score 0
02:59 Thank you
--
Full question
https://stackoverflow.com/questions/6054...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #gekko
#avk47
ACCEPTED ANSWER
Score 0
Even though you stopped the Python script with Ctrl-C, your prior job sub-process may still be running in the background and consuming resources when running with remote=False. If you were able to run it previously, I recommend that you check if apm is running in the background with top at the command terminal. You can locate the PID of apm with:
pidof apm
You can either kill (stop) the process with the PID identifier or else kill all of the apm processes with:
killall -9 apm
This should release the resources (RAM, CPU) necessary to run your next job. The apm executable allocates memory dynamically at run-time based on how much the solver and model will need. If you are consistently running out of memory then I recommend the APOPT solver that uses fewer resources than IPOPT (default solver). You can switch to APOPT with m.options.SOLVER=1. I don't think you did anything to your installation. If disk space is an issue, you can clear out the temp folder m.path where the Gekko problem is staged.