Hi,
you mix sets and scalar values.
Let me fix the objective to help you undestand.
dexpr float SVM =
first(Q1)*(sum(j in CommunitiesRange, i in CandidateSitesRange)first(q[j])*n[j]*d[j][i])
+ first(Q2)*(sum(j in CommunitiesRange, i in CandidateSitesRange)first(l[i])*first(f[j])*n[j]*d[j][i]);
would work fine.
Q1 is a set. You can use an element of a set in an equation but not the set itself
regards
------------------------------
[Alex] [Fleischer]
[Data and AI Technical Sales]
[IBM]
------------------------------