Hey, I need help finding a solution for grouping boxes together as can be seen underneath. Atm the solution uses Wallacei for GA, giving the fitness of the distance between all boxes, calculated as in picture 2. For collision the script runs a check to see any of the boxes overlap, and then gives the fitness function a penalty. The solution is capable of producing a working result with anything from 4 boxes and down, however, when the boxes increase the solution either dosent care about collision or dosen’t move them together. Do any of you have an idea on how improve any of the parts so that it will be able to handle more boxes?
Is there maybe a way to first start with two rectangles, put them together, then try to fit a third on the two, and so on, so the GA only focuses on one rectangle at a time?
Can’t imagine this could be much use for an urban design exercise (i’m assuming the @Anders3 was doing?), because you can’t control at all where pieces will be placed
Yee, we need to be able to pick the location for the boxes, which till now have been done by a ga, so the main issue is the complexity of the solution space when the boxes increase