[−][src]Struct argmin_core::executor::Executor
Methods
impl<O, S> Executor<O, S> where
O: ArgminOp,
O::Param: Clone + Default,
O::Hessian: Default,
S: Solver<O>,
[src]
O: ArgminOp,
O::Param: Clone + Default,
O::Hessian: Default,
S: Solver<O>,
pub fn new(op: O, solver: S, init_param: O::Param) -> Self
[src]
pub fn from_checkpoint<P: AsRef<Path>>(path: P) -> Result<Self, Error> where
Self: Sized + DeserializeOwned,
[src]
Self: Sized + DeserializeOwned,
pub fn run(self) -> Result<ArgminResult<O>, Error>
[src]
pub fn add_observer<OBS: Observe<O> + 'static>(
self,
observer: OBS,
mode: ObserverMode
) -> Self
[src]
self,
observer: OBS,
mode: ObserverMode
) -> Self
Attaches a observer which implements ArgminLog
to the solver.
pub fn max_iters(self, iters: u64) -> Self
[src]
Set maximum number of iterations
pub fn target_cost(self, cost: f64) -> Self
[src]
Set target cost value
pub fn cost(self, cost: f64) -> Self
[src]
Set cost value
pub fn grad(self, grad: O::Param) -> Self
[src]
Set Gradient
pub fn hessian(self, hessian: O::Hessian) -> Self
[src]
Set Hessian
pub fn jacobian(self, jacobian: O::Jacobian) -> Self
[src]
Set Jacobian
pub fn checkpoint_dir(self, dir: &str) -> Self
[src]
Set checkpoint directory
pub fn checkpoint_name(self, dir: &str) -> Self
[src]
Set checkpoint name
pub fn checkpoint_mode(self, mode: CheckpointMode) -> Self
[src]
pub fn ctrlc(self, ctrlc: bool) -> Self
[src]
Turn Ctrl-C handling on or off (default: on)
Trait Implementations
impl<O: Clone + ArgminOp, S: Clone> Clone for Executor<O, S>
[src]
fn clone(&self) -> Executor<O, S>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<O: ArgminOp, S> Serialize for Executor<O, S> where
O: Serialize,
S: Serialize,
[src]
O: Serialize,
S: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de, O: ArgminOp, S> Deserialize<'de> for Executor<O, S> where
O: Deserialize<'de>,
S: Deserialize<'de>,
O: Default,
[src]
O: Deserialize<'de>,
S: Deserialize<'de>,
O: Default,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
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,
S: Sync,
<O as ArgminOp>::Hessian: Sync,
<O as ArgminOp>::Jacobian: Sync,
<O as ArgminOp>::Param: Sync,
impl<O, S> Unpin for Executor<O, S> where
O: Unpin,
S: Unpin,
<O as ArgminOp>::Hessian: Unpin,
<O as ArgminOp>::Jacobian: Unpin,
<O as ArgminOp>::Param: Unpin,
O: Unpin,
S: Unpin,
<O as ArgminOp>::Hessian: Unpin,
<O as ArgminOp>::Jacobian: Unpin,
<O as ArgminOp>::Param: Unpin,
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,
S: Send,
<O as ArgminOp>::Hessian: Send,
<O as ArgminOp>::Jacobian: Send,
<O as ArgminOp>::Param: Send,
impl<O, S> !UnwindSafe for Executor<O, S>
impl<O, S> !RefUnwindSafe for Executor<O, S>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,