pdd_mass_balance_constraint#
module wntr.sim.models.constraint
- class pdd_mass_balance_constraint[source]#
Bases:
Definition
- classmethod build(m, wn, updater, index_over=None)[source]#
Adds a mass balance 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)#