Problem with defining a flow

Problems with modeling
makki01
User
User
Posts: 1
Joined: 3 months ago

Problem with defining a flow

Postby makki01 » 3 months ago

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?

Who is online

Users browsing this forum: No registered users and 1 guest