Holarch
פרקי הקורס

הדרכה · מסלול 3. התנהגות וארכיטקטורה · פרק 3.5 מתוך 6

3.5 סימולציה 2:39

נותנים לשלבים משכי זמן, מריצים הרצה אחת ואז מאה, ובודקים את התוצאה מול מגבלה.

מציג את Holarch 1.27.

→ 3.4 ממשקים · כל הפרקים · 3.6 תקציבים ו-TPMs ←

מה תלמדו

  • להגדיר משך של פעולה כערך קבוע או כהתפלגות
  • להריץ סימולציית אירוע בדיד אחת ולקרוא את ציר הזמן
  • להריץ מחקר Monte Carlo ולקרוא את הממוצע, הפיזור והאחוזון ה-95
  • לבדוק את הזמן הכולל מול המגבלה של דרישה בהסתברות נדרשת

נותנים לשלבים של Rent a Bike משכי זמן, כולל התפלגות נורמלית, מריצים סימולציית אירועים בדידים אחת על ציר זמן, מריצים Monte Carlo, קוראים את פיזור זמני ההשכרה, ובודקים מה הסיכוי שהשכרה תסתיים בתוך מגבלת זמן.

קובצי פרויקט

  • פרויקט התחלה (.holarch.json; ניהול פרויקטים ← קובצי פרויקט ▾ ← ייבוא פרויקט (.json)…)
  • פרויקט גמור (.holarch.json; ניהול פרויקטים ← קובצי פרויקט ▾ ← ייבוא פרויקט (.json)…)

הסרטון מוצג מ-holarch.app; ראו את מדיניות הפרטיות.

תרגול

עשו זאת בעצמכם ב-Holarch, על פרויקט ההדגמה CubeSat EO-1.

  1. פותחים את פרויקט ההדגמה EO-1, או יוצרים אותו: ניהול פרויקטים ← קובצי פרויקט ▾ ← פרויקט הדגמה חדש ← CubeSat (הנדסת מערכות מודרכת).
  2. במסד הנתונים בוחרים את OPS.11 Receive Downlink ‏(9 דקות) ומגדירים את ה-משך שלה ל-=triang.dist(8, 15, 9) דקות, למעברים שלפעמים נמשכים זמן רב יותר.
  3. פותחים את התנהגות ← סימולטור, בוחרים את OPS Run Nominal Imaging Pass כ-Action שורש, משאירים אירוע בדיד ולוחצים על ⏩ הרצה עד הסוף. קוראים את זמן כולל ואת ציר הזמן.
  4. עוברים ל-Monte Carlo ולוחצים על ▶ הרצת מונטה קרלו. בכרטיסייה התפלגות קוראים את הממוצע ואת הפיזור של הזמן הכולל.
  5. לוחצים על בדיקה מול דרישה…, משאירים זמן כולל, מגדירים ≤ לכל היותר 100 דקות, את הדרישה 6.5 Planning Cycle Time ואת הסתברות נדרשת (%) 95. קוראים את P5 / P50 / P95, ‏P(meet) ואת תוצאה.
  6. להדרכה מודרכת עם בדיקה, מריצים את המדריך 8 Simulate the Functional Flow (עזרה ← מדריכים).

סיימתם כשהבדיקה מציגה P(meet) ותוצאת הצלחה או כשל עבור 6.5 Planning Cycle Time ב-95%.

בדיקה עצמית

  1. למה לתת לשלב התפלגות במקום משך קבוע?
  2. מה הרצה אחת של אירוע בדיד מגלה ש-Monte Carlo אינו מגלה?
  3. למה לבדוק מול האחוזון ה-95 ולא מול הממוצע?
  4. מה “תיעוד התוצאה” משנה במודל?
הצגת התשובות
  1. למה לתת לשלב התפלגות במקום משך קבוע?

    משכי זמן אמיתיים משתנים. התפלגות נדגמת בכל ביצוע, ולכן Monte Carlo מציג את הפיזור של הזמן הכולל, לא מספר אחד.

  2. מה הרצה אחת של אירוע בדיד מגלה ש-Monte Carlo אינו מגלה?

    היא מציגה הרצה אחת על ציר זמן, כך שרואים את סדר השלבים, את הענפים המקביליים ואיזה ענף החלטה בחרה. ‏Monte Carlo חוזר על ההרצה פעמים רבות לצורך סטטיסטיקה.

  3. למה לבדוק מול האחוזון ה-95 ולא מול הממוצע?

    מחצית מההרצות נמשכות יותר מהממוצע. מגבלה שחייבת להתקיים ב-95 הרצות מתוך 100 נשפטת לפי הזמן שאותן 95 נשארות מתחתיו, ואותו מדווחים P(meet) ו-P95.

  4. מה “תיעוד התוצאה” משנה במודל?

    הוא מגדיר את ה-Projected Value (או Value) של ה-Measure לממוצע, ומגדיר Test Case שמאמת את הדרישה ל-Passed או Failed. קודם סוקרים את השינויים, והם מוחלים כצעד ביטול אחד.

קריאה נוספת

תמליל

הצגת התמליל (הקריינות ומה שמוצג על המסך)

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.