Skip to content

Commit

Permalink
Fix exporting results for transmission target contributions
Browse files Browse the repository at this point in the history
  • Loading branch information
Janie115 committed Sep 17, 2024
1 parent 55d90d7 commit e94e50b
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,16 @@ def export_results(
[
tx,
tmp,
value(m.TxSimpleBinary_Transmit_Power_Positive_Direction_MW[tx, tmp]),
value(m.TxSimpleBinary_Transmit_Power_Negative_Direction_MW[tx, tmp]),
(
value(m.TxSimpleBinary_Transmit_Power_Positive_Direction_MW[tx, tmp])
if float(m.contributes_net_flow_to_tx_target[tx]) == 0
else value(m.TxSimple_Transmit_Power_MW[tx, tmp])
),
(
value(m.TxSimpleBinary_Transmit_Power_Negative_Direction_MW[tx, tmp])
if float(m.contributes_net_flow_to_tx_target[tx]) == 0
else value(-m.TxSimple_Transmit_Power_MW[tx, tmp])
),
(
value(m.Transmission_Target_Energy_MW_Pos_Dir[tx, tmp])
if float(m.contributes_net_flow_to_tx_target[tx]) == 0
Expand Down

0 comments on commit e94e50b

Please sign in to comment.