-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Consider supporting reading/writing AMPL files from MathematicalProgram #7635
Comments
This is a great idea, I will work on it. |
I just wanted to bump this again; @rahulyesantharao is trying out mixed-integer NLP for his footstep planning work, and having |
Writing a nonlinear constraints to I think it would be easier if we add a wrapper for Couenne. @jwnimmer-tri , Couenne uses EPL license. Is it compatible with Drake's license? @rdeits . Do you think Couenne would be a good solver for your MINLP? Are you also trying out other solvers? |
Ah, I see. Yeah, as far as I know Couenne should be a good choice for the problem. I'm not sure how helpful special-casing Couenne support would be, though. It would obviously be great to have fully symbolic nonlinear constraints in MathematicalProgram, but if that's not possible then the next easiest thing is probably to use JuMP from python to call Couenne. Hongkai, when you mean a wrapper for Couenne, do you mean a wrapper that doesn't go through MathematicalProgram? |
Sorry, I mean a derived class of |
I see. But would that support nonlinear expressions, or just scalar/autodiff? |
Fwiw, I’m definitely in favor of having couenne available as a supported solver. (If it makes sense) |
@rdeits @RussTedrake I agree it makes sense to add Couenne as a supported solver, if the license works. |
@hongkai-dai EPL should be fine for solver back-ends. (We already use CoinUtils and Clp under EPL terms as part of dReal.) You can grep for |
We could add an |
BTW, we currently support writing to SDPA format, which is commonly used for SDP. |
Curious if there are any further developments on this issue, either implementing an interface for couenne, or exporting mathematical programs in standard file formats? |
@cohnt unfortunately there has not been any progress on this issue yet. What data format do you want? We do support outputing MathematicalProgram to SDPA format, would that work for you? |
I'm looking to export nonlinear programs, in order to feed them into global optimization solvers (including couenne, for example). I didn't think SDPA format supported such objectives and constraints. |
From discussion today with @RussTedrake it would be nice to be able to share MathematicalProgram optimizations with tools outside of Drake. Reading models from (and writing them to) AMPL files would be one way of accomplishing that. There's some related work in https://github.com/JuliaOpt/AmplNLWriter.jl which uses AMPL's
.nl
file format for this purpose.The text was updated successfully, but these errors were encountered: