pub struct ScoreBasedRoutingSolver;Expand description
Scoring-based assignment solver for lead routing
Algorithm:
- Sort leads by priority (higher priority first) and score (higher first)
- For each lead, calculate fit scores with all available reps
- Filter reps by territory requirement if configured
- Assign lead to best-scoring rep with available capacity
- Update rep loads and continue
Implementations§
Source§impl ScoreBasedRoutingSolver
impl ScoreBasedRoutingSolver
Sourcepub fn solve_routing(
&self,
input: &LeadRoutingInput,
spec: &ProblemSpec,
) -> Result<(LeadRoutingOutput, SolverReport)>
pub fn solve_routing( &self, input: &LeadRoutingInput, spec: &ProblemSpec, ) -> Result<(LeadRoutingOutput, SolverReport)>
Solve the lead routing problem
Trait Implementations§
Source§impl PackSolver for ScoreBasedRoutingSolver
impl PackSolver for ScoreBasedRoutingSolver
Auto Trait Implementations§
impl Freeze for ScoreBasedRoutingSolver
impl RefUnwindSafe for ScoreBasedRoutingSolver
impl Send for ScoreBasedRoutingSolver
impl Sync for ScoreBasedRoutingSolver
impl Unpin for ScoreBasedRoutingSolver
impl UnsafeUnpin for ScoreBasedRoutingSolver
impl UnwindSafe for ScoreBasedRoutingSolver
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