Skip to content

This program simulates work of the shop merchandiser and track all of his moves

Notifications You must be signed in to change notification settings

Bn1knb/Shop-Tracking-Simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shop Tracking Simulation


This program simulates work of the shop merchandiser and track all of his moves.

The first solution about paking items on the shelf (in our case 2D bin packing problem) is to use shelf algorithm wich is more preferable for perfomance at my point of view.

Technology stack:

  • Spring boot
  • Google Guava lib
  • Spring data JPA
    1. Database:
    • Postgresql
    • Liqubase
    • Hibernate envers
      Logging:
    • Log4j
    • SL4j
      Spicing:
    • Lombok
      Testing:
    • JUnit 5
    • Mockito
      CI CD tools used:
    • Jenkins
    • SonarQube
      Documentation:
    • Swagger

The algorithm i used in my case is customised NFDH (Next Fit Decreasing High) packing algorithm:

  1. For each rectangle in the list of strings to pack:
    1. If the rectangle does not fit in the current shelf:
      1. Close the current shelf.
      2. Open a new shelf with self height 0 and position of previous shelf level.
    2. Add the rectangle to the current shelf.
      1. If the rectangle’s height is greater than the shelf’s height:
        1. Set the shelf height to the rectangle’s height.

About

This program simulates work of the shop merchandiser and track all of his moves

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages