[Help-glpk] maintenance scheduling

2006-08-25 Thread OZGUR ICAN
> 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]; >

Re: [Help-glpk] if...then...else

2006-08-25 Thread Andrew Makhorin
> 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

[Help-glpk] if...then...else

2006-08-25 Thread Ozgur Ican
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