[AMPL 2790] Abandoning compound command message

View: New views
3 Messages — Rating Filter:   Alert me  

[AMPL 2790] Abandoning compound command message

by ziming guan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi,

I have encountered a problem in defining a parameter in AMPL. The error
message is as follows.

test.run, line 71 (offset 2925):
        Abandoning compound command to accept declaration of wetdry_total.

context:  param wetdry_total{w in week,c in  >>> 1..outcomes}; <<<

The parameter outcomes has been defined. Does anyone know what the
meaning of the error message and the likely cause of it is? Thank you.

Regards,
Ziming Guan



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To post to this group, send email to ampl@...
To unsubscribe from this group, send email to ampl+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/ampl?hl=en
-~----------~----~----~----~------~----~------~--~---


[AMPL 2793] Re: Abandoning compound command message

by Robert Fourer-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



This message typically occurs when a param (wetdry_total in this case) is
defined inside a compound command -- a "for" or "repeat" loop or an "if"
statement.  AMPL cannot process such definitions.  Usually the trouble is
fixed by moving the "param" statement before the start of the compound
command.

Bob Fourer
4er@...


> -----Original Message-----
> From: ampl@... [mailto:ampl@...]
> On Behalf Of Ziming Guan [z.guan@...]
> Sent: Thursday, September 03, 2009 10:56 PM
> To: ampl@...
> Subject: [AMPL 2790] Abandoning compound command message
>
>
> Hi,
>
> I have encountered a problem in defining a parameter in AMPL. The error
> message is as follows.
>
> test.run, line 71 (offset 2925):
>         Abandoning compound command to accept declaration of wetdry_total.
>
> context:  param wetdry_total{w in week,c in  >>> 1..outcomes}; <<<
>
> The parameter outcomes has been defined. Does anyone know what the
> meaning of the error message and the likely cause of it is? Thank you.
>
> Regards,
> Ziming Guan
>



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To post to this group, send email to ampl@...
To unsubscribe from this group, send email to ampl+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/ampl?hl=en
-~----------~----~----~----~------~----~------~--~---


[AMPL 2796] Re: Abandoning compound command message

by ziming guan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Bob,

Thank you.

Regards,
Ziming

Robert Fourer wrote:

> This message typically occurs when a param (wetdry_total in this case) is
> defined inside a compound command -- a "for" or "repeat" loop or an "if"
> statement.  AMPL cannot process such definitions.  Usually the trouble is
> fixed by moving the "param" statement before the start of the compound
> command.
>
> Bob Fourer
> 4er@...
>
>
>  
>> -----Original Message-----
>> From: ampl@... [mailto:ampl@...]
>> On Behalf Of Ziming Guan [z.guan@...]
>> Sent: Thursday, September 03, 2009 10:56 PM
>> To: ampl@...
>> Subject: [AMPL 2790] Abandoning compound command message
>>
>>
>> Hi,
>>
>> I have encountered a problem in defining a parameter in AMPL. The error
>> message is as follows.
>>
>> test.run, line 71 (offset 2925):
>>         Abandoning compound command to accept declaration of wetdry_total.
>>
>> context:  param wetdry_total{w in week,c in  >>> 1..outcomes}; <<<
>>
>> The parameter outcomes has been defined. Does anyone know what the
>> meaning of the error message and the likely cause of it is? Thank you.
>>
>> Regards,
>> Ziming Guan
>>
>>    
>
>
>
> >
>  

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To post to this group, send email to ampl@...
To unsubscribe from this group, send email to ampl+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/ampl?hl=en
-~----------~----~----~----~------~----~------~--~---