fcv_headloss_constraint#
module wntr.sim.models.constraint
- class fcv_headloss_constraint[source]#
Bases:
Definition
- classmethod build(m, wn, updater, index_over=None)[source]#
Adds a headloss constraint to the model for the power pumps.
- Parameters:
m (wntr.aml.aml.aml.Model)
updater (ModelUpdater)
index_over (list of str) – list of powerPump names; default is all powerPumps in wn
- classmethod update(m, wn, updater, obj, attr)#