Many integer programming programs as the following needed for Kemeny ranking
minimiser∑i,j∈Aωi,jxi,j+ωj,ixj,isous les contraintesxi,j+xj,i=1,∀i≠jxi,j+xj,k+xk,i≥1,∀i≠j≠k≠i
I want to construct a function wich takes the vector or the list ω and return the solution. But to construct such a function iot will be safer for me not to be obliged to assign on variable with a index to all two indexed variables.
Is there a way ?