-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weight constraint #43
Comments
Hi There are two approaches depending on what you are looking for: 1 - Modify a packer to check the bins remaining weight and skip the rectangles that won't fit. The problem with this approach is that if the weigh of a rectangle isn't linked to its area, you could end with bins that have reached the max weight but with a lot of unused space. 2 - Create a new packing algorithm or modify one, so it takes the remaining weight on the bin and the weight of the rectangle in consideration when assigning fitness values. A more complex solution that could give better results with a well chosen fitness function Hope it helps |
Hi, I have already assigned a weight argument to function Rectangle. I better go with 2nd option, I first though I could made some changes here:
I added comment where I should modify. RuntimeError: deque mutated during iteration Maybe should I do it in a different way ? modifying direclty in fitness function ? But i need to better understand what are inside open_bins ? |
Hi, I found out a way to do it ! you can close the issue ! thank you anyway. |
Hello WBP20, Do you still have the modified algorithm that takes account weight? Thanks! |
same dwag we really need you rn WBP20 |
Hi,
Thank you for sharing us this work, this is very helpfull for my needs.
I want to add a weight contraint, that needs to modify your code:
But I can't find where I should implant that.. if you can give me some clues I could work on it.
Thank you in advance
The text was updated successfully, but these errors were encountered: