Hi, I am not sure if I understood well what you are trying to Minimize/solve. Here is a simple formulation, which gives piecewise solutions: Minimize[{X + Y, X <= Min[p/6 + q/2], Y <= (1 - p)/2 + 1 - q, p >= 0, q <= 1}, {p, q}]