Skip to content

Commit

Permalink
Add comment to clarify variable initialization in build_model function
Browse files Browse the repository at this point in the history
  • Loading branch information
tristantc committed Nov 4, 2024
1 parent da82210 commit 6b68964
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gdplib/water_network/wnd.py
Original file line number Diff line number Diff line change
Expand Up @@ -821,6 +821,7 @@ def costTU(unit_exists):
# Objective function: minimize the total cost of the treatment units
m.obj = pyo.Objective(expr=sum(m.costTU[k] for k in m.TU), sense=pyo.minimize)

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

return m

0 comments on commit 6b68964

Please sign in to comment.