Monte Carlo, event and agent simulations

Three assignments for Discrete Simulation: a Monte Carlo model looks for the cheapest ordering strategy for a warehouse, and an event-driven and an agent-based model measure how fast a furniture workshop handles orders.

Role
Solo assignments: model, simulation core, statistics, GUI
Period
02/2025 – 05/2025
Stack
  • Java

In short

  • 3 approaches: Monte Carlo, event-driven, agent-based
  • 95 % confidence interval on the main statistics
  • Parallel experiments in threads

The problem

Simulation answers questions you cannot simply calculate: which ordering strategy is cheapest with unreliable suppliers, and how many workers and workstations a workshop needs so that orders do not wait.

What I built

  • Monte Carlo with my own distribution generators, five strategies and JFreeChart charts
  • An event-driven simulation with an event calendar, live tables and statistics with 95% confidence intervals
  • An agent-based simulation of the same workshop with an animation
  • Experiments that run parameter combinations in parallel threads and write the results to CSV

Result

Three applications with a Swing GUI and charts. The core fails loudly when an event would run in the past, because a bug in a simulation hides easily without checks.

Looking for a backend developer or a similar app?

Send me a few lines. I reply within 2 working days.