[][src]Struct slp::Solver

pub struct Solver<N> { /* fields omitted */ }

Linear Programming Solver.

Implementations

impl<N: Number> Solver<N>[src]

pub fn new(input: &str) -> Solver<N> where
    N::Err: Debug
[src]

Creates a new Solver instance from mprog input format.

pub fn setting(&mut self, setting: SolverSettings)[src]

Enable a setting.

pub fn solve(&mut self) -> Solution<N>[src]

Solves the LP.

Uses naive version of simplex method.

Returns a solution.

Trait Implementations

impl<N: Number> From<LpProblem<N>> for Solver<N>[src]

Auto Trait Implementations

impl<N> RefUnwindSafe for Solver<N> where
    N: RefUnwindSafe

impl<N> Send for Solver<N> where
    N: Send

impl<N> Sync for Solver<N> where
    N: Sync

impl<N> Unpin for Solver<N> where
    N: Unpin

impl<N> UnwindSafe for Solver<N> where
    N: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.