Skip to content

Solving an item production scheduling problem with the help of mathematical optimization

Notifications You must be signed in to change notification settings

jmyrberg/production-scheduling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Item production scheduling

In this repository, mathematical optimization is used for solving an item production scheduling problem.

Problem description

When manufacturing items on a machine, the machine may consume varying amounts of electricity per hour, depending on the item that is being produced. The idea is to utilize this variation when scheduling the production of items. For example, it may make sense to produce high-consuming items to hours where the electricity price is expected to be low.

Given a realized production schedule of a machine in the past, we assess whether cost savings could've been achieved, if the schedule had been optimized.

The following three-step approach is used for solving the problem:

  1. Generate electricity forecast for the future
  2. Solve the problem as an MILP (mixed integer linear programming)
  3. Compare results with realized schedule

Code & files

Input data

  • items.csv: Electricity consumption for each item per 4-hour production block
  • prices.csv: Realized hourly electricity prices from 1.1.2014 -
  • schedule.csv: Realized production schedule for time period 29.9.2016 - 11.10.2016

Python files

  • data_exploration.py: Plotting input data and results
  • data_utils.py: Data loading and preprocessing
  • forecast.py: Electricity price forecast model
  • optimization.py: Production scheduling optimization model
  • model.py: Running the entire model and plotting results

Results

The following results can be obtained by simply running model.py.

Realized schedule

Realized schedule

Theoretical optimum model (100% electricity price forecast accuracy)

Theoretical optimum

MedianForecaster model

The electricity price forecast: MedianForecaster electricity price

Results: MedianForecaster

The results show that cost savings can be achieved even by using optimization, and a simple model for electricity price forecast.

About

Solving an item production scheduling problem with the help of mathematical optimization

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages