Examples
Examples
Try the starting example
- Vehicle inlet positions [x metres,y metres]; enter JSON
- [[0,0],[4,0],[9,0]]
- Ports [x metres,y metres,cable length metres]; enter JSON
- [[1,0,3],[5,0,3]]
- Required spare cable length (metres)
- 0.5
- Maximum simultaneously reachable bays (count)
- 2
- Bay-to-port assignment (JSON)
- [1,2,null]
Try another scenario
- Vehicle inlet positions [x metres,y metres]; enter JSON
- [[0,0],[3,0],[5,0]]
- Ports [x metres,y metres,cable length metres]; enter JSON
- [[1,0,2],[5,0,2],[3,0,1]]
- Required spare cable length (metres)
- 0
- Maximum simultaneously reachable bays (count)
- 3
- Bay-to-port assignment (JSON)
- [1,3,2]
Calculation method
Calculation method
Maximum simultaneously reachable bays (count)
Maximum-cardinality bipartite matching of bay-port pairs meeting Euclidean distance+spare<=cable length.
Bay-to-port assignment (JSON)
Augmenting-path matching; bay input order, then port input order; null is unassigned.
Symbols and units
- a
- Vehicle inlet positions [x metres,y metres]; enter JSON
- b
- Ports [x metres,y metres,cable length metres]; enter JSON
- c
- Required spare cable length (metres)
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
- Point-to-point cable reach in a flat plane; one vehicle per port. Straight-line reach does not establish accessible or safe cable routing. 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. 1..50 bays and ports; all coordinates finite; lengths and spare >=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.