خرید بک لینک

Vote count: 0

How do I write such constraints in CPLEX (linear-programming) ?

forall(p in P, x in X, y in Y)
  if ((remx[p,x] <= 0) OR (remy[p,y] <= 0)) then
    pbl[p,x,y] == 0
  else 
    pbl[p,x,y] == 1

where pbl is a decision variable (matrix), remx and remy is a normal matrix variable and p,x,y are indices.

I can not use if-then

Thanks,

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 2 خرداد 1395 ساعت: 1:36

صفحه بندی