User Tools

Site Tools



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

Link to this comparison view

Both sides previous revision Previous revision
gams:getting_the_index_position_of_the_largest_element_of_a_set [2020/05/25 17:08]
Lutz Westermann Improve problem description and code formatting
gams:getting_the_index_position_of_the_largest_element_of_a_set [2020/05/25 17:14] (current)
Lutz Westermann add singleton set variant
Line 38: Line 38:
 i3                     YES i3                     YES
 i4         YES i4         YES
 +In case just one element is wanted and not all index positions with the maximum number, one can use a [[https://​​latest/​docs/​UG_SetDefinition.html#​UG_SetDefinition_SingletonSets|Singleton Set]] like this:
 +Singleton Set posmaxS(i,​j);​
 +Option strictSingleton=0;​
 +posmaxS(i,​j) = a(i,j) = maxa;
 +display posmaxS;
 +----     18 SET posmaxS  ​
 +            j3
 +i3         YES
 </​code>​ </​code>​
IMPRESSUM / LEGAL NOTICEPRIVACY POLICY gams/getting_the_index_position_of_the_largest_element_of_a_set.txt ยท Last modified: 2020/05/25 17:14 by Lutz Westermann