कोर्स के अध्याय
प्रशिक्षण · ट्रैक 3. व्यवहार और आर्किटेक्चर · 6 में से अध्याय 3.5
3.5 सिमुलेशन 2:39
चरणों को अवधियां दें, एक रन चलाएं, फिर सौ, और परिणाम को एक सीमा से जांचें।
Holarch 1.27 दिखाता है।
आप क्या सीखेंगे
- किसी एक्शन की अवधि को निश्चित मान या वितरण के रूप में सेट करें
- एक Discrete Event सिमुलेशन चलाएं और टाइमलाइन पढ़ें
- एक Monte Carlo अध्ययन चलाएं और माध्य, फैलाव और 95वां पर्सेंटाइल पढ़ें
- कुल समय को किसी आवश्यकता की सीमा से एक आवश्यक संभावना पर जांचें
Rent a Bike के चरणों को अवधियां दें, जिनमें एक सामान्य वितरण भी हो, टाइमलाइन पर एक डिस्क्रीट-इवेंट सिमुलेशन चलाएं, Monte Carlo चलाएं, किराये के समय का फैलाव पढ़ें, और जांचें कि किराया एक समय सीमा के भीतर पूरा होने की कितनी संभावना है।
प्रोजेक्ट फ़ाइलें
- शुरुआती प्रोजेक्ट (.holarch.json; प्रोजेक्ट प्रबंधित करें → प्रोजेक्ट फ़ाइलें ▾ → प्रोजेक्ट आयात करें (.json)…)
- पूरा किया गया प्रोजेक्ट (.holarch.json; प्रोजेक्ट प्रबंधित करें → प्रोजेक्ट फ़ाइलें ▾ → प्रोजेक्ट आयात करें (.json)…)
वीडियो holarch.app से चलता है; गोपनीयता नीति देखें।
अभ्यास
इसे Holarch में CubeSat EO-1 डेमो प्रोजेक्ट पर स्वयं करें।
- अपना EO-1 डेमो प्रोजेक्ट खोलें, या उसे बनाएं: प्रोजेक्ट प्रबंधित करें → प्रोजेक्ट फ़ाइलें ▾ → नया डेमो प्रोजेक्ट → CubeSat (गाइडेड सिस्टम्स इंजीनियरिंग)।
- डेटाबेस में OPS.11 Receive Downlink (9 मिनट) चुनें और उसकी अवधि को
=triang.dist(8, 15, 9)मिनट पर सेट करें, उन पास के लिए जो कभी-कभी लंबे चलते हैं। - व्यवहार → सिम्युलेटर खोलें, रूट Action के रूप में OPS Run Nominal Imaging Pass चुनें, Discrete Event रहने दें और ⏩ अंत तक चलाएं दबाएं। कुल समय और टाइमलाइन पढ़ें।
- Monte Carlo पर स्विच करें और ▶ मोंटे कार्लो चलाएं दबाएं। वितरण टैब पर कुल समय का माध्य और फैलाव पढ़ें।
- Requirement से जांचें… पर क्लिक करें, कुल समय रहने दें, ≤ अधिक से अधिक
100मिनट, आवश्यकता 6.5 Planning Cycle Time और आवश्यक संभावना (%)95सेट करें। P5 / P50 / P95, P(meet) और परिणाम पढ़ें। - जांचे गए चरण-दर-चरण अभ्यास के लिए ट्यूटोरियल 8 Simulate the Functional Flow चलाएं (सहायता → ट्यूटोरियल)।
आपका काम तब पूरा है जब जांच 95% पर 6.5 Planning Cycle Time के लिए P(meet) और Pass या Fail परिणाम दिखाती है।
स्वयं जांचें
- किसी चरण को निश्चित अवधि के बजाय वितरण क्यों दें?
- एक Discrete Event रन आपको ऐसा क्या बताता है जो Monte Carlo नहीं बताता?
- माध्य के बजाय 95वें पर्सेंटाइल के सापेक्ष जांच क्यों करें?
- परिणाम दर्ज करें मॉडल में क्या बदलता है?
उत्तर दिखाएं
किसी चरण को निश्चित अवधि के बजाय वितरण क्यों दें?
वास्तविक अवधियां बदलती रहती हैं। हर निष्पादन पर वितरण से एक नमूना लिया जाता है, इसलिए Monte Carlo कुल समय का फैलाव दिखाता है, एक संख्या नहीं।
एक Discrete Event रन आपको ऐसा क्या बताता है जो Monte Carlo नहीं बताता?
यह टाइमलाइन पर एक ही रन चलाता है, ताकि आप चरणों का क्रम, समानांतर शाखाएं और किसी निर्णय ने कौन-सी शाखा ली, यह देख सकें। Monte Carlo आंकड़ों के लिए रन को कई बार दोहराता है।
माध्य के बजाय 95वें पर्सेंटाइल के सापेक्ष जांच क्यों करें?
आधे रन माध्य से अधिक समय लेते हैं। जो सीमा 100 में से 95 रन में पूरी होनी चाहिए, उसे उस समय से आंका जाता है जिसके नीचे वे 95 रहते हैं, जिसे P(meet) और P95 बताते हैं।
परिणाम दर्ज करें मॉडल में क्या बदलता है?
यह Measure का Projected Value (या Value) माध्य पर सेट करता है और आवश्यकता को सत्यापित करने वाले Test Case को पास हुए या विफल पर सेट करता है। आप पहले बदलावों की समीक्षा करते हैं, और वे एक undo चरण के रूप में लागू होते हैं।
और पढ़ें
ट्रांसक्रिप्ट
ट्रांसक्रिप्ट दिखाएं (नरेशन और स्क्रीन पर क्या है)
Introduction
Welcome back. The action diagram of Rent a Bike says what happens. With durations, Holarch can tell you how long it takes.
In this chapter you put numbers on the steps and simulate them.
Durations
Open Rent a Bike as an action diagram again. Select Identify Rider and set its duration. Riders take different times to find their card, so use a distribution: equals norm dot dist, four, one: a normal distribution with a mean of four seconds and a standard deviation of one.
On screen: Database → F.1 → Open in ▾ → Action Diagram; Identify Rider → Duration.
Check Account depends on the network: a normal distribution around two seconds. Unlocking the bay and showing its number take one second each.
On screen: Check Account, Unlock Bay, Show Bay Number.
Starting the rental takes half a second, and relocking the bay, on the rare branch, one and a half.
On screen: Start Rental, Relock Bay.
One run
Open Behavior, then Simulator, and choose Rent a Bike as the root action. Discrete event mode plays one run on a timeline.
On screen: Behavior → Simulator → root F.1 → Discrete Event → Run to End.
Each step appears when it runs, the two parallel branches side by side, and the decision takes one of its branches with the probability you gave it.
On screen: The timeline.
A hundred runs
One run is one sample. Switch to Monte Carlo and run it: a hundred runs, each drawing every duration from its distribution and every decision from its probabilities.
On screen: Monte Carlo → Run.
The statistics give the mean rental time and its spread, and the 95th percentile: the time that ninety-five rentals in a hundred stay under. A commitment to riders needs that number, not the average.
On screen: Statistics and the time chart.
Check against a limit
Is that fast enough? Choose Check Against Requirement. Compare the total time with a limit: at most ten seconds for the whole rental at the kiosk, met in at least ninety-five runs in a hundred.
On screen: Check Against Requirement → ≤ 10 Seconds, 95 %.
The dialog reports the probability of meeting the limit from the hundred runs, and whether it clears the ninety-five percent you asked for. Record Result can save the check on the model.
On screen: The result.
Recap
Let's recap. You gave the steps durations, played one run on a timeline, ran Monte Carlo, read the spread of rental times, and checked the chance of meeting a limit.
Next, the dock's mass: a budget, and a technical performance measure to track it.