-
Notifications
You must be signed in to change notification settings - Fork 21
About Solution.x_max and y_max in Irregular problem type #198
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
Comments
Hi,
It's easy to add x_min and y_min values inside the Solution class. The question is "is it useful?". Considering how the bin-packing-with-leftovers objective is currently defined, solutions almost always have x_min = 0 and y_min = 0.
I don't know. Are enough people interested in this to make it worth adding and maintaining such an option? |
Yes, it could be. If min represents the min coord of items in bin space as max does.
Yes. Most of concurrent tools always align result in the same corner or offer the ability to configure it. |
One possibility is to add a parameter to the Instance that indicates how the leftover is computed with the BinPackingWithLeftover objective: right/top/left/bottom rectangle, top-right/top-left/bottom-right/bottom-left L-shape (current is top-right L-shape) |
That seems like an interesting idea. |
I added the x_min and x_max methods in 6d83c0e |
Nic, I will check that 👍 |
Hello,
In irregular problem type, the solution propose 2 computed values :
x_max
andy_max
. These values represents the max x and y of the last bin.But these values are only usable if the placement direction chosen by the algorithm is from Left to Right and from Bottom to Top. Otherwise, these maximums are set to bin max.
Several questions:
The text was updated successfully, but these errors were encountered: