Crate cut_optimizer_1d

Source
Expand description

cut-optimizer-1d is an optimizer library that attempts to figure out an optimal cutting of linear cut lengths from linear stock lengths with the least amount of waste. It uses genetic algorithms and multiple heuristics to solve the problem.

Structs§

CutPiece
A rectangular piece that needs to be cut from a stock piece.
Optimizer
Optimizer for optimizing rectangular cut pieces from rectangular stock pieces.
ResultCutPiece
A cut piece that has been placed in a solution by the optimizer.
ResultStockPiece
Stock piece that was used by the optimizer to get one or more cut pieces.
Solution
A valid solution to an optimization.
StockPiece
A rectangular stock piece that is available to cut one or more cut pieces from.

Enums§

Error
Error while optimizing.