update docs and perf metrics
This commit is contained in:
parent
1849075b11
commit
725980e694
26 changed files with 1183 additions and 525 deletions
57
DOCS.md
57
DOCS.md
|
|
@ -133,19 +133,60 @@ Use `RoutingProblem.initial_paths` to provide semantic per-net seeds. Seeds are
|
|||
|
||||
`RoutingRunResult.metrics` is an immutable per-run snapshot.
|
||||
|
||||
| Field | Type | Description |
|
||||
| :-- | :-- | :-- |
|
||||
| `nodes_expanded` | `int` | Total nodes expanded during the run. |
|
||||
| `moves_generated` | `int` | Total candidate moves generated during the run. |
|
||||
| `moves_added` | `int` | Total candidate moves admitted to the open set during the run. |
|
||||
| `pruned_closed_set` | `int` | Total moves pruned because the state was already closed at lower cost. |
|
||||
| `pruned_hard_collision` | `int` | Total moves pruned by hard collision checks. |
|
||||
| `pruned_cost` | `int` | Total moves pruned by cost ceilings or invalid costs. |
|
||||
### Search Counters
|
||||
|
||||
- `nodes_expanded`: Total nodes expanded during the run.
|
||||
- `moves_generated`: Total candidate moves generated during the run.
|
||||
- `moves_added`: Total candidate moves admitted to the open set.
|
||||
- `pruned_closed_set`: Total moves pruned because the state was already closed at lower cost.
|
||||
- `pruned_hard_collision`: Total moves pruned by hard collision checks.
|
||||
- `pruned_cost`: Total moves pruned by cost ceilings or invalid costs.
|
||||
- `route_iterations`: Number of negotiated-congestion iterations entered.
|
||||
- `nets_routed`: Number of net-routing attempts executed across all iterations.
|
||||
- `nets_reached_target`: Number of those attempts that reached the requested target port.
|
||||
- `warm_start_paths_built`: Number of warm-start seed paths built by the greedy bootstrap pass.
|
||||
- `warm_start_paths_used`: Number of routing attempts satisfied directly from an initial or warm-start path.
|
||||
- `refine_path_calls`: Number of completed paths passed through the post-route refiner.
|
||||
- `timeout_events`: Number of timeout exits encountered during the run.
|
||||
|
||||
### Cache Counters
|
||||
|
||||
- `move_cache_abs_hits` / `move_cache_abs_misses`: Absolute move-geometry cache activity.
|
||||
- `move_cache_rel_hits` / `move_cache_rel_misses`: Relative move-geometry cache activity.
|
||||
- `static_safe_cache_hits`: Reuse count for the static-safe admission cache.
|
||||
- `hard_collision_cache_hits`: Reuse count for the hard-collision cache.
|
||||
- `congestion_cache_hits` / `congestion_cache_misses`: Per-search congestion-cache activity.
|
||||
|
||||
### Index And Collision Counters
|
||||
|
||||
- `dynamic_path_objects_added` / `dynamic_path_objects_removed`: Dynamic-path geometry objects inserted into or removed from the live routing index.
|
||||
- `dynamic_tree_rebuilds`: Number of dynamic STRtree rebuilds.
|
||||
- `dynamic_grid_rebuilds`: Number of dynamic congestion-grid rebuilds.
|
||||
- `static_tree_rebuilds`: Number of static dilated-obstacle STRtree rebuilds.
|
||||
- `static_raw_tree_rebuilds`: Number of raw static-obstacle STRtree rebuilds used for verification.
|
||||
- `static_net_tree_rebuilds`: Number of net-width-specific static STRtree rebuilds.
|
||||
- `visibility_builds`: Number of static visibility-graph rebuilds.
|
||||
- `visibility_corner_pairs_checked`: Number of corner-pair visibility probes considered while building that graph.
|
||||
- `visibility_corner_queries` / `visibility_corner_hits`: Precomputed-corner visibility query activity.
|
||||
- `visibility_point_queries`, `visibility_point_cache_hits`, `visibility_point_cache_misses`: Arbitrary-point visibility query and cache activity.
|
||||
- `ray_cast_calls`: Number of ray-cast queries issued against static obstacles.
|
||||
- `ray_cast_candidate_bounds`: Total broad-phase candidate bounds considered by ray casts.
|
||||
- `ray_cast_exact_geometry_checks`: Total exact non-rectangular geometry checks performed by ray casts.
|
||||
- `congestion_check_calls`: Number of congestion broad-phase checks requested by search.
|
||||
- `congestion_exact_pair_checks`: Number of exact geometry-pair checks performed while confirming congestion hits.
|
||||
|
||||
### Verification Counters
|
||||
|
||||
- `verify_path_report_calls`: Number of full path-verification passes.
|
||||
- `verify_static_buffer_ops`: Number of static-verification `buffer()` operations.
|
||||
- `verify_dynamic_exact_pair_checks`: Number of exact geometry-pair checks performed during dynamic-path verification.
|
||||
|
||||
## 8. Internal Modules
|
||||
|
||||
Lower-level search and collision modules are semi-private implementation details. They remain accessible through deep imports for advanced use, but they are unstable and may change without notice. The stable supported entrypoint is `route(problem, options=...)`.
|
||||
|
||||
The current implementation structure is summarized in **[docs/architecture.md](docs/architecture.md)**. The committed example-corpus counter baseline is tracked in **[docs/performance.md](docs/performance.md)**.
|
||||
|
||||
## 9. Tuning Notes
|
||||
|
||||
### Speed vs. optimality
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue