The demand has to be zero for enough time steps in order to empty the network
Computation of dJ/dU, dJ/DX and J(X,U)
dH/dX for the Mass Conservation and Flow Propagation constaints