[AMPL 24990] AMPL

Hello, look, I have a problem in AMPL, I always try to fix it but I can’t find the mistake, if you can help me see the error I would be very grateful

D:\ampl>ampl IEEE24.run
Error at _cmdno 1 executing "solve" command
(file IEEE24.mod, line 27, offset 580):
error processing var Pg[...]:
        no data for set GEN

The most common reason for this error is as follows: You have used an AMPL var statement to define variable Pg, which is indexed over set GEN. But you have not told AMPL what the members of set GEN are.

If you need more help, reply with an explanation of how you are providing the data for your AMPL model — for example, by reading a text data file as described in Chapter 9 of the AMPL book. Also, be sure to attach copies of your files. (You can click on the image icon to attach files.)

Your question has been moved to our new user forum at discuss.ampl.com, and a response has been posted. To see the response, use this link:

https://discuss.ampl.com/t/ampl-24990-ampl/960/2

To reply, click the red “Reply” button that follows the response. (Do not send an email reply to this message.)