feat: add factory simulation demo with maintenance optimisation#215
feat: add factory simulation demo with maintenance optimisation#215
Conversation
Co-authored-by: toby-coleman <13170610+toby-coleman@users.noreply.github.com>
Co-authored-by: toby-coleman <13170610+toby-coleman@users.noreply.github.com>
toby-coleman
left a comment
There was a problem hiding this comment.
@copilot Include a Jupyter notebook as well (it could import Components from factory_simulation.py). It should be in a similar format to the other demo notebooks, and be referenced in the mkdocs yaml to publish as documentation. Include a mermaid diagram of the process that you built.
Co-authored-by: toby-coleman <13170610+toby-coleman@users.noreply.github.com>
Added in 52ac46a. The notebook |
Summary
New demo simulating a factory with 5 machines over 365 days. Each machine has sigmoid-based breakdown probability, configurable proactive maintenance intervals, and fixed repair downtime. Includes a tuner config to optimise maintenance schedules for maximum output, a Jupyter notebook for interactive exploration, and a mermaid process diagram.
Changes
Iteratorcomponent drives the simulation for a configurable number of daysMachinecomponent (5 instances with distinct parameters):1 / (1 + exp(-k * (days_since_maintenance - midpoint)))— differentkandmidpointper machineFactorycomponent aggregates daily output across all machines into cumulative totalfactory-simulation.yamlwires the process and defines aTunerconfig optimising each machine'smaintenance_interval(range 5–60 days) to maximisetotal_valuebuild_process_spec()helper constructs theProcessSpecprogrammatically for use withProcessBuilderorTunerfactory-simulation.ipynbJupyter notebook that imports components fromfactory_simulation.py, builds the process, includes a mermaid diagram (static image + dynamicMermaidDiagram.from_process()generation), runs the simulation with results/efficiency metrics, and explains the optimisation setupmkdocs.yamlupdated to include the notebook under Demos > Fundamentals > Factory simulation✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.