Examples
Examples
Try the starting example
- JSON Member IDs
- ["A","B","C"]
- JSON Plan offers [ID,seat capacity,price currency,permitted sharing groups of member IDs] (USD)
- [["single",1,8,[["A"],["B"],["C"]]],["family",3,20,[["A","B","C"]]]]
- Minimum feasible purchase cost (USD)
- $20.00
- Purchased plans and seat assignments
- [["family",["A","B","C"]]]
- Unserved member IDs
- []
Try another scenario
- JSON Member IDs
- ["A","B","C"]
- JSON Plan offers [ID,seat capacity,price currency,permitted sharing groups of member IDs] (USD)
- [["single",1,8,[["A"],["B"],["C"]]],["family",3,25,[["A","B","C"]]]]
- Minimum feasible purchase cost (USD)
- $24.00
- Purchased plans and seat assignments
- [["single",["A"]],["single",["B"]],["single",["C"]]]
- Unserved member IDs
- []
Calculation method
Calculation method
Minimum feasible purchase cost (USD)
Exact subset dynamic programming on covered-member bit masks with repeatable plan offers; minimize total cost.
Purchased plans and seat assignments
Return plan ID plus newly assigned members per purchase; equal-cost paths choose lexical serialized assignment.
Unserved member IDs
Empty for full feasible coverage; otherwise best cardinality coverage then minimum cost, explicit infeasibility.
Symbols and units
- a
- JSON Member IDs
- b
- JSON Plan offers [ID,seat capacity,price currency,permitted sharing groups of member IDs] (USD)
Use the units shown. A list keeps the order in which you enter its values. The symbol ^ means “raised to the power of”.
Assumptions & limits
Assumptions & limits
- Exact minimum-cost plan-and-seat allocation among supplied sharing-compatible member groups. Multiple purchases allowed; every plan purchase selects one allowed sharing group subset within seat capacity. Supported limits: 1–10 distinct members, 1–8 offers, positive capacities and nonnegative finite prices. Groups only contain declared unique members.
Are these inputs private?
These calculations run in your browser. A shared link contains the values you choose to share. Only questions submitted to the separate AI finder are sent to OpenAI.