-
Notifications
You must be signed in to change notification settings - Fork 62
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
SMPS reader #241
Comments
Is this still topical? I'm currently writing a pure-julia SMPS parser (actually, most of it is written I think, I'm mostly re-factoring the code and making it ready for public release). Let me know if it would be relevant here. |
Yes!!!
💯👍 🚀 Let me know what I can do to help! |
What I need for myself (and for which I have most of the infrastructure) is to parse two-stage stochastic LPs from I'm hoping the marginal cost of supporting more time periods and quadratic terms should be OK. Things that would be useful to discuss would be:
So far I've only worked with the |
Two stage LPs only sounds good by me! No need to do multistage. Data structure is template matrices and vectors, and list of element changes for second stage problems, along with their probabilities. Keep it simple as possible. |
@mtanneau what is the status of https://github.com/mtanneau/SMPSReader.jl? |
I merged a PR last week with a functioning reader. Here, "functioning" means "it parses the input files", i.e., all the code does for now is read There's no post-processing to, e.g., build the deterministic equivalent (I do have code for that in another repository, but it's still private for now). I'd say a useful discussion to have, now, is on whether you need additional functionalities for SDDP. |
I think it should be sufficient for me to just turn your data structures into an SDDP.jl model. I'll take a deeper look. |
Actually, I'm submitting that paper next week, so I can open the code now. The code I wrote is here. It doesn't handle:
|
Ooo interesting! This is almost exactly what I need. What's the paper on? CG for 2-SP? |
It's the revised paper on Tulip, which now contains some CG for 2-SP, yes. |
#332 implements a reader/writer for StochOptFormat. At this point, we should write a SMPS -> SOF converter. I have no interest in writing an SMPS writer. |
Fine by me. |
Closing in favor of SMPSReader. |
@gjharsha has C code for parsing SMPS here: https://github.com/USC3DLAB/SD/blob/master/src/smps.h
and has expressed interest in adding it to SDDP.jl.
There are two options
I'm not sure which requires less effort.
However, there are some licensing issues, because MPL 2.0 allows commercial use, but the SD license requires a commercial license from USC. So we might need to ask @gjharsha if he's willing to make the code (just
smps.h
andsmps.c
, not the full SD solver) available under a more permissive license.The text was updated successfully, but these errors were encountered: