Issue of select members from sets
Posted: Fri Sep 17, 2021 6:17 pm
Hello,
I'm a beginner to GAMS, I have a question about select members from sets.
For examples,
Set
r relays / 1*6 /
Variables tds(r);
con13.. ((tds('5') * 0.14) / (vcPower((384 / (5* 40)),0.02) - 1)) -
((tds('1') * 0.14) / (vcPower((1978.9 / (2 * 60)),0.02) - 1)) =g= 0.2;
con14.. ((tds('4') * 0.14) / (vcPower((466.17 / (5 * 60)),0.02) - 1)) -
((tds('2') * 0.14) / (vcPower((1525.7 / (3* 40)),0.02) - 1)) =g= 0.2;
con15.. ((tds('1') * 0.14) / (vcPower((175 / (5* 60)),0.02) - 1)) -
((tds('3') * 0.14) / (vcPower((1683.9 / (2 * 40)),0.02) - 1)) =g= 0.2;
So, I do have a huge set of constraints, how I can introduce a specific sequence for the equations, instead of having a large number of equations?
I'm a beginner to GAMS, I have a question about select members from sets.
For examples,
Set
r relays / 1*6 /
Variables tds(r);
con13.. ((tds('5') * 0.14) / (vcPower((384 / (5* 40)),0.02) - 1)) -
((tds('1') * 0.14) / (vcPower((1978.9 / (2 * 60)),0.02) - 1)) =g= 0.2;
con14.. ((tds('4') * 0.14) / (vcPower((466.17 / (5 * 60)),0.02) - 1)) -
((tds('2') * 0.14) / (vcPower((1525.7 / (3* 40)),0.02) - 1)) =g= 0.2;
con15.. ((tds('1') * 0.14) / (vcPower((175 / (5* 60)),0.02) - 1)) -
((tds('3') * 0.14) / (vcPower((1683.9 / (2 * 40)),0.02) - 1)) =g= 0.2;
So, I do have a huge set of constraints, how I can introduce a specific sequence for the equations, instead of having a large number of equations?