Giter VIP home page Giter VIP logo

online_bin_packing's Introduction

Multi Dimensional Online Bin Packing with Neural Networks

Description

The goal of this project is to compare a Neural Network algorithm with the First Fit algorithm on a version of the multi-dimensional online bin packing problem.

The end goal is met with a combination of many smaller programs - Unix style.

TLDR

make
cp ./octave_header.txt ./train.txt
(./generate -l 5 -r 0.2 -d 2 && cat) | ./annotate -d 2 -f ./train.txt
# adjust the header of train.txt

For manual annotation.

OR

./create_training_set.sh ./train.txt

For auto annotation. (Grab a coffee for this one. Can last from 5 - 30 min)

cd octave
cp ../train.txt ./
octave-cli
main

Can run for a while. Around 30 min with the default settings.

cd ..
tail -n +6 ./octave/X_opt.txt > Xopt.txt
tail -n +6 ./octave/X_pred.txt > Xpred.txt
./evaluate -t ./Xopt.txt -p ./Xpred.txt -d 2 -l 12

generate

generate

annotate

annotate

create_training_set.sh

create

Neural Network calculation with Octave

octave

evaluate

evaluate

Current results

The current implementation uses only one hidden layer. While I expected it to perform worse than First Fit, the actual result is much worse than that.

Future plans

Switch to python (theano) for experimenting. Use a deep convolutional neural network. Resources and tasks will naturally fit into that scheme. I expect much better results from it.

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.