{"id":32207528,"url":"https://github.com/gyang274/gbp","last_synced_at":"2026-02-23T05:02:18.121Z","repository":{"id":56937568,"uuid":"80146563","full_name":"gyang274/gbp","owner":"gyang274","description":"gbp: a bin packing problem solver - an r package solves 1d - 4d bin packing problem.","archived":false,"fork":false,"pushed_at":"2019-09-22T06:17:39.000Z","size":1816,"stargazers_count":34,"open_issues_count":5,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-12-09T22:25:15.875Z","etag":null,"topics":["3d","3d-bin-packing","3d-bin-packing-problem","cpp","packing-algorithm","r"],"latest_commit_sha":null,"homepage":"https://cran.r-project.org/package=gbp","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gyang274.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-26T19:19:26.000Z","updated_at":"2025-02-24T13:32:50.000Z","dependencies_parsed_at":"2022-08-21T07:20:40.139Z","dependency_job_id":null,"html_url":"https://github.com/gyang274/gbp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gyang274/gbp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gyang274%2Fgbp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gyang274%2Fgbp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gyang274%2Fgbp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gyang274%2Fgbp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gyang274","download_url":"https://codeload.github.com/gyang274/gbp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gyang274%2Fgbp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29738083,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T04:51:08.365Z","status":"ssl_error","status_checked_at":"2026-02-23T04:49:15.865Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["3d","3d-bin-packing","3d-bin-packing-problem","cpp","packing-algorithm","r"],"created_at":"2025-10-22T05:54:17.112Z","updated_at":"2026-02-23T05:02:18.116Z","avatar_url":"https://github.com/gyang274.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput:\n  md_document:\n    variant: markdown_github\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, echo = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"fig/README-\"\n)\n```\n\n# __gbp: A bin packing problem solver__\n\n## Overview\n\nBasic infrastructure and several algorithms for __1d - 4d bin packing problem__. This package provides a set of __c-level classes and solvers for 1d - 4d bin packing problem__, and __an r-level solver for 4d bin packing problem__, which is a wrapper over the c-level 4d bin packing problem solver. \n\nThe 4d bin packing problem solver aims to solve bin packing problem, a.k.a container loading problem, with an additional constraint on weight. Given a set of rectangular-shaped items, and a set of rectangular-shaped bins with weight limit, the solver looks for an orthogonal packing solution such that minimizes the number of bins and maximize volume utilization. Each rectangular-shaped item i = 1, .. , n is characterized by length l\\_i, depth d\\_i, height h\\_i, and weight w\\_i, and each rectangular-shaped bin j = 1, .. , m is specified similarly by length l\\_j, depth d\\_j, height h\\_j, and weight limit w\\_j. The item can be rotated into any orthogonal direction, and no further restrictions implied.\n\n## Vignettes\n\nA [vignettes](https://cran.r-project.org/web/packages/gbp/vignettes/gbp-vignette.html) that demonstrates the infrastructure and algorithms available from this r-package.\n\n## [Shiny App](https://gyang.shinyapps.io/gbp_app/)\n\nA [shiny application](https://gyang.shinyapps.io/gbp_app/) that demonstrates how to use __gbp__ function __bpp_solver__ in fulfilling the order packing process in business operations.\n\n## OpenCPU API\n\nAn example call to __gbp::bpp_solver__ when an OpenCPU server is running with package __gbp__ installed.\n\n```\ncurl http://localhost:8004/ocpu/library/gbp/R/bpp_solver/json -H \"Content-Type: application/json\" -d '{\"it\":[{\"oid\":1000001,\"sku\":\"A0A0A0\",\"l\":2.14,\"d\":3.58,\"h\":4.76,\"w\":243},{\"oid\":1000001,\"sku\":\"A0A0A1\",\"l\":7.24,\"d\":7.24,\"h\":2.58,\"w\":110},{\"oid\":1000001,\"sku\":\"A0A0A1\",\"l\":7.24,\"d\":7.24,\"h\":2.58,\"w\":110},{\"oid\":1000002,\"sku\":\"A0A0A0\",\"l\":2.14,\"d\":3.58,\"h\":4.76,\"w\":243},{\"oid\":1000002,\"sku\":\"A0A0A1\",\"l\":7.24,\"d\":7.24,\"h\":2.58,\"w\":110},{\"oid\":1000002,\"sku\":\"A0A0A1\",\"l\":7.24,\"d\":7.24,\"h\":2.58,\"w\":110},{\"oid\":1000002,\"sku\":\"A0A0A2\",\"l\":6,\"d\":6,\"h\":6,\"w\":235},{\"oid\":1000002,\"sku\":\"A0A0A3\",\"l\":4,\"d\":4,\"h\":4,\"w\":258}], \"bn\":[{\"id\":\"K0001\",\"l\":10,\"d\":10,\"h\":10},{\"id\":\"K0010\",\"l\":20,\"d\":20,\"h\":20}], \"wlmt\":800, \"wprecision\":1}'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgyang274%2Fgbp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgyang274%2Fgbp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgyang274%2Fgbp/lists"}