Skip to main content

Sample Code

This section contains a library for facilitating the process of programming a warehouse in python. The package is an integration of MySQL database with Python module. The idea in developing the package is for the researchers and academia working in supply chain area to have access to a pre-defined structure that they can work on.

The package consists of multiple modules, separated based on their role in the pick system. The package does not need installation and importing the Python files into the project will give the user the access to all modules and their functions. Although most of the functions in the package are completely new and were created by the authors, some utilize outsider packages. Packages such as NetworkX, Matplotlib, Google Ortools, and Gurobi can be named as a base function for some of the functions. This means that to get the full functionality of the package, some packages need to be installed.

The pick system package is designed in 6 main modules:

  1. graph: the graph module of package is responsible for creating a graph from the corresponding database
  2. whousedesigns: Warehouse Designs (simply referred in the package as whousedesigns) is responsible for warehouse designs based on the specified parameters.
  3. locap: Location Assigning Problem (simply referred in the package as locap) is responsible for assigning SKUs to warehouse Slots
  4. sample: the sample  module creates sample order, SKU, and line-item.
  5. batch: Pick Sequence (in the package will be referred as pickseq) module groups the pick lines into a single pick list.
  6. tsp: Traveling Salesman Problem or TSP module of package is responsible for generating pick paths using the pick list and graph.
  7. tlbx: a set of tools that can be utilized to get connected to the database.

A tutorial on how to use the sample code is attached to this page.

WODS and Sample Code Tutorial

How Comparing works in WODS