New-Zealand-Zero / PowerMaker

Apache License 2.0
2 stars 4 forks source link

Set up Simulation environment #22

Open KillickNZ opened 3 months ago

KillickNZ commented 3 months ago

We need to set up a simulation environment to handle when we test out new strategies.

@MalawiCoffee are you able to give a description of what this looks like from a technical point of view?

What things need to be in place? What data do we need? How would you suggest it be done?

timothyjosull1 commented 3 months ago

@KillickNZ I've coincidentally started setting this up this morning, we should have a discussion between us three, not far off from a working prototype.

KillickNZ commented 3 months ago

Awesome! What a machine. Yea keen for that - I can likely find some time on Sunday arvo?

MalawiCoffee commented 3 months ago

Hey

I was thinking just simulating what your daily generation and storage looks like. Then matching that to what the spot market was doing that day. That way you can adjust those variables to see how it would work for different locations. You will definitely need to know how much you can inject, fuse size or transformer size. Not entirely sure the best approach. Could keep it simple just basic numbers or we could go very in-depth modelling the lines transformer etc.

Cheers,

Get Outlook for iOShttps://aka.ms/o0ukef


From: Sebastian Chapman @.> Sent: Thursday, June 6, 2024 10:13:15 AM To: New-Zealand-Zero/PowerMaker @.> Cc: Hugo @.>; Mention @.> Subject: [New-Zealand-Zero/PowerMaker] Set up Simulation environment (Issue #22)

We need to set up a simulation environment to handle when we test out new strategies.

@MalawiCoffeehttps://github.com/MalawiCoffee are you able to give a description of what this looks like from a technical point of view?

What things need to be in place? What data do we need? How would you suggest it be done?

— Reply to this email directly, view it on GitHubhttps://github.com/New-Zealand-Zero/PowerMaker/issues/22, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AI2RIR2FTQKJUH6G5DVXIYDZF6EPXAVCNFSM6AAAAABI3R4LWKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGMZTMOJRGMZDEMA. You are receiving this because you were mentioned.Message ID: @.***>

timothyjosull1 commented 3 months ago

Agreed Hugo, we can add dummy information for other variables when we have them, e.g., historic solar production (this one's good for estimating https://pvwatts.nrel.gov/), historic uncontrollable load profiles, etc. Comparison of just a battery and spot price is a really good place to start though, other variables tend to be much more predictable.

MalawiCoffee commented 3 months ago

I just downloaded hourly from that site. Seems pretty good for simulation data. It would be nice to get it down to a 5 minute level. I’m just playing around with making a dataset showing spot market and solar generation in one. I need to add some battery storage and export capacities. If you have any other sources you know of throw them, my way. I will have a tinker.

Cheers

Get Outlook for iOShttps://aka.ms/o0ukef


From: timothyjosull1 @.> Sent: Friday, June 7, 2024 9:19:55 AM To: New-Zealand-Zero/PowerMaker @.> Cc: Hugo @.>; Mention @.> Subject: Re: [New-Zealand-Zero/PowerMaker] Set up Simulation environment (Issue #22)

Agreed Hugo, we can add dummy information for other variables when we have them, e.g., historic solar production (this one's good for estimating https://pvwatts.nrel.gov/), historic uncontrollable load profiles, etc. Comparison of just a battery and spot price is a really good place to start though, other variables tend to be much more predictable.

— Reply to this email directly, view it on GitHubhttps://github.com/New-Zealand-Zero/PowerMaker/issues/22#issuecomment-2153426005, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AI2RIR3O3JK6KYDUW7KVGVDZGDG7XAVCNFSM6AAAAABI3R4LWKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJTGQZDMMBQGU. You are receiving this because you were mentioned.Message ID: @.***>

timothyjosull1 commented 3 months ago

Sounds good. Historically I've just interpolated it down to 5 minutes, which is not ideal but I havent managed to find an alternative source.

Regarding a data set, I've made a script "get_historical_spot_prices.py" which pulls the node's RTD prices from EMI over a selected data range and saves it to the PM database that the other scripts make. It's in the "add-simulation-environment" branch. You could add something to it which reads data from the PVWatts API and you'll have your spot and solar together.

KillickNZ commented 3 months ago

Hey guys just catching up on all of this now! Looks like you lads have been busy! Is there anything you need from my end?

timothyjosull1 commented 3 months ago

Hey @KillickNZ, sometimes the units weren't clear in the functions so I had to make some assumptions in the functions I've built. It would be good at some stage to run through these and make sure all my unit conversions are starting from the right spot

KillickNZ commented 2 months ago

Hey mate - I will be up in Queenstown this evening if you wanted to go over things? And will be staying at Forest Lodge all week if you wanted to come over and have a look at how everything is set up.

Cheers