गणितीय मॉडल: मुख्य प्रक्रियाएँ शामिल करना
आपने नीचे दिखाया गया processes नाम का dictionary बनाया है, जिसमें एक ऐसी कंपनी की सप्लाई-चेन ऑपरेशन के चरणों की जानकारी है जो मोबाइल फोन बनाती है.
processes = {
"Sourcing raw material": 5,
"Transport of raw material": 1,
"Manufacturing parts": 3,
"Assembling parts": 2,
"Selling products": 3,
}
आपका मॉडल discrete_model_build_phone() नाम के एक फंक्शन में सेव है और यह dictionary में दी गई प्रक्रियाओं को ध्यान में रखते हुए आपकी प्रोडक्शन लाइन को सिमुलेट करता है. मॉडल के इनपुट आर्ग्युमेंट (क्रम में) हैं:
processes: प्रक्रियाओं की जानकारी रखने वाला dictionarysimulation_time: रन की अवधि.
मॉडल में समय दिनों (days) में है.
पैकेज Maptlotlib.pyplot आपके लिए पहले से plt के रूप में लोड किया गया है.
यह अभ्यास पाठ्यक्रम का हिस्सा है
Python में Discrete Event Simulation
इंटरैक्टिव व्यावहारिक अभ्यास
इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।
# Add the new key-value pair to the processes dictionary
processes["____"] = ____
# Assign the simulation time
simulation_time = ____
# Run the model
time_all = ____(____)