A syntax error in a constraint loop

34 views
Skip to first unread message

Hany Osman

unread,
Jan 30, 2024, 9:30:09 PMJan 30
to AMPL Modeling Language
Hi,
Recently I have this syntax error in one of my constraints 

syntax error
context:  subject to precedence_in_part_platform {j in J, l  >>> in  <<< J: l<>j} : 1 + x[j] >= f[j,l] + x[l];
ampl: 

The model was working fine las month. I do not know the reason for this error, given that the model have earlier constraints with this loop but it did not give any syntax error.

Could you please help, Thanks a lot

AMPL Google Group

unread,
Jan 31, 2024, 12:29:34 PMJan 31
to AMPL Modeling Language
Your question has been moved to our new user forum at discuss.ampl.com, and a reply has been posted. To see the reply, go here:

https://discuss.ampl.com/t/ampl-24974-a-syntax-error-in-a-constraint-loop/925


--
Robert Fourer

We're switching to a new, enhanced user forum.
Join it now at discuss.ampl.com.
{#HS:2496359249-122068#}
Reply all
Reply to author
Forward
0 new messages