Search found 2 matches

by iwanttolearngams
3 years ago
Forum: Syntax
Topic: Help me read this line of code
Replies: 0
Views: 1538

Help me read this line of code

t(cn)$SUM((n,rgn), dat_n(n,cn,rgn,'Node','P')) = cn(cn); /* suppliers */ t_acc_np(t,n)$SUM((rgn), dat_n(n,t,rgn,'Node','P')) = 1; As i as I understand it is a conditional statement that would be read as : t(cn) should be equal to cn(cn) IF the SUM for all n and rgn , and im lost after that. Thanks ...
by iwanttolearngams
3 years ago
Forum: Syntax
Topic: Help me understand this line of code
Replies: 2
Views: 1833

Help me understand this line of code

t(cn)$SUM((n,rgn), dat_n(n,cn,rgn,'Node','P')) = cn(cn); /* suppliers */ t_acc_np(t,n)$SUM((rgn), dat_n(n,t,rgn,'Node','P')) = 1; As i as I understand it is a conditional statement that would be read as : t(cn) should be equal to cn(cn) IF the SUM for all n and rgn , and im lost after that. Thanks ...