Skip to content

Commit

Permalink
Update transmission.jl to account for asymmetrical directional flow l…
Browse files Browse the repository at this point in the history
…imits

This PR attempts to implement asymmetrical flow limits depending on direction on power flow on transmission lines, so that unidirectional line flows on HVDC lines can be modeled.
  • Loading branch information
sambuddhac authored Sep 9, 2024
1 parent 6006494 commit d36c5a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/model/core/transmission/transmission.jl
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ function transmission!(EP::Model, inputs::Dict, setup::Dict)
# 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]
cMaxFlow_out[l = 1:L, t = 1:T], vFLOW[l, t] <= EP[:eAvail_Trans_Cap][l] #Change these with Auxiliary
cMaxFlow_in[l = 1:L, t = 1:T], vFLOW[l, t] >= -EP[:eAvail_Trans_Cap][l] #Change these with Auxiliary
end)

# Transmission loss related constraints - linear losses as a function of absolute value
Expand Down

0 comments on commit d36c5a1

Please sign in to comment.