Seol mar théacs é seo: Algebraic methods for optimization problems