tell to GAMS, an element isn't belong to set.
Posted: Sat Sep 22, 2018 4:18 pm
Hi everyone
I have 3 set A /45*200/ ,B/39*443/ ,and c/12*187/.
I show symmetric difference of A,B by symAB,
symmetric difference of A,c by symAc and
symmetric difference of B,c by symBc, I want to code below summation in GAMS
Sum(k$ k isn't belong to symAB)+Sum(k$ k isn't belong to symAc) <= Sum(j$ j isn't belong to symBc)
My questions
Should I define new subset j and k ?
I don't know how I can tell to GAMS, an element isn't belong to set.
How should I do?
Thanks & Best
Richard
I have 3 set A /45*200/ ,B/39*443/ ,and c/12*187/.
I show symmetric difference of A,B by symAB,
symmetric difference of A,c by symAc and
symmetric difference of B,c by symBc, I want to code below summation in GAMS
Sum(k$ k isn't belong to symAB)+Sum(k$ k isn't belong to symAc) <= Sum(j$ j isn't belong to symBc)
My questions
Should I define new subset j and k ?
I don't know how I can tell to GAMS, an element isn't belong to set.
How should I do?
Thanks & Best
Richard