generated from NREL-Sienna/SiennaTemplate.jl
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add script example to add technology
- Loading branch information
1 parent
ba277d7
commit 3c9283c
Showing
3 changed files
with
77 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using Pkg | ||
Pkg.activate("") | ||
Pkg.instantiate() | ||
using Revise | ||
using PowerSystems | ||
using InfrastructureSystems | ||
using PowerSystemsInvestmentsPortfolios | ||
const IS = InfrastructureSystems | ||
const PSY = PowerSystems | ||
const PSIP = PowerSystemsInvestmentsPortfolios | ||
|
||
data = PSY._create_system_data_from_kwargs() | ||
|
||
bus = ACBus(nothing) | ||
discount_rate = 0.07 | ||
investment_schedule = Dict() | ||
port_metadata = PSIP.PortfolioMetadata("portfolio_test", nothing, nothing) | ||
|
||
p = Portfolio( | ||
ACBus, | ||
discount_rate, | ||
data, | ||
investment_schedule, | ||
port_metadata, | ||
nothing, | ||
IS.TimeSeriesContainer(), | ||
IS.InfrastructureSystemsInternal(), | ||
) | ||
|
||
t = SupplyTechnology{ThermalStandard}( | ||
"thermal_tech", | ||
true, | ||
ThermalStandard, | ||
PSY.ThermalFuels.COAL, | ||
PSY.PrimeMovers.ST, | ||
0.98, # cap factor | ||
nothing, | ||
nothing, | ||
IS.SupplementalAttributesContainer(), | ||
IS.TimeSeriesContainer(), | ||
IS.InfrastructureSystemsInternal(), | ||
) | ||
|
||
PSIP.add_technology!(p, t) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters