-
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
Baron does not work with the Pyro solver manager #7
Comments
This one took me some time to figure out. Here is the issue: The baron solver, as far as I am aware, does not accept command line options. When we give options like a solution file name, these options must appear inside of the baron input file. In the pyro_mip_server setting, the problem file is written by the client and transmitted to the pyro solver server, so the solution file name is assigned ahead of time and the solver server, not knowing this, provides a new random temporary filename and assumes it will somehow be passed down to the solver (but it doesn’t, and baron writes the solution to the original path assigned by the client). I can think of a few ways to fix this:
Thoughts? |
I agree that (1) is the most elegant (in that it would bring Baron in line with most other solvers). That said, if we have to implement one now, (3) seems reasonable to me. Given other weirdness we have with the current design of solver writers / symbol maps / etc., is there a way we could re-architect Pyomo's solver interfaces that would be better compatible with both solvers like Baron and things like distributed processing? That is a bigger issue than just this ticket, but something I'd like to start thinking about. |
I asked Nick about it. I can verify that BARON doesn't take command line options, and it doesn't seem to be on the planning horizon:
|
Do we still want to keep this issue around? I don't have any need to use Baron through Pyro at this point. |
I think it's probably good to keep around until someone starts on the solver base class re-implementation. |
Update Pyomo branch to remove enums
Reported on the pyomo forum by @qtothec:
https://groups.google.com/forum/#!topic/pyomo-forum/EmVkqIjJYXg
The text was updated successfully, but these errors were encountered: