Joint decision making for production and marketing