Replies: 3 comments 4 replies
-
|
Hi, You're using the variable-sized bin packing objective which only looks at the total cost of the bins used. See https://fontanf.github.io/packingsolver/objectives.html With the bin packing with leftovers objective, I get the following solution:
|
Beta Was this translation helpful? Give feedback.
-
|
Okay. But I want to maximize the value of I want to use this for metal sheet cutting. In such jobs, both cutting cost and material cost are important. If you check the system-generated output, you will notice that it often creates many unnecessary cuts. Please tell me if you have any solution for this. |
Beta Was this translation helpful? Give feedback.
-
In this example, it seems easy. But in the general case, maximizing the perimeter or the area might give unsatisfactory results if the shape of the leftover is complex. There's currently no other way to define the leftover value in the solver. But you can try to edit the code that computes it manually to see if you find something that fits your need packingsolver/src/irregular/solution.cpp Lines 107 to 108 in f1e2baa |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I’m working with the repository’s tools for the cutting stock / bin packing problem.
I have an example using the following files:
input_8.json
solution_8.json
Here is the visual layout generated:
In the second bin, I believe there could be a more optimal placement, or at least a different valid arrangement that fits better.
I’m not sure whether:
My understanding of the objective function is incorrect, or
I’m using the solver in the wrong way, or
The solver did not find the optimal solution for this instance.
Could someone please confirm whether this output is expected, or if I am missing a configuration/parameter related to optimization objectives?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions