struct DebugDataWriter {
context: Option<String>,
commodity_balance_duals_writer: Writer<File>,
unmet_demand_writer: Writer<File>,
solver_values_writer: Writer<File>,
appraisal_results_writer: Writer<File>,
appraisal_results_time_slice_writer: Writer<File>,
dispatch_asset_writer: Writer<File>,
}Expand description
For writing extra debug information about the model
Fields§
§context: Option<String>§commodity_balance_duals_writer: Writer<File>§unmet_demand_writer: Writer<File>§solver_values_writer: Writer<File>§appraisal_results_writer: Writer<File>§appraisal_results_time_slice_writer: Writer<File>§dispatch_asset_writer: Writer<File>Implementations§
Source§impl DebugDataWriter
impl DebugDataWriter
Sourcefn with_context(&self, run_description: &str) -> String
fn with_context(&self, run_description: &str) -> String
Prepend the current context to the run description
Sourcefn write_dispatch_debug_info(
&mut self,
milestone_year: u32,
run_description: &str,
solution: &Solution<'_>,
) -> Result<()>
fn write_dispatch_debug_info( &mut self, milestone_year: u32, run_description: &str, solution: &Solution<'_>, ) -> Result<()>
Write debug info about the dispatch optimisation
fn write_activity<'a, I, J, K>(
&mut self,
milestone_year: u32,
run_description: &str,
iter_activity: I,
iter_activity_duals: J,
iter_column_duals: K,
) -> Result<()>where
I: Iterator<Item = (&'a AssetRef, &'a TimeSliceID, Activity)>,
J: Iterator<Item = (&'a AssetRef, &'a TimeSliceID, MoneyPerActivity)>,
K: Iterator<Item = (&'a AssetRef, &'a TimeSliceID, MoneyPerActivity)>,
Sourcefn write_commodity_balance_duals<'a, I>(
&mut self,
milestone_year: u32,
run_description: &str,
iter: I,
) -> Result<()>
fn write_commodity_balance_duals<'a, I>( &mut self, milestone_year: u32, run_description: &str, iter: I, ) -> Result<()>
Write commodity balance duals to file
Sourcefn write_unmet_demand<'a, I>(
&mut self,
milestone_year: u32,
run_description: &str,
iter: I,
) -> Result<()>
fn write_unmet_demand<'a, I>( &mut self, milestone_year: u32, run_description: &str, iter: I, ) -> Result<()>
Write unmet demand values to file
Sourcefn write_solver_values(
&mut self,
milestone_year: u32,
run_description: &str,
objective_value: Money,
) -> Result<()>
fn write_solver_values( &mut self, milestone_year: u32, run_description: &str, objective_value: Money, ) -> Result<()>
Write additional solver output values to file
Sourcefn write_appraisal_results(
&mut self,
milestone_year: u32,
run_description: &str,
appraisal_results: &[AppraisalOutput],
) -> Result<()>
fn write_appraisal_results( &mut self, milestone_year: u32, run_description: &str, appraisal_results: &[AppraisalOutput], ) -> Result<()>
Write appraisal results to file
Sourcefn write_appraisal_time_slice_results(
&mut self,
milestone_year: u32,
run_description: &str,
appraisal_results: &[AppraisalOutput],
) -> Result<()>
fn write_appraisal_time_slice_results( &mut self, milestone_year: u32, run_description: &str, appraisal_results: &[AppraisalOutput], ) -> Result<()>
Write appraisal results to file
Auto Trait Implementations§
impl Freeze for DebugDataWriter
impl RefUnwindSafe for DebugDataWriter
impl Send for DebugDataWriter
impl Sync for DebugDataWriter
impl Unpin for DebugDataWriter
impl UnwindSafe for DebugDataWriter
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> 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