An error like "1 item(s) missing in last line of table" might occur because a value is actually missing from the table, or because a value appears to be missing because two values do not have a space between them. This error can also occur because the data for the parameter is not consistent with the definition of the parameter -- for example when the parameter is indexed over two sets, but in the data three indexes are given for each value. But since I don't know the definition of param suit_vid, I can't say whether this might be the cause of the error in your situation.
The syntax error in your "for" loop might be caused by the previous error, or might be occurring because r has already been defined as a param earlier in your model.
Bob Fourer
am...@googlegroups.com
=======
From:
am...@googlegroups.com [mailto:
am...@googlegroups.com] On Behalf Of
varu...@gmail.com
Sent: Saturday, January 17, 2015 8:50 PM
To:
am...@googlegroups.com
Subject: [AMPL 9881] Having problem with dat file regarding an item missing in the last line
I have been trying to fix an error in the dat file but I'm not able to figure it out. I checked the file thouroughly but I dont understand where the mistake is. So, I seek your help. Please help me fix the problem with the dat file.
I shall post the dat file and the log message
Error at _cmdno 2 executing "data" command
(file zib_eu_co.run, line 3, offset 88):
data_test_eu_17_1_15.dat, line 1677 (offset 31898):
1 item(s) missing in last line of table, which starts with "PoP19"
context: 1 PoP19 node27 0 >>> ; <<<
Error at _cmdno 2 executing "data" command
(file zib_eu_co.run, line 3, offset 88):
data_test_eu_17_1_15.dat, line 1683 (offset 31985):
syntax error
context: for {r >>> in <<< REQUESTS, nv in NODES_VID[r], ns in NODES_SUB}