Solving the production problem