Closed PerplexedFox closed 10 months ago
The first error is that FileNotFoundError: [Errno 2] No such file or directory
for options.json
. With successive solves, Gekko is trying to locate files in the run directory that define options. I recommend that you define the directory before the first solve and stay with that directory. If you need to remove the run directory, use m.cleanup()
to delete the temporary directory.
Also, Gekko isn't designed to solve and then modify the variables to the model. In this case, use the m.cleanup()
and redefine the model again if new variables need to be added.
What should be the behavior if None
is encountered in the bspline data? Please create a new Feature Request if you'd like to see this added to a future release. Also, please describe the intended behavior with None
data.
I've started a new model by implementing some of the fluid data from CoolProp. All worked fine as long as I was in the same RunDirectory as my previous (similar) model was. However, when I clear the temp files and/or switch directories, the code, which previously worked, starts throwing an error
Could the None values in the data have been the problem? However, as soon as I change to the directory of another model, it works.
The spline converges despite having None values where the physical ones are unavailable and all seem to work nicely
And yet, when staying in the same "successful" directory and adding another variable the solver won't calculate it.
On this note also a request: It would be surely great, if bspline could handle the None values