Dear All:
I am trying to develop a AMPL ILP model to select some objects from a set of objects to maximize sum of rank of the value for each object:
maximize obj: sum {l in 1..T3} h[l]*(1-t[l]);
subject to rank1 {l in 1..T3,k in 1..T3}: g[l,k]+u[l]+u[k]-2<=z[l,k];
subject to rank2 {l in 1..T3,k in 1..T3}: u[l]>=z[l,k];
subject to rank3 {l in 1..T3,k in 1..T3}: u[k]>=z[l,k];
subject to rank4 {l in 1..T3,k in 1..T3}: g[l,k]>=z[k,l];
subject to rank5 {l in 1..T3}: h[l]=sum{k in 1..T3}z[l,k]+u[l];
Here t,g are binary parameters. g[l,k] is 1 if value for l is greater than k. t is also a binary parameter.
u,z are binary variables. z is 1 if u and g are 1. h is also variables represents the value of ranks. When I try to solve with CPLEX, it is showing integer infeasibility.
Any help would be highly appreciated.
Best Regards
Noor