gams:get_an_ordered_set_from_a_set_which_is_not_ordered

This shows you the differences between two versions of the page.

Both sides previous revision Previous revision | |||

gams:get_an_ordered_set_from_a_set_which_is_not_ordered [2008/06/18 15:38] support |
gams:get_an_ordered_set_from_a_set_which_is_not_ordered [2008/10/15 14:17] (current) support |
||
---|---|---|---|

Line 1: | Line 1: | ||

====== How do I get an ordered set from a set, which is not ordered? ====== | ====== How do I get an ordered set from a set, which is not ordered? ====== | ||

- | Ord() only works on ordered sets. Sets with elements, which have been introduced earlier, may not be ordered. Below is an example, how to get an ordered set in such a situation. | + | ''Ord()'' only works on ordered sets. Sets with elements, which have been introduced earlier, may not be ordered. Below is an example, how to get an ordered set in such a situation. |

+ | | ||

+ | Note: The functions ''sameas'', ''.pos'', and ''.val'' will also work, if the set is not ordered. | ||

<code> | <code> |

IMPRESSUM / LEGAL NOTICE
PRIVACY POLICY
gams/get_an_ordered_set_from_a_set_which_is_not_ordered.txt · Last modified: 2008/10/15 14:17 by support