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.



_______________________________________________
Help-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to