This repository contains the work for the Model-Based Development (4DT903) course at Linnaeus University.
The project focuses on solving real-world challenges in retail inventory management and logistics using a Model-Driven Engineering (MDE) approach.
Efficient retail restocking is essential for avoiding stockouts, reducing costs, and maintaining customer satisfaction.
Our system integrates Inventory Management and Logistics Management by automating processes such as:
- π¦ Order generation β creating restocking orders automatically based on store inventory.
- π Delivery scheduling β optimizing schedules while considering vehicle capacities and delivery windows.
- πΊοΈ Route optimization β generating efficient delivery routes to minimize travel time and costs.
The result: a system that improves efficiency, reduces manual effort, and ensures timely restocking.
The solution is designed using metamodels and transformations:
- MM1 β Retail Store Model: Captures store location, items, and delivery windows.
- MM2 β Order Management Model: Structured orders derived from inventory data.
- MM3 β Fleet Information Model: Data about delivery vehicles (capacity, availability).
- MM4 β Delivery Constraints Model: Combines orders + fleet data to define logistics rules.
- MM5 β Distance Matrix Model: Distance and travel time data (via API or simulation).
- MM6 β Routes Model: Optimized delivery routes generated by a routing tool.
- M2M: Model-to-Model transformations (e.g., inventory β orders, orders+fleet β constraints).
- M2T: Model-to-Text transformations (e.g., orders β JSON for APIs, routes β HTML visualization).
- T2M: Text-to-Model transformations (e.g., Maps API β Distance Matrix, Routing Tool output β Routes).

Figure 1: System architecture, showing models (MM1βMM6) and their transformations (M2M, M2T, T2M) leading to optimized delivery routes.
- Eclipse Modeling Framework (EMF) β for metamodels
- QVTo β for Model-to-Model transformations
- Acceleo β for Model-to-Text transformations
- Java β for Text-to-Model transformations and additional logic
- (Optional) Maps API & external Routing Optimization Tool
- Install Java 11+ and Eclipse IDE with:
- EMF (Eclipse Modeling Framework)
- QVT Operational (QVTo)
- Acceleo