We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
build_model
1 parent da82210 commit 6b68964Copy full SHA for 6b68964
gdplib/water_network/wnd.py
@@ -821,6 +821,7 @@ def costTU(unit_exists):
821
# Objective function: minimize the total cost of the treatment units
822
m.obj = pyo.Objective(expr=sum(m.costTU[k] for k in m.TU), sense=pyo.minimize)
823
824
+ # Initialization of the variables to midpoint between the bounds to avoid numerical issues if no initial values are provided.
825
# init_vars.InitMidpoint().apply_to(m)
826
827
return m
0 commit comments