Linearizing and minimizing an absolute term
Posted: Mon Jun 17, 2019 5:00 pm
Hi,
If we want to linearize and minimize an absolute term like |A-B|, where A and B are free integer variables. How do I do it?
Also, if the term changed to |A-1| what is the linear model for that?
I have solved the second part:
A-1<= x
1-A>=x
X>=0,
Min x
Is this correct?.
If we want to linearize and minimize an absolute term like |A-B|, where A and B are free integer variables. How do I do it?
Also, if the term changed to |A-1| what is the linear model for that?
I have solved the second part:
A-1<= x
1-A>=x
X>=0,
Min x
Is this correct?.