pub struct ReportBuilder {
pub input: InputDescriptor,
pub problem: ProblemInfo,
pub solution: SolutionInfo,
pub stats: StatisticsInfo,
pub iterations: Vec<IterRecord>,
pub linear_solver: Option<LinearSolverSummaryInfo>,
/* private fields */
}Expand description
Builder collecting the inputs for a SolveReport. The CLI
drivers populate one of these as they walk through the solve and
finish() it at the end.
Fields§
§input: InputDescriptor§problem: ProblemInfo§solution: SolutionInfo§stats: StatisticsInfo§iterations: Vec<IterRecord>§linear_solver: Option<LinearSolverSummaryInfo>Implementations§
Source§impl ReportBuilder
impl ReportBuilder
pub fn new(detail: ReportDetail, input: InputDescriptor) -> ReportBuilder
Sourcepub fn set_linear_solver_summary(&mut self, summary: LinearSolverSummary)
pub fn set_linear_solver_summary(&mut self, summary: LinearSolverSummary)
Attach a linear-solver post-mortem. Called once per solve after
optimize_tnlp returns and before Self::finish.
Sourcepub fn ingest_stats(&mut self, src: &SolveStatistics)
pub fn ingest_stats(&mut self, src: &SolveStatistics)
Pull iteration_count, final_*, and counters into the
stats slot; copy iterations only if detail = Full.
pub fn finish(self) -> SolveReport
Auto Trait Implementations§
impl Freeze for ReportBuilder
impl RefUnwindSafe for ReportBuilder
impl Send for ReportBuilder
impl Sync for ReportBuilder
impl Unpin for ReportBuilder
impl UnsafeUnpin for ReportBuilder
impl UnwindSafe for ReportBuilder
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> 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