integer infeasible due to similar but yet different constraints
Posted: Thu Nov 11, 2021 2:53 pm
Hey there,
I have tried a lot but I won´t get this part of my constraints to work.
NB8(r).. sum(k, sum((i,j)$(ord(i)=orn(r)), y(i,j,k,r))) =E= 1 ;
NB19(r).. sum(k, sum((i,j)$(ord(i)=de(r)), y(i,j,k,r))) =E= 0;
NB9(r).. sum(k, sum((i,j)$(ord(j)=de(r)), y(i,j,k,r))) =E= 1 ;
NB20(r).. sum(k, sum((i,j)$(ord(j)=orn(r)), y(i,j,k,r))) =E= 0;
It works without NB19 and NB20 and it works without NB8 and NB9 but it won´t work with all four of them (which is necessary for my case).
I really don´t understand why because in NB8 I say that i is the origin of my request and the binary variables shall be 1 and in NB9 I say that i is the destination of my request and the binary variables shall be zero (same with NB9 and NB20 basically).
Therefore I don´t get why the Process Log tells me that the Problem is integer infeasible.
Maybe some of you had similar problems and are able to help me without the need of looking at the whole code of my problem.
Thanks in advance
Tomac
I have tried a lot but I won´t get this part of my constraints to work.
NB8(r).. sum(k, sum((i,j)$(ord(i)=orn(r)), y(i,j,k,r))) =E= 1 ;
NB19(r).. sum(k, sum((i,j)$(ord(i)=de(r)), y(i,j,k,r))) =E= 0;
NB9(r).. sum(k, sum((i,j)$(ord(j)=de(r)), y(i,j,k,r))) =E= 1 ;
NB20(r).. sum(k, sum((i,j)$(ord(j)=orn(r)), y(i,j,k,r))) =E= 0;
It works without NB19 and NB20 and it works without NB8 and NB9 but it won´t work with all four of them (which is necessary for my case).
I really don´t understand why because in NB8 I say that i is the origin of my request and the binary variables shall be 1 and in NB9 I say that i is the destination of my request and the binary variables shall be zero (same with NB9 and NB20 basically).
Therefore I don´t get why the Process Log tells me that the Problem is integer infeasible.
Maybe some of you had similar problems and are able to help me without the need of looking at the whole code of my problem.
Thanks in advance
Tomac