[][src]Struct argmin::prelude::executor::Executor

pub struct Executor<O, S> where
    O: ArgminOp
{ /* fields omitted */ }

Methods

impl<O, S> Executor<O, S> where
    O: ArgminOp,
    S: Solver<O>,
    <O as ArgminOp>::Param: Clone,
    <O as ArgminOp>::Param: Default,
    <O as ArgminOp>::Hessian: Default
[src]

pub fn new(
    op: O,
    solver: S,
    init_param: <O as ArgminOp>::Param
) -> Executor<O, S>
[src]

pub fn from_checkpoint<P>(path: P) -> Result<Executor<O, S>, Error> where
    P: AsRef<Path>,
    Executor<O, S>: Sized,
    Executor<O, S>: DeserializeOwned
[src]

pub fn run(self) -> Result<ArgminResult<O>, Error>[src]

pub fn add_observer<OBS>(
    self,
    observer: OBS,
    mode: ObserverMode
) -> Executor<O, S> where
    OBS: 'static + Observe<O>, 
[src]

Attaches a observer which implements ArgminLog to the solver.

pub fn max_iters(self, iters: u64) -> Executor<O, S>[src]

Set maximum number of iterations

pub fn target_cost(self, cost: f64) -> Executor<O, S>[src]

Set target cost value

pub fn cost(self, cost: f64) -> Executor<O, S>[src]

Set cost value

pub fn grad(self, grad: <O as ArgminOp>::Param) -> Executor<O, S>[src]

Set Gradient

pub fn hessian(self, hessian: <O as ArgminOp>::Hessian) -> Executor<O, S>[src]

Set Hessian

pub fn jacobian(self, jacobian: <O as ArgminOp>::Jacobian) -> Executor<O, S>[src]

Set Jacobian

pub fn checkpoint_dir(self, dir: &str) -> Executor<O, S>[src]

Set checkpoint directory

pub fn checkpoint_name(self, dir: &str) -> Executor<O, S>[src]

Set checkpoint name

pub fn checkpoint_mode(self, mode: CheckpointMode) -> Executor<O, S>[src]

pub fn ctrlc(self, ctrlc: bool) -> Executor<O, S>[src]

Turn Ctrl-C handling on or off (default: on)

Trait Implementations

impl<O, S> Serialize for Executor<O, S> where
    O: ArgminOp + Serialize,
    S: Serialize
[src]

impl<'de, O, S> Deserialize<'de> for Executor<O, S> where
    O: ArgminOp + Deserialize<'de> + Default,
    S: Deserialize<'de>, 
[src]

impl<O, S> Clone for Executor<O, S> where
    O: ArgminOp + Clone,
    S: Clone
[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<O, S> Send for Executor<O, S> where
    S: Send,
    <O as ArgminOp>::Hessian: Send,
    <O as ArgminOp>::Jacobian: Send,
    <O as ArgminOp>::Param: Send

impl<O, S> Sync for Executor<O, S> where
    S: Sync,
    <O as ArgminOp>::Hessian: Sync,
    <O as ArgminOp>::Jacobian: Sync,
    <O as ArgminOp>::Param: Sync

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for 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.

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]