For a given binary decision variable $x[i,j,k]$ my goal is to get as dense results in terms of k for successive values of j. Distance of k value to be kept as close as possible throughout j values:
$d = \sum_{j=2}^n (|k\cdot x[1,j,k] - k\cdot x[1,j-1,k]) + |k\cdot x[1,n,k] - k\cdot x[1,1,k]| $
e.g $i = 1$
j | 1 2 3 4 5
k | 3 3 3 3 3 - is the optimal, d = 0
k | 5 4 4 5 4 - is good enough d = 4
k | 1 6 9 2 5 - not good d = 22
How is that even possible to add this in the objective function since absolute function is introduced and linearity is diminished?