My goal is to find a vector $c \subset \mathbb{R}^4$ that is as close to the vector $A \subset \mathbb{R}^4$ as possible while maintaining a constraint regarding ratios of elements of $c$, specifically $\frac{3}{4} \leq \frac{c[1]+c[2]}{c[3]+c[4]} \leq \frac{3}{2}$. I have no formal education on mathematical optimization but from what I do know a LP seemed like a good first stab.
With that in mind I came up with the following LP. It is not in standard form as that is much longer and the LP solvers that I was trying seemed to be ok with it as is.
$$min\ c^TA\ s.t.$$
$$2c[1]+2c[2]-3c[3]-3c[4] \leq 0$$
$$-4c[1]-4c[2]+3c[3]+3c[4] \leq 0$$
So this didn't work, and after some poking around it was brought to my attention that because $c$ is unbounded it can be brought to negative infinity.
My solution to this is to add a length constraint, which would turn this into a QCQP with a linear objective function and a quadratic constraint looking something like the following.
$$min\ c^TA\ s.t.$$
$$2c[1]+2c[2]-3c[3]-3c[4] \leq 0$$
$$-4c[1]-4c[2]+3c[3]+3c[4] \leq 0$$
$$||c||^2 = 1$$
My question is whether this is the correct direction to be heading, and if so is there any suggestions (and possibly sample code) for solvers that I can use. Any input would be greatly appreciated.