Code Monkey home page Code Monkey logo

container-loading-problem's Introduction

A hybrid multi-objective genetic algorithm for the container loading problem

This repository showcases a unique approach to solving the container loading problem, a challenge commonly faced in industries related to shipping and storage. Here, we aim to pack a container as efficiently as possible, focusing on fitting the most boxes, maximizing the space used, and ensuring the packed items' total value is as high as possible.

We use a diploid chromosome structure to better organize and decide on the arrangement and orientation of boxes. This method is enhanced by a tweaked version of an existing packing algorithm, known as DBLF, which helps us place boxes in the most effective way.

By combining advanced genetic algorithms with a refined packing technique, we tackle the complex issue of packing boxes into a single container, striving for optimal space usage and value maximization.

For a detailed description of the methods and background have a look at the project report.

Getting Started

To get started with this project, clone this repository to your local machine.

Ensure you have Python installed on your system. This project is tested with Python 3.7+. You can check your Python version by running:

python --version

Install the required Python packages:

pip install -r requirements.txt

Creating a New Dataset

cd path/to/your/project
python create_dataset.py

Running the Algorithm

To run the packing algorithm with the provided dataset (input.json), execute the main.py script:

python main.py

The script will proceed to execute the packing algorithm, saving the visualizations as below.

3D Visualization of the True Solution True Solution

3D Projection of one of the Rank1 Solutions Rank 1 solution

Variation of Average Fitness Values over Generations Fitness Variation

Visualization of the Pareto Front Pareto Front

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

License

Distributed under the MIT License.

Contact

Nivedha Ramesh - [email protected]

container-loading-problem's People

Contributors

nivedha-ramesh avatar

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.