index set creation

Problems with modeling
Post Reply
pseudocleft
User
User
Posts: 4
Joined: 1 year ago

index set creation

Post by pseudocleft »

Ekran görüntüsü 2022-07-07 110640.png
Hello,

I have the problem as in the photo, but how can I create the set with O(i). I don't want to manually create one by one.
Attachments
image.png
User avatar
bussieck
Moderator
Moderator
Posts: 1033
Joined: 7 years ago

Re: index set creation

Post by bussieck »

Make set "order" parallel to set O:

Code: Select all

set order, O, oOmap(order<, O<) / 1.Bananas, 2.Apples, 3.Oranges /;
-Michael
Post Reply