Struct argmin::core::executor::Executor [−][src]
Expand description
Executes a solver
Fields
op: OpWrapper<O>
operator
Implementations
Create a new executor with a solver
and an initial parameter init_param
pub fn from_checkpoint<P: AsRef<Path>>(path: P, op: O) -> Result<Self, Error> where
Self: Sized + DeserializeOwned,
pub fn from_checkpoint<P: AsRef<Path>>(path: P, op: O) -> Result<Self, Error> where
Self: Sized + DeserializeOwned,
Create a new executor from a checkpoint
Run the executor
pub fn add_observer<OBS: Observe<O> + 'static>(
self,
observer: OBS,
mode: ObserverMode
) -> Self
pub fn add_observer<OBS: Observe<O> + 'static>(
self,
observer: OBS,
mode: ObserverMode
) -> Self
Attaches a observer which implements ArgminLog
to the solver.
Set target cost value
Set checkpoint directory
Set checkpoint name
Set the checkpoint mode
Trait Implementations
impl<'de, O: ArgminOp, S> Deserialize<'de> for Executor<O, S> where
IterState<O>: Serialize,
S: Deserialize<'de>,
O: Default,
impl<'de, O: ArgminOp, S> Deserialize<'de> for Executor<O, S> where
IterState<O>: Serialize,
S: Deserialize<'de>,
O: Default,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<O, S> RefUnwindSafe for Executor<O, S> where
O: RefUnwindSafe,
S: RefUnwindSafe,
<O as ArgminOp>::Float: RefUnwindSafe,
<O as ArgminOp>::Hessian: RefUnwindSafe,
<O as ArgminOp>::Jacobian: RefUnwindSafe,
<O as ArgminOp>::Param: RefUnwindSafe,
impl<O, S> Unpin for Executor<O, S> where
O: Unpin,
S: Unpin,
<O as ArgminOp>::Float: Unpin,
<O as ArgminOp>::Hessian: Unpin,
<O as ArgminOp>::Jacobian: Unpin,
<O as ArgminOp>::Param: Unpin,
impl<O, S> UnwindSafe for Executor<O, S> where
O: UnwindSafe,
S: UnwindSafe,
<O as ArgminOp>::Float: UnwindSafe,
<O as ArgminOp>::Hessian: UnwindSafe,
<O as ArgminOp>::Jacobian: UnwindSafe,
<O as ArgminOp>::Param: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V