pub struct SyntheticConfig {
pub assets: usize,
pub factors: usize,
pub inequalities: usize,
pub seed: u64,
pub budget: f64,
pub max_weight: f64,
}Expand description
Configuration for a reproducible synthetic portfolio QP.
Fields§
§assets: usizeNumber of assets.
factors: usizeNumber of covariance factors.
inequalities: usizeNumber of additional upper-inequality rows.
seed: u64Deterministic random seed.
budget: f64Portfolio budget imposed as an equality.
max_weight: f64Per-asset upper bound. Set to infinity for no upper bound.
Trait Implementations§
Source§impl Clone for SyntheticConfig
impl Clone for SyntheticConfig
Source§fn clone(&self) -> SyntheticConfig
fn clone(&self) -> SyntheticConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SyntheticConfig
impl Debug for SyntheticConfig
Source§impl Default for SyntheticConfig
impl Default for SyntheticConfig
Source§fn default() -> SyntheticConfig
fn default() -> SyntheticConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for SyntheticConfig
impl PartialEq for SyntheticConfig
impl StructuralPartialEq for SyntheticConfig
Auto Trait Implementations§
impl Freeze for SyntheticConfig
impl RefUnwindSafe for SyntheticConfig
impl Send for SyntheticConfig
impl Sync for SyntheticConfig
impl Unpin for SyntheticConfig
impl UnsafeUnpin for SyntheticConfig
impl UnwindSafe for SyntheticConfig
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