Control of production-distribution systems with unknown inputs and system failures