Code Monkey home page Code Monkey logo

boxpacking's Introduction

πŸ‘‹ Hi! I'm Ihor Kovalyshyn.

πŸ”­ I build and operate Machine Learning systems. I'm interested in ML Systems Design, Generative AI, Productionizing ML, MLOps, and Software Architecture.


⚠ Support Ukraine! Real ways you can help Ukraine!

Ukraine

boxpacking's People

Contributors

delta1epsilon avatar ikovalyshyn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

boxpacking's Issues

reporting a bug

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)

3D visualization not occurring after using tutorial

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
'''

create containers

c1 <- Container(length = 2, height = 2, width = 2)
c2 <- Container(length = 2, height = 2, width = 2)

create boxes

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)

Box Packing

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
)
'''

Cannot install this package

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'

  • removing 'C:/Users/Eline/Documents/R/win-library/3.4/shiny'
    In R CMD INSTALL
    Error: Failed to install 'BoxPacking' from GitHub:
    (converted from warning) running command '"C:/PROGRA1/R/R-341.3/bin/x64/R" CMD INSTALL -l "C:\Users\myname\Documents\R\win-library\3.4" C:\Users\myname\AppData\Local\Temp\RtmpMr8FXy/downloaded_packages/shiny_1.4.0.tar.gz' had status 1

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

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.