delta1epsilon / boxpacking Goto Github PK
View Code? Open in Web Editor NEWR package for solving three-dimensional bin packing problem
Home Page: https://delta1epsilon.github.io/2016/3D-bin-packing-problem-in-R/
R package for solving three-dimensional bin packing problem
Home Page: https://delta1epsilon.github.io/2016/3D-bin-packing-problem-in-R/
first, thank you for your great works.
during my using of the program, i found a bug need to fix. But i am not familiar with R and also do not know how to update the code on github.
the bug is that if you set all box to [1 1 1], which can full fill the container, then the ems_list is empty. A error is reported when the ems_list[i] is executed.
it is easy to fix up the error by adding a code to the packBoxes.R as follow:
con_EMS <- packing_solution[[container_ind]][[1]]@ems
if (isEmpty(ems_list))
{break;
}
con_EMS <- PrioritizeEMS(con_EMS)
Hello, In using both of the tutorials that are provided as examples and executing the boxpacker with plotSolution set to true, no 3D visualizations are appearing in the plot field or anywhere else. I'm currently using R 4.02 and running it on the Rcloud studio web app, thanks in advance.
Not working on the code below
'''
c1 <- Container(length = 2, height = 2, width = 2)
c2 <- Container(length = 2, height = 2, width = 2)
b1 <- Box(length = 0.5, height = 0.5, width = 0.5)
b2 <- Box(length = 1, height = 0.5, width = 0.5)
b3 <- Box(length = 0.5, height = 0.5, width = 0.5)
b4 <- Box(length = 0.5, height = 0.5, width = 0.5)
b5 <- Box(length = 0.5, height = 0.5, width = 0.5)
b6 <- Box(length = 2, height = 0.5, width = 0.5)
b7 <- Box(length = 1, height = 0.5, width = 0.5)
b8 <- Box(length = 1, height = 0.5, width = 0.5)
b9 <- Box(length = 0.5, height = 0.5, width = 0.5)
b10 <- Box(length = 0.5, height = 0.5, width = 0.5)
b11 <- Box(length = 1.5, height = 1.5, width = 1.5)
b12 <- Box(length = 1.5, height = 0.5, width = 0.5)
b13 <- Box(length = 1, height = 1, width = 1)
b14 <- Box(length = 1, height = 1, width = 1)
boxes <- list(b1, b2, b3, b4, b5, b6, b7, b8, b9, b10, b11, b12, b13, b14)
containers <- list(c1, c2)
solution <-
PerformBoxPacking(containers = containers,
boxes = boxes,
n_iter = 4,
population_size = 30,
elitism_size = 5,
crossover_prob = 0.5,
mutation_prob = 0.5,
verbose = TRUE,
plotSolution = TRUE
)
'''
Dear Delta1epsilon,
I would love to use this package but unfortunately i keep getting errors during the installation.
Can you help me?
The errors I get are:
ERROR: dependency 'fastmap' is not available for package 'shiny'
AND:
Binaries will be installed
Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘fastmap’
These will not be installed
Do I need extra programs to run this package? (Which ones?)
Thank you for your help in advance!
Best regards
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.