GithubHelp home page GithubHelp logo

samirsaci / container-optimization Goto Github PK

View Code? Open in Web Editor NEW
20.0 1.0 9.0 580 KB

Containers Loading Optimization with Python

Home Page: https://towardsdatascience.com/maximize-the-loading-capacity-of-a-sea-container-to-reduce-your-shipping-costs-with-python-8cc02c9725a7

Jupyter Notebook 100.00%
supply-chain supply-chain-management transportation container-loading-problem python

container-optimization's Introduction

Containers Loading Optimization with Python 📦

How can we use heuristic algorithms to find the right strategy to load a maximum number of pallets in a sea container?

Youtube Video

Find in the link below a short animated explained video to understand the concept behind this solution

Explainer Video Link

Article

In this Article, we will build a container loading optimization model using a heuristic method from a Python library.

Experiment

Scenario

You need to load in a 40' Container

  • 20 European Pallets 80 x 120 (cm)
  • 4 North American Pallets 100 x 120 (cm)

Tentative 1: The Intuitive solution

This is an image

Results: 20/20 Euro Pallets loaded, 2/4 American pallets loaded. You need another container for the two remaining pallets.

Tentative 2: The Optimization Algorithm Result

This is an image

Results: 20/20 Euro Pallets loaded, 4/4 American pallets loaded. You don’t need another container.

Code

This repository code you will find all the code used to explain the concepts presented in the article.

About me 🤓

Senior Supply Chain Engineer with an international experience working on Logistics and Transportation operations.
Have a look at my portfolio: Data Science for Supply Chain Portfolio
Data Science for Warehousing📦, Transportation 🚚 and Demand Forecasting 📈

container-optimization's People

Contributors

samirsaci avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

container-optimization's Issues

I have little different input I have 3 type of pallets

Can you please fit these parameters in the Algorithm?
I tried it's not giving me actual result
Thanks

-- 115 x 300 cm

bx = 0
by = 0
pal_300 = [115 + bx, 300 + by]

-- 115 x 330 cm

bx = 0
by = 0
pal_330 = [115 + bx, 330 + by]

-- 115 x 360 cm

bx = 0
by = 0
pal_360 = [115 + bx, 360 + by]

Number of pallets

n_300 = 9
n_330 = 12
n_360 = 15

bins40 = [(236, 1190)]

To enable input from a CSV file

Hi @samirsaci

I was wondering if we could have n_812 and n_1012 picked up from a CSV file? In real life scenarios I'd think businesses would like to have the ability to have mass input of the dimensions and number of pallets into the algo? Something like this:

containerinfo

It must be in format to be picked up for counting,
for eg. n_812 = 2, n_2025 = 1
from above pic

Please let me know what you think. I'd like to contribute on this, thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.