[Top][All Lists]

[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:
set Q: = sort(q in { "a", "quick", "brown", "fox", "jumps", "over", "the",
"lazy", "dog"}, length(q));

Best regards

View this message in context:
Sent from the Gnu - GLPK - Help mailing list archive at

reply via email to

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