pub struct Solution {
pub x: Vec<f64>,
pub value: f64,
}Expand description
The best point an optimizer found, with its (minimized) objective value.
Fields§
§x: Vec<f64>Best decision vector.
value: f64Objective value at x, in the minimizing sense forge uses
internally. If the problem was wrapped in Maximize, negate this to
recover the original value (or use Report::best_value_maximized).
Trait Implementations§
impl StructuralPartialEq for Solution
Auto Trait Implementations§
impl Freeze for Solution
impl RefUnwindSafe for Solution
impl Send for Solution
impl Sync for Solution
impl Unpin for Solution
impl UnsafeUnpin 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