I have an index CC
and a set of values CM
, and c is an element of CM
and CM
is a subset of CC
. I have two summations shown above. The first summation is over index CC
and the subset CM
. The light brown colored part of the first summation is telling that the summation should include only if c
is an element of CM
. The second summation is over the elements of CM
.
These two summations appear in an equation (not given here for simplicity). Is there an easy way to perform these summations?
Thank you...
EDIT 1 The answer to the above summations is as follows.
(* first summation *)
tq[1]*PD[1]+
tq[2]*PD[2]+PM[2] +
tq[3]*PD[3]+PM[3] +
tq[4]*PD[4]+
tq[5]*PD[5]+
tq[6]*PD[6]+PM[6]+
tq[7]*PD[7]
(* Second summation *)
tq[2]*(PD[2]+QD[2])+
tq[3]*(PD[3]+QD[3])+
tq[6]*(PD[6]+QD[6])
tq[1]*PD[1]+ tq[2]*PD[2]+PM[2]+ tq[3]*PD[3]+PM[3]+ tq[4]*PD[4]+ tq[5]*PD[5]+ tq[6]*PD[6]+PM[6]+ tq[7]*PD[7]
? Is your second sum =tq[2]*PD[2]*QD[2]+ tq[3]*PD[3]*QD[3]+ tq[6]*PD[6]*QD[6]
? $\endgroup$