Expand description
Permutation calculator for Best in Bags.
Modules§
Structs§
- Candidate
- Candidate item for a slot.
- Cost
Analysis - Pre-computed cost analysis.
- Permutation
Error - Invalid or unsupported permutation-space construction.
- Permutation
Space - Cartesian product space.
- Screening
Row - Cost row for one screening keep percentage.
- Slot
Candidates - One slot with its candidates.
Enums§
- Candidate
Source - Where a candidate came from.
Constants§
- MAX_
CANDIDATES_ PER_ SLOT - A mixed-radix choice is stored as
u8, so one slot can expose at most 256 candidates. - MAX_
PERMUTATION_ TOTAL - Largest exactly representable integer in JavaScript’s
numbertype.
Functions§
- build_
space - Build a permutation space from a parsed
SimCprofile. - build_
space_ for_ selection - Build a permutation space restricted to user-selected bag/weekly items.
- compute_
cost_ analysis - Compute cost analysis for a permutation space.
- tournament_
payload - Tournament
slot_candidatespayload; contested slots only.