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