subset

Problems with modeling
Post Reply
Omi
User
User
Posts: 7
Joined: 4 years ago

subset

Post by Omi »

How to code attachment?
s is subset of N with cardinality greater than 2.
where N is /J1*J6/
Attachments
Capture.PNG1.PNG
Capture.PNG1.PNG (2.27 KiB) Viewed 1595 times
User avatar
Renger
Posts: 639
Joined: 7 years ago

Re: subset

Post by Renger »

Hi Omi

As long as you don't know which elements should be part of the subset, this is hard to answer.
Otherwise, you can use assigning elements from N as follows:

Code: Select all

N Main set /J1*J6/,
S(N) subset of N;

S(N)$(condition) = YES;
THis will assign elements from N to S based on your condition.
Cheers
Renger
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist
Post Reply