Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible optimization's for Bin Packing #26

Open
vorasmit opened this issue Dec 25, 2023 · 0 comments
Open

Possible optimization's for Bin Packing #26

vorasmit opened this issue Dec 25, 2023 · 0 comments

Comments

@vorasmit
Copy link

vorasmit commented Dec 25, 2023

Items are packed as it is, without trying to rotate items for a better fit. Where rotation is allowed and bulk item quantities are there, permutations could be reduced just by rotating all items at once.

There is huge cost of shipping associated with inefficient packing

eg: Efficiency of 70.9% and 12.5% is received for the following case with two boxes.

items = create_items(
        {
            "item1": {
                "name": "euro_pallet",
                "quantity": 40,
                "width": 5,
                "hight": 3.94,
                "depth": 2.625,
                "weight": 40,
            }
        }
    )
    bins = create_bins(
        {
            "container1": {
                "name": "40_ft_container",
                "width": 40,
                "hight": 7.75,
                "depth": 8,
                "max_weight": 20000,
            }
        }
    )
    best_bins = get_best_bins(items, bins)
    print([bin.efficacy for bin in best_bins])

eg: Efficiency of 83.5% is received for the following case with one box just by switching width and height.

items = create_items(
        {
            "item1": {
                "name": "euro_pallet",
                "quantity": 40,
                "width": 3.94,
                "hight": 5,
                "depth": 2.625,
                "weight": 40,
            }
        }
    )
    bins = create_bins(
        {
            "container1": {
                "name": "40_ft_container",
                "width": 40,
                "hight": 7.75,
                "depth": 8,
                "max_weight": 20000,
            }
        }
    )
    best_bins = get_best_bins(items, bins)
    print([bin.efficacy for bin in best_bins])
    ```
    
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant