New method lets optimization work on twisted problems by re-aligning the coordinates. — Synthesis