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 <[email protected]>
> An: xypron <[email protected]>
> CC: [email protected]
> 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
_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk