[Os-project-managers] Some talking points re: AMPL suffixes

Horand Gassmann Horand.Gassmann at Dal.Ca
Thu Sep 15 06:22:09 EDT 2011


"R. Kipp Martin" <kmartin at chicagobooth.edu> wrote:

> Hi Gus:
>
> I am back in Chicago. I will at the office, 773-702-7456 for our meeting.
>
>>
>> For instance
>>
>> suffix gus integer, >=0;
>> let {i in I} x[i].gus = if (abs(x[i]) < 10) then i else 2*i;
>
> 1) It looks like when you define gus as a suffix, you do not state  
> whether it is a suffix for variables, constraints, objectives etc.  
> Could it also index rows? That is, could you also have
>
>
> let {j in J} row[j].gus = if (abs(x[i]) < 10) then j else 2*j;
>
> in the same model file?

Yes, this is correct. All I do is to set up the index, further use  
dictates where it is applied.

> 2) Have you heard anything more from David Gay?

Ahhhh, no.

> 3) What is your probability assessment that withing two years there  
> will be an ASL method to let one get all of the suffix names from an  
> nl file?

Unknown.

> 4) I assume just getting suffix names is not enough, we would need  
> to know from the get method what to attach the suffix to, e.g.  
> variable, row, objective, etc.

This is correct.

Cheers

gus




More information about the Os-project-managers mailing list