Struct cut_optimizer_2d::Solution [−][src]
pub struct Solution {
pub fitness: f64,
pub stock_pieces: Vec<ResultStockPiece>,
// some fields omitted
}Expand description
A valid solution to an optimization.
Fields
fitness: f64Fitness score for this solution. Ranges between 0.0 and 1.0 inclusive, with 1.0 being a perfect solution with no waste.
stock_pieces: Vec<ResultStockPiece>The stock pieces that were used for this solution, each containing the demand piece layout.
Auto Trait Implementations
impl RefUnwindSafe for Solutionimpl UnwindSafe for Solution