power transport lines. A node u may be supplied with an amount s(u)≥0 of power, may produce an amount 0≤p(u)≤pmax(u) of power, may consume an amount 0≤c(u)≤min(s(u),cmax(u)) of power, and may deliver an amount d(u)=s(u)+p(u)-c(u) of power. The following restrictions apply: c(u)=0 for any power station, p(u)=0 for any consumer, and p(u)=c(u)=0 for any
dispatcher. There is at most one power transport line (u,v) from a node u to a node v in the net; it transports an amount 0≤l(u,v)≤lmax(u,v) of power delivered by u to v. Let Con= ∑u c(u) be the power consumed in the net. The problem is to compute the maximum value of Con.

An example is in figure 1. The label x/y of power station u shows that p(u)=x and pmax(u)=y. The label x/y of consumer u shows that c(u)=x and cmax(u)=y. The label x/y of power transport line (u,v) shows that l(u,v)=x and lmax(u,v)=y. The power consumed is Con=6.
Notice that there are other possible states of the network but the value of Con cannot exceed 6.