-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathEMI_sink_source.jl
More file actions
35 lines (30 loc) · 1.16 KB
/
EMI_sink_source.jl
File metadata and controls
35 lines (30 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Generate the case and model data and run the model
case, model = generate_example_ss_investment()
optimizer = optimizer_with_attributes(HiGHS.Optimizer, MOI.Silent() => true)
m = run_model(case, model, optimizer)
# Display some results
source, sink = get_nodes(case)
@info "Invested capacity for the source in the beginning of the individual strategic periods"
pretty_table(
JuMP.Containers.rowtable(
value,
m[:cap_add][source, :];
header = [:StrategicPeriod, :InvestCapacity],
),
)
@info "Retired capacity of the source at the end of the individual strategic periods"
pretty_table(
JuMP.Containers.rowtable(
value,
m[:cap_rem][source, :];
header = [:StrategicPeriod, :InvestCapacity],
),
)
## Code above identical to the example EnergyModelsInvestments.jl/examples/sink_source.jl
############################################################################################
## Code below for displaying the GUI
using EnergyModelsGUI
# Set folder where visualization info is saved and retrieved
design_path = joinpath(@__DIR__, "design", "EMI", "sink_source")
# Run the GUI
gui = GUI(case; design_path, model = m)