# Flow conservation constraints

Filter Content By
Version
Languages

### Flow conservation constraints

The next set of constraints are the flow conservation constraints. They require that, for each commodity and node, the sum of the flow into the node plus the quantity of external inflow at that node must be equal to the sum of the flow out of the node:

for h in commodities:
for j in nodes: