Struct cut_optimizer_2d::Solution
source · [−]pub struct Solution {
pub fitness: f64,
pub stock_pieces: Vec<ResultStockPiece>,
/* private fields */
}
Expand description
A valid solution to an optimization.
Fields
fitness: f64
Fitness 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 Solution
impl Send for Solution
impl Sync for Solution
impl Unpin for Solution
impl UnwindSafe for Solution
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more