To get help with a particular AMPL statement that is giving you errors, copy the entire text of the error message into your email, and also attach your actual files (not the screenshots of the files).
To find an AMPL constraint definition that is syntactically correct but does not specify the constraint correctly, look for obviously wrong constraints in the output of "expand;" which shows the actual constraints generated.
Bob Fourer
am...@googlegroups.com
=======
From:
am...@googlegroups.com [mailto:
am...@googlegroups.com] On Behalf Of
dj1...@gmail.com
Sent: Friday, August 18, 2017 2:36 AM
To: AMPL Modeling Language
Cc:
benji...@gmail.com
Subject: Re: [AMPL 14642] shortest and longest path problems in AMPL
I've written this aswell but ampl returns syntax errors and undefined "i". I can't seem to get it working