Solving Bin Packaging problem by Genetic algorithm
- python3
- pygame
Task is to cover area of huge rectangle by limited number of smaller rectangles. Below is two examples of good and bad solution.
Main problem with euristic solution is overlay of boxes one to another. Solution of problem is putting boxes on top of each other. First, gen parameter is flag of turning box to 90 degr., second is level, where you want to put box, third left or right position of box in this level