I am trying to solve minimization problem with these conditions. Given all pair of n users, I want to minimize all f(A) - f(B) pairs for distinct n users. Since I only need the difference, it will be absolute value of f(A) - f(B) for all pairs. f(A) is an integer value at time t and this value is a summation of f(A) at time t-1 and absolute value of t^ - c. t^ is what I want to minimize and c will be an integer value).
Pairwise set is chosen by n choose 2 (nC2). Is their any solution that I can use to solve this problem? Also, can I model this problem to be a minimization problem which is a summation of all f(A) - f(B) for distinct pairs?