solve optimisation problems arising in a variety of contexts involving simple polynomials on finite interval domains