-
Notifications
You must be signed in to change notification settings - Fork 5
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
Power Systems Economics PUC - RIO 2019.2 #19
Comments
Which version of Julia should I use? |
When I use ATOM, I also have problem with MathOptFormat. Now, I'm not using ATOM and the problem is with package HTTP (to install SDDP.jl) @andrewrosemberg , what's the problem? |
@Veronicafeijao which IDE are you using instead of ATOM? |
I went in ATOM>Julia>Open REPL. There I put: (julia> ] add https://github.com/odow/SDDP.jl/#master ) |
Well, I took a chance on your suggestion, now have problem with both MathOptFormat and HTTP. I checked my first print and actually I already have had the same issue |
I have been using Julia 1.0 up to 1.05 to test the code, so those versions are preferred, but I believe it should work with later versions of Julia. |
@Veronicafeijao and @GabrielCalvo2812, sometimes there are issues installing SDDP. A solution provided in one of the package's issue (odow/SDDP.jl#182 (comment)) is to first add MathOptFormat.jl:
|
@GabrielCalvo2812, I believe once you have SDDP properly installed, HydroPowerModels will successfully build and then using it will not produce these errors. If it persists, let me know. |
But SDDP already was installed with success. And even so Hydropowermodels has problem with Cairo.
Get Outlook for Android<https://aka.ms/ghei36>
…________________________________
From: Andrew David Werner Rosemberg <notifications@github.com>
Sent: Sunday, October 13, 2019 12:38:20 PM
To: andrewrosemberg/HydroPowerModels.jl <HydroPowerModels.jl@noreply.github.com>
Cc: Veronicafeijao <vr.eng@outlook.com>; Mention <mention@noreply.github.com>
Subject: Re: [andrewrosemberg/HydroPowerModels.jl] Power Systems Economics PUC - RIO 2019.2 (#19)
Also, I have another issue, this time with HydroPowerModels in Julia itself. It seems the file called Cairo was not able to be downloaded as installing proccess was running. Now, when I call using HydroPowerModels I have the warnning below:
@GabrielCalvo2812<https://github.com/GabrielCalvo2812>, I believe once you have SDDP properly installed, HydroPowerModels will successfully build and then using it will not produce these errors. If it persists, let me know.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#19?email_source=notifications&email_token=ANOXOYW6VS6YNF5NKGMLRCDQOM6GZA5CNFSM4I74GF52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBCY45A#issuecomment-541429364>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ANOXOYXHQISEKBZEJHN2TJTQOM6GZANCNFSM4I74GF5Q>.
|
I'm trying to get SDDP.jl registered (JuliaRegistries/General#4247), so once it is, this should resolve the version issues. I believe that the issue is that JuliaPro includes a version of HTTP.jl that is missing a required bug-fix for MathOptFormat (we need 0.8.2+). So I would try ] add HTTP Then run ] add MathOptFormat
] add https://github.com/odow/SDDP.jl Once that's done, you can add HydroPowerModels. If you get the |
@andrewrosemberg, I was using Julia 1.2. I added the MathOptFormat, SDDP and HydroPowerModels and I had this problem below: I also failed in building "Fontconfig". After this, I tried Julia 1.0.5. And I had another problem: Am I forgetting anything? Thanks! |
@djiegow, could you send me the output of your project status : |
@odow I tried your suggestion, I used the command add HTTP and it updated some files: but then using ] st it did not show which version was on the files: Actually I looked for in the files explorer for the HTTP package in juliaPro1.2 and wasn't there ( don't mind about HydroPowerModels, it is corrupted anyway): |
@GabrielCalvo2812 I would start a new project from scratch to test adding the necessary packages |
@andrewrosemberg what you mean with a new project? I am just installing the packages |
Sure! |
Hi Guys, This is a small project with a basic script to test the package. I would advise using this as a start. The lines
will activate the environment and download all the necessary packages at their proper version (SDDP, HydroPowerModels, GLPK). Please let me know if this doesn't run as intended. |
I also just fixed the plotting error
(caused by an unexpected bug at the new version of Plots.jl). |
@ncihangir could you send the output from the activate+instantiate call? |
@ncihangir the output from the activate function shows you are not running this section on the folder of test_hydropowermodels. You have to run those commands in the same folder of the Project.toml and Manifest.tml. |
Hey, @andrewrosemberg ! I tried to run the test, but when I tried it I got this message: And then I tried adding the package: but it didn't work as well... Could you help me please? I think I might be doing something wrong. Do I have to do something specific to install HydroPowerModels? Thanks a lot! |
@thamires-bap it looks like you're not running the command from the right folder. To update Andrew's comment:
|
@andrewrosemberg I am getting this error: #19 (comment) How did you fix it ? |
Hey, @odow ! I did just as you said, but the result was this: |
Hey, @andrewrosemberg ! I tried to run the test script, but I am getting some errors. Could you help me, please? |
@thamires-bap and @ncihangir searching about your problem in google I found this: https://discourse.julialang.org/t/pkg-instantiate-fails/11709/7 Maybe try the fix at the end of this issue. It seems like Windows is having a protocol problem unrelated to the package. |
@mflb, your issue is from TimeZones.jl. It doesn't recognize 'America/Sao_Paulo' as a valid time zone. A quick fix as proposed here is to change the timezone of your system. |
@mflb , I had a similar problem, but with other different files. I resolved by opening the entire test_hydropowermodels folder with the atom in File> Open folder. Then File> open file> (teste.jl). When I ran, these errors no appeared. |
@JJhern Just update our package and it will be solved. I have downgraded Plots.jl to version "0.26.0", since the new version "0.27.0" had an issue. |
@mflb, Andrew helped you in the first problem(America/Sao Paulo), and I was talking about the next problems. |
it is still not working @andrewrosemberg |
@lopeesfelipe @hernanijj the examples are being executed with plots 0.26.0 in the docs. Please verify you are not using old precompilations of HydroPowerModels. |
You're right, but when I update the HydroPowerModels package (with the command ] add https://github.com/andrewrosemberg/HydroPowerModels.jl.git) it's used Plots.jl in 0.26.3 version. |
@lopeesfelipe I don't believe this is a problem, but, all the same, instantiate should be installing 0.26.0. |
@lopeesfelipe what might happen is that, if you start adding or updating packages after the "instantiate" command, Plots can update to v0.26.3 (where indeed the bug already exists). If you don't feel like instantiating again the original environment, do the following:
|
Hi Guys, Some have asked me about LMPs (Nodal price or PLDs in Portuguese). Following the PowerModels output, they are called 'lam_kcl_r' and are inside the bus solution dictionary (PS.: they are acctualy the negative of the LMPs). So, to access the different scenarious, do the following:
I devide by baseMVA to find the LMPS in ($/MW). |
In order to set different demands for each stage manually, one may use the 'set_active_demand!' function:
where demand should be an |
For those trying to plot the future cost function, there isn't a function for this yet (SDDP.jl's issue). I have implemented a simple function to help until a better solution appears:
PS.: This might be wrong, critical view advised. To use it:
|
Hi @andrewrosemberg . How can I do to get reservoir volume for each simulation (from 1 to 100) and scenario (1 to 12) ? |
Hi Guys, If you are trying to get the sampled inflows:
If you are trying to get the reservoir volume (@felipefmds):
|
FAQ: Dual and primal variables are changing if more SDDP iterations are executed even though it already has statistically converged. Is this expected? Answer: Yes, a more conservative notion of convergence would require both primal variable stalling and dual variable stalling. For case 3, this happens around the 1000th iteration. |
I'm so glad this came up. For those interested, see odow/SDDP.jl#178. I recommend plotting the solution every X iterations until you "see" it stabilize. |
This issue is for questions about studies using the Package
The text was updated successfully, but these errors were encountered: