Closed costezki closed 5 years ago
There was an error and the json results file was not produced. You can see your error if you print the output of the solve command such as:
output = m.solve() print(output)
There is an APMonitor / GEKKO discussion group available at http://apmonitor.com/wiki/index.php/Main/UsersGroup if you'd like to send support requests or initiate other discussions. This location is also fine.
The latest release has much better error handling. Please update with:
pip install gekko --upgrade
to get the latest release. This should avoid any issues with trying to read a json file that is not present (results in 404: not found) because of an error with the model or data.
I am new to GEKKO, it seems an amazing tool but there are some things that are nit entirely clear to me so some help would be greatly appreciated.
I run the code below and get an exception about badly encoded rtesults.json. It is true, the json file contains HTML codeof some 404 server not found page. It is not clear to me: (a) why this simulator needs to use a json file, why it strangely, (b) when something seems incorrect (though starting from time 1 is not really incorrect) the json file is ill written and (c) what is a good method (if any available) to test if the provided ODE is well or ill defined.
When I try to run the ODE solver for a simple equation, and the time is not set from zero then i get this exception. The content of the results.json file is actually HTML content provided after the exception.
The contents of results.json: