Skip to content

Commit

Permalink
Update DC-OPF with correct PU and additional flow limit constraints
Browse files Browse the repository at this point in the history
This PR attempts to correct enhance flexibility of per-unit system of units in the DC-OPF and also impose line-flow MW limit constraint to represent thermally constrained lines.
  • Loading branch information
sambuddhac authored Jun 24, 2024
1 parent efa3ba1 commit 9e23bb1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/model/core/transmission/dcopf_transmission.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ function dcopf_transmission!(EP::Model, inputs::Dict, setup::Dict)
t]==inputs["pDC_OPF_coeff"][l] *
sum(inputs["pNet_Map"][l, z] * vANGLE[z, t] for z in 1:Z))

# Maximum power flows, power flow on each transmission line cannot exceed maximum capacity of the line at any hour "t"
@constraints(EP,
begin
cMaxFlow_out[l = 1:L, t = 1:T], vFLOW[l, t] <= EP[:eAvail_Trans_Cap][l]
cMaxFlow_in[l = 1:L, t = 1:T], vFLOW[l, t] >= -EP[:eAvail_Trans_Cap][l]
end)

# Bus angle limits (except slack bus)
@constraints(EP,
begin
Expand Down

0 comments on commit 9e23bb1

Please sign in to comment.