Update app.py
Browse files
app.py
CHANGED
|
@@ -366,20 +366,9 @@ else:
|
|
| 366 |
st.success("**Your single, most important goal is to: Minimize the total cost for your position in the supply chain.**")
|
| 367 |
st.markdown("You get costs from two things every week:")
|
| 368 |
st.markdown(f"""
|
| 369 |
-
- **Holding Inventory:** **${HOLDING_COST:,.2f} per unit per week
|
| 370 |
-
- **Backlog (Unfilled Orders):** **${BACKLOG_COST:,.2f} per unit per week
|
| 371 |
""")
|
| 372 |
-
with st.expander("Click to see a cost calculation example"):
|
| 373 |
-
st.markdown(f"""
|
| 374 |
-
Imagine at the end of Week 5, your dashboard shows:
|
| 375 |
-
- `Current Inventory: 20`
|
| 376 |
-
- `Current Backlog: 3`
|
| 377 |
-
Your cost for Week 5 would be:
|
| 378 |
-
- `(20 units of Inventory * ${HOLDING_COST:,.2f})` = $10.00
|
| 379 |
-
- `(3 units of Backlog * ${BACKLOG_COST:,.2f})` = $3.00
|
| 380 |
-
- **Total Weekly Cost:** = **$13.00**
|
| 381 |
-
Your goal is to keep this number as low as possible, every week.
|
| 382 |
-
""")
|
| 383 |
|
| 384 |
st.subheader("2. Your Role: The Distributor")
|
| 385 |
st.markdown("""
|
|
@@ -404,13 +393,7 @@ else:
|
|
| 404 |
**Conclusion:** You must always think 3 weeks ahead. The order you place in Week 10 will not help you until Week 13.
|
| 405 |
""")
|
| 406 |
|
| 407 |
-
st.subheader("4.
|
| 408 |
-
st.markdown("""
|
| 409 |
-
The "Bullwhip Effect" is the main challenge of this game. It describes how small, normal changes in customer demand (at the Retailer) get **amplified** into huge, chaotic swings in orders as they move up the supply chain.
|
| 410 |
-
This often leads to a cycle of **panic ordering** (ordering way too much because you are out of stock) followed by a **massive pile-up of inventory** (when all your late orders finally arrive). This cycle is extremely expensive. Your goal is to avoid it by ordering smoothly.
|
| 411 |
-
""")
|
| 412 |
-
|
| 413 |
-
st.subheader("5. How Each Week Works (Your Task)")
|
| 414 |
st.markdown(f"""
|
| 415 |
Your main job is simple: place one order each week.
|
| 416 |
**A) At the start of every week, the system automatically does 3 things:**
|
|
|
|
| 366 |
st.success("**Your single, most important goal is to: Minimize the total cost for your position in the supply chain.**")
|
| 367 |
st.markdown("You get costs from two things every week:")
|
| 368 |
st.markdown(f"""
|
| 369 |
+
- **Holding Inventory:** **${HOLDING_COST:,.2f} per unit per week.
|
| 370 |
+
- **Backlog (Unfilled Orders):** **${BACKLOG_COST:,.2f} per unit per week.
|
| 371 |
""")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 372 |
|
| 373 |
st.subheader("2. Your Role: The Distributor")
|
| 374 |
st.markdown("""
|
|
|
|
| 393 |
**Conclusion:** You must always think 3 weeks ahead. The order you place in Week 10 will not help you until Week 13.
|
| 394 |
""")
|
| 395 |
|
| 396 |
+
st.subheader("4. How Each Week Works (Your Task)")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 397 |
st.markdown(f"""
|
| 398 |
Your main job is simple: place one order each week.
|
| 399 |
**A) At the start of every week, the system automatically does 3 things:**
|