Problem
I want to find a line that maximises the sum of perpendicular distances from a set of points to the line such that the line passes through a fixed given point.
I have tried formulating the problem as follows:
$$\max\frac{\Vert Aw+eb \Vert^2}{\Vert w \Vert^2}\text{ such that }cw+b=0$$
where:
A is a matrix containing the points
$w,b$ are parameters of the line
$c$ is the given point
$e$ is s matrix containing ones of appropriate dimensions
Can anyone please guide me as to how to can this optimisation problem be solved ? The rational function is really making me upset