GithubHelp home page GithubHelp logo

mrlution / rectilinearpackingproblemsolver Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 3.0 3.02 MB

This repository contains the code to solve rectilinear packing problem

License: BSD 3-Clause "New" or "Revised" License

Python 99.47% C 0.26% Shell 0.27%
nesting packing eda

rectilinearpackingproblemsolver's Introduction

Rectilinear Packing Problem Solver

Packing and layout problems are common in both engineering and non-engineering applications. In the Very Large Scale Integrated Circuit design, we often pack different IP Cores into a rectangular container. Usually, the IP Core is a rectilinear shape. To cut down the cost, we need to minimize the container. So the EDA software needs a fast and robust and high performance algorithm to solve the packing problem. Apart from EDA Software, many other industrial applications such as cloth cutting and newspaper layout are involved with this algorithm.

The term rectilinear means the interior angles of the packed blocks are either 90 degrees or 270 degrees. The container is usually a rectangle with a fixed width and unrestricted height. The algorithm will pack all the polygonal blocks into the container without overlapping, and generate a height as small as possible.

Requirements

mpi4py==3.0.3 Before you install mpi4py, you need to install a mpi software such as OpenMpi or Microsoft MPI.

pyclipper==1.2.0

Polygon3==3.0.8 When you install Polygon3, you must begin with a capital "P"

How to run

python main.py -d data_file.txt

look at data/polygon_area_etc_input_id.txt for data format

Result

This is an packing example. For our dataset, the average occupation rate is 85%.

How this work

NFP

Outter NFP is used to avoid overlap between objects. Inner NFP is used to ensure the objects in the bin.

Below left stratage

All Object is packed at the below left position.

Complex and big first stratage

Parallel computation

The computation of NFPs can be parallelized, we use MPI as the parallel computation tool.

More about this project

the "doc" folder contains docx and pptx files, they described this software in detail.

rectilinearpackingproblemsolver's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

egdon sxl6441

rectilinearpackingproblemsolver's Issues

How to nest a large number of parts?

suppose I have a large number of parts which need to be nested into equally same sized master panels? How to process the part data sets so that it can be integrated with your algorithm?

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.