optimize_network
Optimize your annual ocean freight lane portfolio by balancing cost, schedule reliability, and CO2 emissions under budget and service constraints.
Instructions
Optimize a shipper's ENTIRE annual lane PORTFOLIO at once — the question the single-lane tools can't answer. Give a SET of lanes with their annual volumes (an importer's network) and the engine optimizes globally: it procures each lane (contract / spot / optimal mix) and costs it, scores its schedule reliability and its CO2, then enforces NETWORK CONSTRAINTS — a total freight BUDGET (shifts soft-market lanes to locked contracts to fit), a minimum SERVICE level (won't cut a lane's reliability below the floor to save money), and an ESG CO2 ceiling (targets the carbon-heaviest lanes). It surfaces the TOP SAVING lanes (spot-vs-contract spread × volume), where to CONSOLIDATE volume under one alliance contract for a better tier, and the network coste/servicio/CO2 trade-off. Reuses the same modeled engines as the per-lane tools, so the portfolio answer is coherent with each lane. Indicative portfolio guidance, not a tendered rate or committed allocation (regla 7). PREMIUM: x402 (USDC on Base) or a prepaid key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lanes | Yes | The lane portfolio. Each item: { origin_port, dest_port, annual_volume, container_type?, contract_rate_offered? }. REQUIRED, max 30. | |
| ship_date | No | Reference ship date (ISO) for the seasonal/market context. Optional. | |
| risk_tolerance | No | 'low', 'medium' (default) or 'high' — the portfolio's appetite for spot exposure. | |
| budget | No | Total annual freight budget (USD). If exceeded, the engine recommends shifting lanes toward locked contracts. Optional. | |
| min_reliability | No | Minimum acceptable schedule reliability (0-100) on any lane. Lanes below it are flagged; cost is not cut at the expense of service. Optional. | |
| max_co2_tonnes | No | Network CO2 ceiling (tonnes/yr). If exceeded, the engine targets the carbon-heaviest lanes. Optional. | |
| consolidation_threshold | No | Volume (containers/yr) at which a lane earns a consolidated-contract tier. Optional; default 500. |