error expected number I don't know what it mean?

3,045 views
Skip to first unread message

Diana Clavijo

unread,
Aug 28, 2013, 10:06:18 PM8/28/13
to am...@googlegroups.com
 Hi, I'm programing a mathematical model of sequencing and assignment, i have many errors and this is one of these.

model1.dat, line 39 (offset 423):
expected number
context:  param  >>> G <<<  : = 10000;

I need help, thanks for answer me.

Robert Fourer

unread,
Aug 29, 2013, 8:12:02 PM8/29/13
to am...@googlegroups.com

I don't see anything wrong with this statement.  Most likely the syntax error at this point is the result of something that is wrong earlier in the file, such as a missing semicolon on the previous line.  (If AMPL is interpreting "param G ..." as more data for the previous parameter, then it will try to read "G" as the value corresponding to set member "param" -- hence the "expected number" message.)

 

Bob Fourer

am...@googlegroups.com

 

 

From: am...@googlegroups.com [mailto:am...@googlegroups.com]

On Behalf Of Diana Clavijo
Sent: Wednesday, August 28, 2013 9:06 PM
To: am...@googlegroups.com
Subject: [AMPL 7410] error expected number I don't know what it mean?

 

Hi, I'm programing a mathematical model of sequencing and assignment, i have many errors and this is one of these.

 

model1.dat, line 39 (offset 423):

            expected number

context:  param  >>> G <<<  : = 10000;

.

Reply all
Reply to author
Forward
0 new messages