Giter Site home page Giter Site logo

packmax's Introduction

PackMax

Simple python script that simulates the packaging of rectangular boxes of any size.

Table of contents

General info

This simple and intuitive script allows you to use the 3D bin-packing simulation in an easier way. By writing the right keyword you can launch a certain action (like create bin, add item, pack items,..).
You can find the algorithm and objects (Bin, Item, Item_List) in _3dbp.py, run text_based_script.py for a simple terminal UI and check examples directory if you want to see some examples about how can you use the code in your projects.
The algorithm doesn't offer the optimal solution sometimes but the average wasted space is below 5% which is pretty good (given that it's a NP hard problem).

Technologies

  • Python 3.8.3
  • Modules:
    • copy
    • math
    • vpython

Setup

Bin and Items dimensions need to be positive integers.
python text_based_script.py - to run the terminal UI

Purpose

This open source project is meant to provide an approximately optimal solution for the 3D bin packing problem.
It can be used for various things:

  • deposit space management
  • cargo vehicle space management (for now, there is no weight constraint)

Examples of use

You can see some example code in example scripts from examples directory.


But if you don't want to install the packages or to use the executable, you can represent the output data by yourself:
  • Use pen and paper (kind of weird and not environmentally friendly:), we don't recommend)
  • Use a 3D modeling web application (Example: SketchUp)
  • Use some unusual ways (lego pieces, cubic shapes)

Sources

The strategy is based on Erick Dube and Leon Reeves Kanavathy research Optimizing Three-Dimensional Bin Packing Through Simulation

packmax's People

Contributors

arch-cl0wn avatar exanos avatar

Watchers

 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.