Originally posted by: SystemAdmin
Hello,
I am trying to use the intensity feature like this:
//80% during the the whole window stepfunction fDataLinkEff[w in Nws] = stepwise
{0->WstartInt[w]; 80->WendInt[w]; 0
}; dvar interval itvs[i in Nfs] optional in WstartMinInt..WendMaxInt size DvInt[i]; dvar interval altItvChannels[i in Nfs][sa in Sas][c in Ncs] optional in WstartMinInt..WendMaxInt size DvInt[i]; dvar interval altItvWindows[i in Nfs][w in Nws] optional in WstartInt[w]..WendInt[w] size DvInt[i] intensity fDataLinkEff[w];
In the constraints, I have the following :
alternative(itvs[i], all(w in Nws) altItvWindows[i][w]); alternative(itvs[i], all(s in Sas,c in Ncs ) altItvChannels[i][s][c]);
All my tasks are of size 1000 (DvInt[i] = 1000 for all i). I want to model the intensity on the windows (altItvWindows), not on the channels (because it makes no sense) but they are linked I guess because of the "alternative" (itvs is chosen in altItvChannels AND altItvWindows). The size of a window is between 2000 and 4000 (WendInt[w]-WstartInt[w] for all w).
The model gives only empty intervals as a solution. If I put a value of 100 in the stepfunction during the whole interval, everything works.
If I understand well, because of the stepfunction, I should get intervals of more than 1000 (duration of a task), is that right ? Why is it not working ?
Thank you very much
#CPOptimizer#DecisionOptimization