pub struct CompositeObjective { /* private fields */ }Expand description
Composite objective that combines multiple objectives with weights.
Implementations§
Source§impl CompositeObjective
impl CompositeObjective
Sourcepub fn with_weights(weights: CompositeWeights) -> Self
pub fn with_weights(weights: CompositeWeights) -> Self
Creates a composite objective with custom weights.
Trait Implementations§
Source§impl Clone for CompositeObjective
impl Clone for CompositeObjective
Source§fn clone(&self) -> CompositeObjective
fn clone(&self) -> CompositeObjective
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 CompositeObjective
impl Debug for CompositeObjective
Source§impl Default for CompositeObjective
impl Default for CompositeObjective
Source§impl ObjectiveFunction for CompositeObjective
impl ObjectiveFunction for CompositeObjective
Source§fn evaluate(&self, result: &SimulationResult) -> Decimal
fn evaluate(&self, result: &SimulationResult) -> Decimal
Evaluates the simulation result and returns a score.
Source§fn compare(&self, a: &SimulationResult, b: &SimulationResult) -> Ordering
fn compare(&self, a: &SimulationResult, b: &SimulationResult) -> Ordering
Compares two simulation results.
Auto Trait Implementations§
impl Freeze for CompositeObjective
impl RefUnwindSafe for CompositeObjective
impl Send for CompositeObjective
impl Sync for CompositeObjective
impl Unpin for CompositeObjective
impl UnsafeUnpin for CompositeObjective
impl UnwindSafe for CompositeObjective
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