help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] Ordered sets in GMPL


From: xypron
Subject: Re: [Help-glpk] Ordered sets in GMPL
Date: Sat, 20 Dec 2008 00:28:26 -0800 (PST)


xypron wrote:
> 
> I would appreciate if a function to sort sets could be provided in GMPL.
> Then I could simply write:
> set Q := sort({ "a", "quick", "brown", "fox", "jumps", "over", "the",
> "lazy", "dog"});
> 

Maybe sort should allow for a second parameter specifying an expression to
sort by:
e.g.
set Q: = sort(q in { "a", "quick", "brown", "fox", "jumps", "over", "the",
"lazy", "dog"}, length(q));

Best regards

Xypron
-- 
View this message in context: 
http://www.nabble.com/Ordered-sets-in-GMPL-tp21102805p21102871.html
Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]