#[non_exhaustive]pub enum Scalarizer {
WeightedSum,
AugmentedTchebycheff {
rho: f64,
},
}Expand description
How a CompositeObjective combines its weighted terms.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
WeightedSum
Σ wᵢ·vᵢ — the plain weighted sum.
AugmentedTchebycheff
Augmented weighted min/max (Tchebycheff-style, Knowles 2006):
emphasizes the worst-performing term so non-convex trade-offs
aren’t missed. For Maximize: minᵢ(wᵢ·vᵢ) + ρ·Σ wᵢ·vᵢ;
for Minimize the min becomes a max.
Trait Implementations§
Source§impl Clone for Scalarizer
impl Clone for Scalarizer
Source§fn clone(&self) -> Scalarizer
fn clone(&self) -> Scalarizer
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 Scalarizer
impl Debug for Scalarizer
Source§impl Default for Scalarizer
impl Default for Scalarizer
Source§fn default() -> Scalarizer
fn default() -> Scalarizer
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Scalarizer
impl<'de> Deserialize<'de> for Scalarizer
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Scalarizer
impl PartialEq for Scalarizer
Source§fn eq(&self, other: &Scalarizer) -> bool
fn eq(&self, other: &Scalarizer) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Scalarizer
impl Serialize for Scalarizer
impl Copy for Scalarizer
impl StructuralPartialEq for Scalarizer
Auto Trait Implementations§
impl Freeze for Scalarizer
impl RefUnwindSafe for Scalarizer
impl Send for Scalarizer
impl Sync for Scalarizer
impl Unpin for Scalarizer
impl UnsafeUnpin for Scalarizer
impl UnwindSafe for Scalarizer
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