Skip to main content

Valuation

Trait Valuation 

Source
pub trait Valuation<Task> {
    // Required method
    fn marginal_score(&self, bundle: &[Task], task: &Task) -> Option<u64>;
}
Expand description

An agent’s valuation of tasks, used to place bids.

Required Methods§

Source

fn marginal_score(&self, bundle: &[Task], task: &Task) -> Option<u64>

The score of adding task to the agent’s current bundle; higher is better, and None means the agent cannot take the task.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§