Skip to content

Commit

Permalink
added angle difference limit column to mimo-example.xlsx under transm…
Browse files Browse the repository at this point in the history
…ission sheet

added angle difference limit constraint to model
with difflimit parameter, angle difference between source and destination sites can be limited.
  • Loading branch information
yunusozsahin committed Jul 12, 2019
1 parent 9141e25 commit ccf6863
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Binary file modified mimo-example.xlsx
Binary file not shown.
8 changes: 8 additions & 0 deletions urbs/features/transmission.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,10 @@ def add_transmission_dc(m):
m.tm, m.tra_tuples_dc,
rule=def_dc_power_flow_rule,
doc='transmission output = (angle(in)-angle(out)) * susceptance')
m.def_angle_limit = pyomo.Constraint(
m.tm, m.tra_tuples_dc,
rule=def_angle_limit_rule,
doc='angle(in) - angle(out) < angle limit')
m.abs1_e_tra_dc_in = pyomo.Constraint(
m.tm, m.tra_tuples_dc,
rule=abs1_e_tra_dc_in_rule,
Expand Down Expand Up @@ -274,6 +278,10 @@ def def_dc_power_flow_rule(m, tm, stf, sin, sout, tra, com):
(m.phase_angle[tm, stf, sin] - m.phase_angle[tm, stf, sout]) *
- m.transmission_dict['susceptance'][(stf, sin, sout, tra, com)])

def def_angle_limit_rule(m, tm, stf, sin, sout, tra, com):
return (- m.transmission_dict['difflimit'][(stf, sin, sout, tra, com)],
(m.phase_angle[tm, stf, sin] - m.phase_angle[tm, stf, sout]),
m.transmission_dict['difflimit'][(stf, sin, sout, tra, com)])

def abs1_e_tra_dc_in_rule(m, tm, stf, sin, sout, tra, com):
return (m.e_tra_in[tm, stf, sin, sout, tra, com] <=
Expand Down

0 comments on commit ccf6863

Please sign in to comment.