I have a problem with the set n (optimization variables), which can be devided in two sets a(n) and b(n) with equal cardinality. In my model, I want to minimize the sum of the product of the (ordered) elements of the two sets, i.e.
Code: Select all
obj.. cost =e= sum(a, x(a)*x(b) ) .
Code: Select all
obj.. cost =e= sum(a, x(a)*x(a+3) )
Code: Select all
n /1*6/, a(n) /1*3/, b(n) /4*6/.