Problem with defining a flow

Problems with modeling
Post Reply
makki01
User
User
Posts: 1
Joined: 6 years ago

Problem with defining a flow

Post by makki01 »

Hi all,
I have a problem
I try to develop a water model, so inflow should be equal to release.

Set
n /n1*n8/
;

Alias (n,n1);

Set
CONNECT(n,n1) from node to node
/
n1.n3
n2.n4
n3.n5
n4.n5
n5.n6
n5.n7
n7.n6
n6.n8
/
;
Parameter
QINFLOW(n,t);

Positive variable
q(n,n1,t);

ITNCON(n,t).. sum(n1$(CONNECT(n1,n)), QINFLOW(n1,t)) + sum(n1$(CONNECT(n1,n)),q(n1,n,t))
=E= sum(n1$CONNECT(n,n1),q(n,n1,t)) ;

Could you help find a mistake without running a model?
Post Reply