Skip to content

Commit 6b68964

Browse files
committed
Add comment to clarify variable initialization in build_model function
1 parent da82210 commit 6b68964

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gdplib/water_network/wnd.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,7 @@ def costTU(unit_exists):
821821
# Objective function: minimize the total cost of the treatment units
822822
m.obj = pyo.Objective(expr=sum(m.costTU[k] for k in m.TU), sense=pyo.minimize)
823823

824+
# Initialization of the variables to midpoint between the bounds to avoid numerical issues if no initial values are provided.
824825
# init_vars.InitMidpoint().apply_to(m)
825826

826827
return m

0 commit comments

Comments
 (0)