I want to use conditions to my variable.
dvar boolean x[I][J][K][L]
dvar in h[i]
my code is
forall(i in IP, j in J)
sum(k in K, l in L)
x[i][j][k][l] - 7 == h[i];
The following condition must be satisfied:
if x[i][j][k][l] - 7 <=0, h[i] must be zero.
if x[i][j][k][l] - 7 >=0, h[i] must be calculated
How do we formulate it in the integer programming formulation on CPLEX?
Thank you for your answer.