Python में Discrete Event Simulation
Diogo Costa (PhD, MSc)
Adjunct Professor, University of Saskatchewan, Canada & CEO of ImpactBLUE-Scientific
यह मदद करता है:
सैंपल बढ़ने पर पैरामीटर स्पेस



उदाहरण: Gaussian (normal) वितरण पर आधारित इवेंट जेनरेटर के आउटपुट रेंज को समझने के लिए Monte Carlo रन
import random as rd
import numpy as np
import matplotlib.pyplot as plt
# Generating samples: Gaussian distribution
duration_sample = [rd.gauss(25, 5)
for i in range(5000)]
# Plotting
plt.scatter(duration_sample, np.r_[0:5000],
marker='.', c=duration_sample, cmap='CMRmap')
plt.xlabel("Duration [min]")
plt.ylabel("Monte Carlo Runs")
प्लॉट के परिणाम

मूल उद्देश्य

हर प्रक्रिया की अवधि में अनिश्चितता सिस्टम में propagate होती है
इससे अलग-अलग मॉडल trajectories मिलती हैं
इसे Response Envelope कहा जाता है
उदाहरण:
n_trajectories = 50
process_1 = {"Name": "Raw_material",
"OperationTime": 20,
"MaxDelayTimePercent": 10}
process_2 = {"Name": "Unloading",
"OperationTime": 15,
"MaxDelayTimePercent": 5}

Python में Discrete Event Simulation