GithubHelp home page GithubHelp logo

3dbinpacking's Introduction

3DBinPacking

To package bin in Rear compartment with python.

問題:

車箱擺放大小不同行李箱的狀況(例:XXL, XL, L, M, S…). 圖片一

思考:

1. 擬人法 : 模擬人的擺法,長邊先擺,靠邊擺,大的箱子先擺…
2. 貪心法: 優先擺大箱子(事實上擺小箱子可得最大填充率),箱子最長設為X方向,其次Y,其次Z
3. 可放置點: 每個放置點上測試箱子的每個方向是否可放入(考慮放入最省空間位置由基線控制!?)
4. 靠邊置放
5. 砌磚法: 强制X方向擺完才能擺Y方向,整個'平面'擺完才能昇高Z擺放
6. 模擬退火法: 最佳化(目前未考慮)
7. 改變順序: XXL->XL->L… => L->XXL->S…
8. 改變方向: L.W.H -> W.H.L…

程式:

  • Gui_BP.py
  • DrawBox.py
  • Packing3D.py
  • MyMath.py

說明:

1. 可放置點:
	* 如何增加/減少點

圖片一

圖片一

圖片一

	* Z->X->Y 優先

圖片一

2. 箱子所有可能擺放方向(考慮24種)

圖片一

	[ l, w, h],[ l, h, w],[ w, l, h],[ w, h, l],[ h, l, w],[ h, w, l]
	[ l,-w, h],[ l,-h, w],[ w,-l, h],[ w,-h, l],[ h,-l, w],[ h,-w, l]
	[-l, w, h],[-l, h, w],[-w, l, h],[-w, h, l],[-h, l, w],[-h, w, l] 
	[-l,-w, h],[-l,-h, w],[-w,-l, h],[-w,-h, l],[-h,-l, w],[-h,-w, l] 

3. 基線: 確保箱子->X->Y->Z放置

圖片一

圖片一

4. 干涉檢查: 
	*排除長方體所有不相交的狀況後,其他即為干涉

圖片一

說明影片

  • 車箱擺放計算原理

車箱擺放計算原理

  • 車箱擺放程式說明

車箱擺放程式說明

  • 車箱擺放程式執行

車箱擺放程式執行

3dbinpacking's People

Contributors

ecardjimmy 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.