Error ar 'Solve' Invalid Subscripts

431 views
Skip to first unread message

khan

unread,
Nov 25, 2014, 7:50:40 AM11/25/14
to am...@googlegroups.com
Dear All,

I am trying to solve my model having big number of data set. One variable ldmo is use to having dataset of 165X335 matrix. But when I try to solve it using Neos online solver. It gives me following error. Please suggest some fixings:

Error at _cmdno 3 executing "solve" command
(file amplin, line 441, offset 293872):
error processing param ldmo:
	53195 invalid subscripts discarded:
	ldmo[1,66]
	ldmo[1,67]
	ldmo[1,68]
	and 53192 more.
Error at _cmdno 3 executing "solve" command
(file amplin, line 441, offset 293872):
error processing objective Cost:
	invalid subscript ldmo[1,66]
processing commands.
Executing on neos-4.neos-server.org
 Error (2) in /opt/ampl/ampl -R amplin

Robert Fourer

unread,
Nov 26, 2014, 7:27:19 PM11/26/14
to am...@googlegroups.com
It seems that you have deleted many of the members of the indexing set of param ldmo; as a result the corresponding data values for ldmo have been deleted, and you are getting the "invalid subscripts discarded" warning. Later when these data values are needed, they are not available and you are getting the "invalid subscript" message. As a first troubleshooting step, you should check your files to see where you are removing members from one of the indexing sets of ldmo.

Bob Fourer
am...@googlegroups.com

=======

Muhammad umar

unread,
Nov 27, 2014, 7:37:18 AM11/27/14
to am...@googlegroups.com
Yes this was actually the problem you told. I was missing the vaules of ldmo in the data file. Thank you it works now. 
Thank you.

-- 
Best Regards 
M. Umar Khan

--
You received this message because you are subscribed to a topic in the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ampl/3ibGttDYXzY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ampl+uns...@googlegroups.com.
To post to this group, send email to am...@googlegroups.com.
Visit this group at http://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages