pub struct EfficiencySolver;Expand description
Efficiency-based solver for budget allocation
Algorithm:
- Filter categories meeting ROI threshold
- Sort by efficiency score (ROI * priority)
- Allocate minimum to each qualifying category
- Distribute remaining budget proportionally by efficiency
Implementations§
Source§impl EfficiencySolver
impl EfficiencySolver
Sourcepub fn solve_allocation(
&self,
input: &BudgetAllocationInput,
spec: &ProblemSpec,
) -> Result<(BudgetAllocationOutput, SolverReport)>
pub fn solve_allocation( &self, input: &BudgetAllocationInput, spec: &ProblemSpec, ) -> Result<(BudgetAllocationOutput, SolverReport)>
Solve the budget allocation problem
Trait Implementations§
Source§impl PackSolver for EfficiencySolver
impl PackSolver for EfficiencySolver
Auto Trait Implementations§
impl Freeze for EfficiencySolver
impl RefUnwindSafe for EfficiencySolver
impl Send for EfficiencySolver
impl Sync for EfficiencySolver
impl Unpin for EfficiencySolver
impl UnsafeUnpin for EfficiencySolver
impl UnwindSafe for EfficiencySolver
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