Given $m$ constraints for 2 variables $x_1,x_2$ :
$d_ix_1 + e_ix_2 \leq b_i$ for $i = 1,...m$
need to create a linear program that finds the maximal radius of a circle such that all the points inside the circle are in the feasible range of the above constraints. The circle can be located anywhere -- not necessarily centered at the origin.
so I know the formula for distance between some $(x,y)$ and some $ax +by + c = 0$
then I have tried -
- $Maximal$ $R$ s.t
- $d_ix_1 + e_ix_2 \leq b_i$ for every $i$
- $R \leq |d_ix_1 + e_ix_2 - b_i| / {\sqrt{{e_i}^2 +{d_i}^2}}$ for every $i$
- $R \geq 0$
I know the standard linear program doesn't get absolute value function but obviously we can just have 2 inequalities to get rid of it.
I'm not sure if this is the correct answer.
furthermore, is it possible that for some constraints if will force the radius to be 0?