Originally posted by: guvenc
Hi Alex,
The following:
forall (rjt in RJT)
X[rjt] == sum(rpjt in RPJT:<rjt.r,rpjt.p,rjt.j,rjt.t> in RPJT) Y[<rjt.r,rpjt.p,rjt.j,rjt.t>];
does not give an objective value that I expect. It gives like a 10 times larger objective function value weirdly.
I also tried
forall (rjt in RJT)
X[rjt] == sum(rpjt in RPJT: <rjt.r,rpjt.p,rjt.j,rjt.t> in RPJT) Y[rpjt];
too, just to see what happens, and this one gives approx 4 times large objective function value as well. Both wrong ofcourse.
If you are still keen to help me out, I wonder your input about wrong equations.
Nonetheless, I think I will stick to one of the following
forall (rjt in RJT)
X[rjt] == sum(rpjt in RPJT: rpjt.r == rjt.r && rpjt.j == rjt.j && rpjt.t == rjt.t) Y[rpjt]; //Alternative 2
forall (<r,j,t> in RJT)
X[<r,j,t>] == sum(<r,p,j,t> in RPJT) Y[<r,p,j,t>];// Your reply behaving correctly
forall (<r1,j1,t1> in RJT)
X[<r1,j1,t1>] == sum(<r2,p,j2,t2> in RPJT: r1 ==r2 && j1==j2 && t1==t2) Y[<r1,p,j1,t1>];// Thank you once again for direction "Implicit and Explicit
Slicing https://www.ibm.com/support/knowledgecenter/SSSA5P_12.9.0/ilog.odms.ide.help/OPL_Studio/opllangref/topics/opl_langref_formalParams_filtering.html"
Regards,
Guvenc
#CPLEXOptimizers#DecisionOptimization