jasonrhansen / cut-optimizer-2d

2D Cut Optimizer
Apache License 2.0
21 stars 11 forks source link

Make Solution.price field public #9

Closed lukepighetti closed 2 years ago

lukepighetti commented 2 years ago

Assuming the price is equal to the cost of consumed stock (cut piece + cutter kerf), it would be nice to make this field public so we can see the cost of the stock being cut.

This also opens up a conversation about creating something like a CostMetrics struct... perhaps with stock_piece_cost = cut_piece_cost + cut_width_cost + waste_cost

jasonrhansen commented 2 years ago

Would just adding the price field to ResultStockPiece get you what you want for now? I'm willing to do that.

Anything beyond that, I'm open to PRs.

lukepighetti commented 2 years ago

That handles my needs!

jasonrhansen commented 2 years ago

@lukepighetti I'm going to close this issue, but I'm open to a more detailed proposal for you CostMetrics idea. If you'd like to pursue that further, please open a new issue that outlines what you're trying to accomplish.