Examples
Examples
Try the starting example
- Allowed zero-based port indices for each vehicle; enter JSON
- [[0],[0,1],[1]]
- Available ports by listed type (counts)
- 1,1
- Compatible vehicle assignments (JSON)
- [1,2,null]
- Unassigned vehicles (count)
- 1
Try another scenario
- Allowed zero-based port indices for each vehicle; enter JSON
- [[0],[0],[1]]
- Available ports by listed type (counts)
- 2,1
- Compatible vehicle assignments (JSON)
- [1,1,2]
- Unassigned vehicles (count)
- 0
Calculation method
Calculation method
Compatible vehicle assignments (JSON)
Maximum-cardinality bipartite matching with type count expanded into slots; output type indices are one-based.
Unassigned vehicles (count)
Count null assignments.
Symbols and units
- a
- Allowed zero-based port indices for each vehicle; enter JSON
- b
- Available ports by listed type (counts)
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
- Supplied compatibility includes only user-approved adapters; no connector compatibility database. Supported limits: All numeric inputs and computed intermediates must remain finite. Supported numeric input magnitude is zero or 1e-12 through 1e12 in absolute value; reject values outside this bounded range. All lists/JSON record tables are limited to 100 records unless a stricter bound is stated; reject malformed record arity and wrong member types. At most 50 vehicles, 20 types, 100 total ports; allowed indices must exist; integer counts >=0.
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.