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 واضغط ▶ تشغيل 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. ما الذي يغيّره «تسجيل النتيجة» في النموذج؟

    يضبط القيمة المتوقعة (أو القيمة) لعنصر Measure على المتوسط، ويضبط حالة اختبار تتحقق من المتطلب على 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.