> To model the condition you can introduce a binary variable,
> say, z, like follows:
>
> var z{w in W, d in D}, binary;
>
> and then define an additional constraint like follows:
>
> s.t. foo{w in W, d in D, h in H}: delta[w,d,h] <= z[w,d];
>
> i have time sets below,
>
> set W; #week
> set D; #day
> set H; #hour
>
> and a binary decision variable.
>
> var delta{w in W, d in D, h in H},binary;
>
>
> My question is that;
> if delta[w.d,h] = 0 for a specific hour, it has to be equal to zero for the
> following 23 hours too.
> That
Hi,
i have time sets below,
set W; #week
set D; #day
set H; #hour
and a binary decision variable.
var delta{w in W, d in D, h in H},binary;
My question is that;
if delta[w.d,h] = 0 for a specific hour, it has to be equal to zero for the
following 23 hours too.
That is if delta is 0 it has t