Anyone who can do constrained optimizations can solve for $R_1,\ldots,R_4$.
It turns out that implementing such a rectangular-check takes only a few lines
of code in any programming language.
The interesting part is now to interpret the results geometrically.
It takes some time, but in the end you will be delighted about the results.