[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] Emulating the AMPL ord() function
From: |
Meketon, Marc |
Subject: |
Re: [Help-glpk] Emulating the AMPL ord() function |
Date: |
Tue, 30 Dec 2014 16:46:05 -0600 |
I'm not the expert, but every time I've used "<" with strings in GMPL it came
out with consistent results.
-----Original Message-----
From: Jason Foster [mailto:address@hidden
Sent: Tuesday, December 30, 2014 5:44 PM
To: Meketon, Marc
Cc: address@hidden
Subject: Re: Emulating the AMPL ord() function
> While I understand your question, in the example that you gave do you really
> need ord(i) < ord(j), or can you suffice with i < j (which seems to work
> with your example)? Often all you need is any consistent ordering and not
> necessarily a specific one.
Agree completely.
So ... ummm ... does glpsol / glpk guarantee that for any given param or set
the "VAR in SET" construct will have a consistent ordering across multiple uses?
Jason
P.S. Thanks for the reply!
This e-mail and any attachments may be confidential or legally privileged. If
you received this message in error or are not the intended recipient, you
should destroy the e-mail message and any attachments or copies, and you are
prohibited from retaining, distributing, disclosing or using any information
contained herein. Please inform us of the erroneous delivery by return e-mail.
Thank you for your cooperation.