-
-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
linux crash when using remote=False #87
Comments
Are you able to post the problem that produces this error? It isn't a problem with Gekko but the underlying apm executable that produces the results.json file. There are still some outstanding issues with using the Chemicals library in Linux: #75 |
I found the issue + workaround:
This in turn, crashed the The assumed behavior is to simply ignore this constraint automatically (like it does sometimes on mac). Where is the issue tracker for the executable itself? I can move this issue over there as it is not related to Gekko (correct me if I'm wrong). Thanks, |
Thanks for posting a minimal example that reproduces the error. This is a good place to track the |
Here is a complete script from your example: from gekko import Gekko
m = Gekko(remote=True)
pieces = []
target_value = 0
m.Equation(m.sum(pieces) == target_value)
# a couple of other less relevant constraints and target function are set.
m.solve() The solver now successfully completes with the following message:
Please reopen the issue if there are still other things that need to be addressed. |
Thanks! looks good :) In general:
so one could catch the general case |
Each solver has many output messages. Below is the list for IPOPT. Gekko supports 5 solvers with more plans to integrate new solvers. The exception list would be very long, but possible. Let me know if you'd like to help with that development. There is a return code from the solver that is reported in
|
cool, so a generic thing I would imagine is that the string |
Each error code has a specific integer that is returned by the solver. We'd likely need to create a dictionary of error codes such as: {0:'Success',1:'Maximum Iterations',2:'Unbounded Solution',3:'Too Few DOF',...} This dictionary is different for each solver. |
It would take some work for each solver but then we'd have a more meaningful error message rather than just "Solution Not Found". |
that would be amazing |
Solver dependent error codes. Can be included in a future release. |
Description:
When using Gekko on my mac - works perfectly.
When using Gekko deployed inside a container on a Linux host (with same model, of course) - the spawned executable crashes and the python cant find the
results.json
.Output
Appreciate the help,
Tal
The text was updated successfully, but these errors were encountered: