Dear all,
I am stuck in the formulation of an MILP problem, where I need to min |xi - x| (or minimise the absolute difference between each element in an array), where x = A*b.
There are two obstacles I have,
1. How to represent the objective in MILP/MIP friendly formation
2. How to linearize the absolute values
Ultimately, what i want to achieve is to make elements in x (A*b) as close to each other as possible. So the other way to represent it is sum_square(xi - x), but it also needs proper linearization before feeding to MILP solver.
I would really appreciate your help or suggestions.
Many thanks,
Kaitai