B Binary variables (Absolute values)

Rev. Cheeseman
Messages
353
Reaction score
21
TL;DR Summary
The value is from 0 to 1, but what do these 2s represent?
Hello,

According to https://www.fico.com/fico-xpress-op.../mipform/dhtml/chap2s1.html?scroll=ssecabsval the formula for absolute values are :

y = | x1 - x2| for two variables x1, x2 with 0 ≤ xi ≤ U

Introduce binary variables d1, d2 to mean
d1 : 1 if x1 - x2 is the positive value
d2 : 1 if x2 - x1 is the positive value

MIP formulation
0 ≤ xi ≤ U [1.i]
0 ≤ y - (x1-x2) ≤ 2 · U · d2 [2]
0 ≤ y - (x2-x1) ≤ 2 · U · d1 [3]
d1 + d2 = 1 [4]

Notice the bolded 2s above in the MIP formulation section, what do these 2s represent? I thought the range of the value is just 0 to 1.
 
Physics news on Phys.org
Consider <br /> y - (x_1 - x_2) = |x_1 - x_2| - (x_1-x_2) = \begin{cases}<br /> 0 &amp; x_1 \geq x_2\quad (d_2 = 0)\\<br /> 2|x_1 - x_2| &amp; x_1 &lt; x_2\quad (d_2 = 1).\end{cases} Therefore 0 \leq y - (x_1 - x_2) \leq 2Ud_2.
 
pasmith said:
Consider <br /> y - (x_1 - x_2) = |x_1 - x_2| - (x_1-x_2) = \begin{cases}<br /> 0 &amp; x_1 \geq x_2\quad (d_2 = 0)\\<br /> 2|x_1 - x_2| &amp; x_1 &lt; x_2\quad (d_2 = 1).\end{cases} Therefore 0 \leq y - (x_1 - x_2) \leq 2Ud_2.

Ok, I'm sorry if I sounds ignorant but the range of value is still 0 to 1, and not from 0 to 1 and then 2. Correct?
 
Namaste & G'day Postulate: A strongly-knit team wins on average over a less knit one Fundamentals: - Two teams face off with 4 players each - A polo team consists of players that each have assigned to them a measure of their ability (called a "Handicap" - 10 is highest, -2 lowest) I attempted to measure close-knitness of a team in terms of standard deviation (SD) of handicaps of the players. Failure: It turns out that, more often than, a team with a higher SD wins. In my language, that...
Hi all, I've been a roulette player for more than 10 years (although I took time off here and there) and it's only now that I'm trying to understand the physics of the game. Basically my strategy in roulette is to divide the wheel roughly into two halves (let's call them A and B). My theory is that in roulette there will invariably be variance. In other words, if A comes up 5 times in a row, B will be due to come up soon. However I have been proven wrong many times, and I have seen some...
Back
Top