Sensitivity Examples¶
These examples focus on practical interpretation of parameter sensitivities with
the single-track model on the torch backend and the high-level
apexsim.analysis.run_lap_sensitivity_study(...) API.
Study scope¶
Both example studies use local derivatives around one operating point and report
an engineering-friendly %/% interpretation. The same four physical parameters
are included:
- Vehicle mass
- Center of gravity height
- Yaw inertia
- Drag coefficient
Two objective metrics are evaluated:
- Lap time \([s]\)
- Energy consumption \([kWh]\)
Why this setup is useful¶
- It gives a consistent sensitivity baseline across different track classes.
- It highlights which parameters matter globally (lap time) vs. energetically.
- It uses one compact, model-agnostic API with clear parameter targets.
- The Spa notebook additionally compares quasi-static and transient sensitivities in an AD-first workflow to expose solver-path limitations (notably for yaw inertia).
Output artifacts¶
Each study exports:
sensitivities_long.csv: one row per(objective, parameter)pairsensitivities_pivot.csv: compact parameter × objective sensitivity mapsensitivity_bars.png: compact comparison plot for both objectives
All outputs are written below:
examples/output/sensitivity/