leak_constraint#
module wntr.sim.models.constraint
- class leak_constraint[source]#
Bases:
Definition
- classmethod build(m, wn, updater, index_over=None)[source]#
Adds a leak constraint to the model for the specified junctions.
- Parameters:
m (wntr.aml.Model)
updater (ModelUpdater)
- classmethod update(m, wn, updater, obj, attr)#