help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] First element of the set


From: glpk xypron
Subject: Re: [Help-glpk] First element of the set
Date: Thu, 15 Dec 2011 08:16:18 +0100

Hello Haraldo,

for numeric sets you can write:
min{s in S} s
max{s in S} s

What is missing to do the same for nonnumeric sets.

This would require to define the return value of min and max to
be symbolic if the domain values are symbolic.

Best regards

Xypron

-------- Original-Nachricht --------
> Datum: Wed, 14 Dec 2011 21:31:45 -0200
> Von: Haroldo Santos <address@hidden>
> An: xypron <address@hidden>
> CC: address@hidden
> Betreff: Re: [Help-glpk] First element of the set

> A function returning the smallest element from a set would be very useful
> for me too.
> 
> anything better than the the O(n^2) suggestion would be great....
> *set F := setof{ s in S : forall{u in S} s <= u } s;*
> 
> Can this be implemented in GLPK ?
> 

-- 
Follow me at http://twitter.com/#!/xypron

NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!               
Jetzt informieren: http://www.gmx.net/de/go/freephone



reply via email to

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