Skip to content

Commit

Permalink
add comment on simplifications
Browse files Browse the repository at this point in the history
  • Loading branch information
BSnelling committed Dec 9, 2022
1 parent 6c34fba commit c7e4771
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ using FullNetworkSystems
using HiGHS
using JuMP

# Here we model a simple system where demands (loads) need to be met by supply for minimum cost
# We assume all components are colocated, so do not model branch constraints or nodal injections
system = SystemRT(
gens_per_bus,
loads_per_bus,
Expand Down Expand Up @@ -126,7 +128,7 @@ load = get_loads(system)
sum(model[:generation][u, t] for u in units) == sum(load(l, t) for l in axiskeys(load, 1))
)

# for simplicity, use a fixed price per MW, rather than a variable price offer curve
# For simplicity, use a fixed price per MW, rather than a variable price offer curve
offer_curves = get_offer_curve(system)
prices = map(curve -> only(first.(curve)), offer_curves)
cost = AffExpr()
Expand Down

0 comments on commit c7e4771

Please sign in to comment.