pub struct Solution {
pub fitness: f64,
pub stock_pieces: Vec<ResultStockPiece>,
/* private fields */
}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 Freeze for Solution
impl RefUnwindSafe for Solution
impl Send for Solution
impl Sync for Solution
impl Unpin for Solution
impl UnwindSafe for Solution
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more