Struct cut_optimizer_2d::Optimizer [−][src]
pub struct Optimizer { /* fields omitted */ }Expand description
Optimizer for optimizing rectangular cut pieces from rectangular stock pieces.
Implementations
Add a stock piece that the optimizer can use to optimize cut pieces. Each unique stock piece only needs to be added once.
pub fn add_stock_pieces<I>(&mut self, stock_pieces: I) -> &mut Self where
I: IntoIterator<Item = StockPiece>, [src]
pub fn add_stock_pieces<I>(&mut self, stock_pieces: I) -> &mut Self where
I: IntoIterator<Item = StockPiece>, [src]Add stock pieces that the optimizer can use to optimize cut pieces. Each unique stock piece only needs to be added once.
Add a desired cut piece that you need cut from a stock piece.
pub fn add_cut_pieces<I>(&mut self, cut_pieces: I) -> &mut Self where
I: IntoIterator<Item = CutPiece>, [src]
pub fn add_cut_pieces<I>(&mut self, cut_pieces: I) -> &mut Self where
I: IntoIterator<Item = CutPiece>, [src]Add desired cut pieces that you need cut from a stock piece.
Set the width of the cut to use between cut pieces. This could represent blade or kerf thickness.
Set the random seed used by the genetic algorithms in the optimizer. Using the same random seed will give you the same result for the same input.
Set whether the optimizer should allow mixed sized stock pieces in the results. If set to false, and multiple stock sizes are given, only one stock size will be used in the results.
Optimize in a way where each cut piece can be cut out using only guillotine cuts, where each cut extends from one side to the other.
This method is suitable for cutting with a panel saw.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Optimizerimpl UnwindSafe for Optimizer