pub struct Solver<'a> { /* private fields */ }Expand description
SMO solver.
Implementations§
Source§impl<'a> Solver<'a>
impl<'a> Solver<'a>
Sourcepub fn solve(
variant: SolverVariant,
l: usize,
q: Box<dyn QMatrix + 'a>,
p_: &[f64],
y_: &[i8],
alpha_: &mut [f64],
cp: f64,
cn: f64,
eps: f64,
shrinking: bool,
) -> SolutionInfo
pub fn solve( variant: SolverVariant, l: usize, q: Box<dyn QMatrix + 'a>, p_: &[f64], y_: &[i8], alpha_: &mut [f64], cp: f64, cn: f64, eps: f64, shrinking: bool, ) -> SolutionInfo
Run the SMO solver.
§Arguments
variant— Standard or Nul— problem sizeq— Q matrix (ownership transferred)p_— linear termy_— labels (+1/-1)alpha_— initial alpha (modified in place with solution)cp,cn— box constraints for positive/negative classeseps— stopping toleranceshrinking— whether to use the shrinking heuristic
Auto Trait Implementations§
impl<'a> Freeze for Solver<'a>
impl<'a> !RefUnwindSafe for Solver<'a>
impl<'a> !Send for Solver<'a>
impl<'a> !Sync for Solver<'a>
impl<'a> Unpin for Solver<'a>
impl<'a> !UnwindSafe for Solver<'a>
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