pub struct NlpBatchResult {
pub status: ApplicationReturnStatus,
pub solution: Option<NlpBatchSolution>,
pub stats: SolveStatistics,
pub wall_time: f64,
}Expand description
Outcome of one instance of a batched solve.
Fields§
§status: ApplicationReturnStatus§solution: Option<NlpBatchSolution>None when the solve aborted before finalize_solution ran
(e.g. InvalidProblemDefinition).
stats: SolveStatisticsPer-instance solve statistics (iteration count, final KKT error, timings, …).
wall_time: f64Wall-clock seconds spent in this instance’s solve (gh#990 item 11),
measured around optimize_tnlp; Problem.solve’s info["wall_time"]
counterpart. 0.0 for an aborted (panicked) instance.
Trait Implementations§
Source§impl Clone for NlpBatchResult
impl Clone for NlpBatchResult
Source§impl Debug for NlpBatchResult
impl Debug for NlpBatchResult
Source§impl From<&NlpBatchResult> for NlpWarmStart
Build a warm start from a full batch result: iterate + duals from
the captured solution, μ from the statistics. An instance whose
solve produced no solution yields an empty warm start, which the
next solve treats as a cold start (dimension-mismatch fallback).
impl From<&NlpBatchResult> for NlpWarmStart
Build a warm start from a full batch result: iterate + duals from the captured solution, μ from the statistics. An instance whose solve produced no solution yields an empty warm start, which the next solve treats as a cold start (dimension-mismatch fallback).
Source§fn from(r: &NlpBatchResult) -> Self
fn from(r: &NlpBatchResult) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NlpBatchResult
impl RefUnwindSafe for NlpBatchResult
impl Send for NlpBatchResult
impl Sync for NlpBatchResult
impl Unpin for NlpBatchResult
impl UnsafeUnpin for NlpBatchResult
impl UnwindSafe for NlpBatchResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T, U> Imply<T> for U
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more