syntax error: The symbol ")" is not expected.

284 views
Skip to first unread message

ZN

unread,
Feb 23, 2016, 11:08:45 AM2/23/16
to AIMMS - The Modeling System
Hi, 

I got a syntax error which says The symbol ")" is not expected.  But I didn't see anything wrong here.  Could you help me find the problem?  Thank you so much!

BranchPTDF(br,t)= sum(h | h in HoursInPeriod(t),sum(sb|PTDF_Branch(br,h,sb)*sum(nd|nd=sb,NetBusMW(sb,t))))

Marcel Hunting

unread,
Feb 23, 2016, 11:59:21 AM2/23/16
to AIMMS - The Modeling System
Hi,

It seems to me that in sum(sb|PTDF_Branch(br,h,sb) the '|' should be replaced by ','.

Best regards,

Marcel Hunting
AIMMS Optimization Specialist

ZN

unread,
Feb 23, 2016, 6:29:42 PM2/23/16
to AIMMS - The Modeling System
Thank you Marcel,  I used sum(sb|sb in Allnodes,PTDF(br,h,sb)) instead, and it works now.  

在 2016年2月23日星期二 UTC-5上午11:59:21,Marcel Hunting写道:
Reply all
Reply to author
Forward
0 new messages