BYU-PRISM / GEKKO

GEKKO Python for Machine Learning and Dynamic Optimization
https://machinelearning.byu.edu
Other
573 stars 102 forks source link

Problem with Linear Programming example #129

Closed larsRikard closed 2 years ago

larsRikard commented 2 years ago

I'm running gekko 1.0.1 with python 3.9.7 I tried running the example code from the example files: https://github.com/BYU-PRISM/GEKKO/blob/master/examples/linear_program.py

But it doesn't solve or crash after 5 minutes. Is this a known issue? Also I couldn't find where to choose the solver, what linear solvers does gekko use?

larsRikard commented 2 years ago

nvm, it works with: m = GEKKO(remote = False) Though I don't know what it does or why it is needed

APMonitor commented 2 years ago

remote=False solves locally without an internet connection. If there is a problem with the public server or the connection to the server then there is an error message that the server is not available.

APMonitor commented 2 years ago

Here is a description of the solver options: https://apmonitor.com/wiki/index.php/Main/OptionApmSolver