pub enum SamplingScheme {
InSample,
External,
Historical,
}Expand description
Forward-pass noise source for multi-stage optimization solvers.
Determines where the forward-pass scenario realisations come from.
This is orthogonal to NoiseMethod,
which controls how the opening tree is generated during the backward
pass. SamplingScheme selects the source of forward-pass noise;
NoiseMethod selects the algorithm used to produce backward-pass
openings.
See Input Scenarios §1.8 for the full catalog.
§Examples
use cobre_core::scenario::SamplingScheme;
let scheme = SamplingScheme::InSample;
// SamplingScheme is Copy
let copy = scheme;
assert_eq!(scheme, copy);Variants§
InSample
Forward pass uses the same opening tree generated for the backward pass. This is the default for the minimal viable solver.
External
Forward pass draws from an externally supplied scenario file.
Historical
Forward pass replays historical inflow realisations in sequence or at random.
Trait Implementations§
Source§impl Clone for SamplingScheme
impl Clone for SamplingScheme
Source§fn clone(&self) -> SamplingScheme
fn clone(&self) -> SamplingScheme
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SamplingScheme
impl Debug for SamplingScheme
Source§impl PartialEq for SamplingScheme
impl PartialEq for SamplingScheme
impl Copy for SamplingScheme
impl Eq for SamplingScheme
impl StructuralPartialEq for SamplingScheme
Auto Trait Implementations§
impl Freeze for SamplingScheme
impl RefUnwindSafe for SamplingScheme
impl Send for SamplingScheme
impl Sync for SamplingScheme
impl Unpin for SamplingScheme
impl UnsafeUnpin for SamplingScheme
impl UnwindSafe for SamplingScheme
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