I have a LP model, which have defined time horizon in it, in one of the constraint I have to make a comparison between the current time horizon and another parameter ( time transportation takes from point A to B).
Unfortunately dont know how to set this Using AIMMS ( already have tried different tricks like a subset of ''t'' but didnt worked out and i got the error :
There is no operation defined for operator ">" with arguments of data type set and data type numeric; the arguments themselves are "TH(t)" and "TT(k,d)".
I have attached the model in word, and my current written constraint is:
sum(c,TX(d,c,t)+ETY(d,c,t))-sum[(c,k)|k<>d AND TH(t)>TT(k,d),TX(k,d,(TH(t)-TT(k,d)))+ETY(k,d,(TH(t)-TT(k,d)))]-ETY(d,d,(TH(t)-1))-ETY(d,d,(TH(t)-1))=FAVT(d,t)
The Bold part, where error is happening, here TH(t) is a subset of time{t} which is defined as planning horizon in the model, and TT(k,d) is parameter showing how long takes from point k to d.
Thank you very much for your help in advance.
Best,
Rasa.