-
Notifications
You must be signed in to change notification settings - Fork 526
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
NL Writer Errors when presolve removes all variables #3131
Comments
I left that in the new writer because it existed in the original NL writer. I agree that with the new presolve it is more likely that legitimate models will be sent to a solver and solved in the presolve. How do you think we should communicate this between the writer and the solver? My recollection when I was working on the NL writer was that ASL solvers would die a pretty terrible death if they were handed an NL file with no variables, so we would need to move this check from the NL writer to the solver interface(s). I suppose the information is in the NLInfo object, but we would need to make sure that all the NL solver interfaces handled it correctly. |
Excellent question. I actively avoided attempting to figure that out in the original issue, haha. Maybe the NL writer could have an option to skip the error and return the NLWriterInfo anyway. Then the caller can see if |
I think that sounds quite reasonable. What do you think about preserving the old behavior in the legacy "call" interface (so the old solvers don't have to be updated). That is |
Sounds good to me! |
Summary
It would be extremely convenient if we could just return the solution somehow.
The text was updated successfully, but these errors were encountered: