- Create a virtualenv with
python -m virtualenv venv
- Activate the virtualenv (using appropriate script in venv/Scripts)
- Install dependencies with
pip install -r requirements.txt
- Place input parameters in
input.json
- Run
python main.py
- Output will be presented in
output.json
, statistics of the packing will be displayed on the terminal
To visualize your packing process, go to binpack-viewer.amith.ml and drag and drop the generated viz.json
file
❯ python main.py
Completed solving with 93.07% fill. (6.93% trim loss)
Generated 45 instructions after simplification.
Find results in output.json
Visualization output created as viz.json