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:[email protected]] Sent: Tuesday, December 30, 2014 5:44 PM To: Meketon, Marc Cc: [email protected] 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. _______________________________________________ Help-glpk mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-glpk
