Optimal Control of Greenhouse Cultivation