Skip to content

Commit 9af16b5

Browse files
committed
Set default line_loss_factor as non-zero
The line loss factor of zero leads to non-mutually exclusive forward and backward flows. Therefore, the line_loss_factor should be some small value.
1 parent 8c02fa6 commit 9af16b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pownet/input.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def __init__(
2626
spin_reserve_factor: float = 0.15,
2727
spin_reserve_mw: float = None,
2828
gen_loss_factor: float = 0.01,
29-
line_loss_factor: float = 0.0,
29+
line_loss_factor: float = 0.0001,
3030
line_capacity_factor: float = 0.9,
3131
load_shortfall_penalty_factor: float = 1000,
3232
load_curtail_penalty_factor: float = 1000,

0 commit comments

Comments
 (0)