Konjugate benchmark report
Konjugate 2.0.1 · engine 0.2.0 · commit e30c15f · --full · 2026-11-25T06:52:58.055Z
Konjugate is evaluated against established numerical and engineering benchmarks, with reproducible reference comparisons, conservation checks and performance measurements. Each problem below is run headless by the native engine from a committed model and compared with an analytic solution or an independent high-accuracy numerical reference. Konjugate integrates with fixed-step explicit or semi-implicit Euler node by node, both first order, or with Runge–Kutta 4 applied to the whole model at once, fourth order and as accurate across the coupling between nodes as within them; the results show where each is accurate and where it is not. How the numbers are made, and how to reproduce them, is in benchmarks/README.md.
✓ Every check is within its threshold.
Thermal RC network
Four thermal masses, five conductances, a 500 W heater and a fixed ambient, one node per mass: transient and steady-state error against the matrix-exponential solution, and the energy balance.
Directory benchmarks/thermal/rcNetwork/ · models rcNetwork.kjt · numerical reference reference.json: scipy.linalg.expm of the augmented matrix [[A, b], [0, 0]], in temperatures above ambient (SciPy 1.13.1, NumPy 2.0.2)
- Exact (matrix exponential)
- Konjugate, h = 16 s
- Konjugate, h = 64 s
Data table (every 2th point; all 65 are in plots/thermalHeatedMass.csv)
| Time (h) | Exact (matrix exponential) | Konjugate, h = 16 s | Konjugate, h = 64 s |
|---|---|---|---|
| 0 | 293.1 | 293.1 | 293.1 |
| 0.1422 | 297.8 | 297.8 | 297.8 |
| 0.2844 | 301.5 | 301.5 | 301.5 |
| 0.4267 | 304.7 | 304.7 | 304.7 |
| 0.5689 | 307.5 | 307.5 | 307.6 |
| 0.7111 | 310 | 310.1 | 310.1 |
| 0.8533 | 312.4 | 312.4 | 312.5 |
| 0.9956 | 314.6 | 314.6 | 314.6 |
| 1.138 | 316.6 | 316.6 | 316.6 |
| 1.28 | 318.4 | 318.4 | 318.5 |
| 1.422 | 320.2 | 320.2 | 320.2 |
| 1.564 | 321.8 | 321.8 | 321.9 |
| 1.707 | 323.4 | 323.4 | 323.5 |
| 1.849 | 324.9 | 324.9 | 324.9 |
| 1.991 | 326.3 | 326.3 | 326.4 |
| 2.133 | 327.7 | 327.7 | 327.7 |
| 2.276 | 329 | 329 | 329 |
| 2.418 | 330.2 | 330.2 | 330.3 |
| 2.56 | 331.4 | 331.4 | 331.5 |
| 2.702 | 332.6 | 332.6 | 332.6 |
| 2.844 | 333.7 | 333.7 | 333.7 |
| 2.987 | 334.8 | 334.8 | 334.8 |
| 3.129 | 335.8 | 335.9 | 335.9 |
| 3.271 | 336.9 | 336.9 | 336.9 |
| 3.413 | 337.9 | 337.9 | 337.9 |
| 3.556 | 338.8 | 338.8 | 338.9 |
| 3.698 | 339.8 | 339.8 | 339.8 |
| 3.84 | 340.7 | 340.7 | 340.7 |
| 3.982 | 341.6 | 341.6 | 341.6 |
| 4.124 | 342.4 | 342.4 | 342.5 |
| 4.267 | 343.3 | 343.3 | 343.3 |
| 4.409 | 344.1 | 344.1 | 344.1 |
| 4.551 | 344.9 | 344.9 | 344.9 |
- h = 64 s
- h = 16 s
Data table (every 2th point; all 65 are in plots/thermalStepError.csv)
| Time (h) | h = 64 s | h = 16 s |
|---|---|---|
| 0 | 0 | 0 |
| 0.1422 | 0.05685 | 0.01383 |
| 0.2844 | 0.06274 | 0.01554 |
| 0.4267 | 0.06455 | 0.01607 |
| 0.5689 | 0.06688 | 0.01665 |
| 0.7111 | 0.06873 | 0.0171 |
| 0.8533 | 0.06942 | 0.01727 |
| 0.9956 | 0.06892 | 0.01715 |
| 1.138 | 0.06749 | 0.0168 |
| 1.28 | 0.06545 | 0.01631 |
| 1.422 | 0.06307 | 0.01572 |
| 1.564 | 0.06056 | 0.01511 |
| 1.707 | 0.05807 | 0.0145 |
| 1.849 | 0.05571 | 0.01392 |
| 1.991 | 0.05354 | 0.01338 |
| 2.133 | 0.05158 | 0.01289 |
| 2.276 | 0.04985 | 0.01247 |
| 2.418 | 0.04836 | 0.0121 |
| 2.56 | 0.04708 | 0.01178 |
| 2.702 | 0.04601 | 0.01151 |
| 2.844 | 0.04512 | 0.01129 |
| 2.987 | 0.0444 | 0.01111 |
| 3.129 | 0.04381 | 0.01096 |
| 3.271 | 0.04334 | 0.01084 |
| 3.413 | 0.04298 | 0.01075 |
| 3.556 | 0.0427 | 0.01068 |
| 3.698 | 0.04249 | 0.01062 |
| 3.84 | 0.04233 | 0.01058 |
| 3.982 | 0.04222 | 0.01055 |
| 4.124 | 0.04214 | 0.01053 |
| 4.267 | 0.04208 | 0.01052 |
| 4.409 | 0.04204 | 0.01051 |
| 4.551 | 0.04201 | 0.0105 |
- Mass A (heated)
- Mass B
- Mass C
- Mass D
Data table (every 2th point; all 65 are in plots/thermalError.csv)
| Time (h) | Mass A (heated) | Mass B | Mass C | Mass D |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 0.1422 | 0.01383 | 0.02987 | 0.001792 | 0.01122 |
| 0.2844 | 0.01554 | 0.01521 | 4.31e-4 | 0.01634 |
| 0.4267 | 0.01607 | 0.002673 | 0.002134 | 0.01825 |
| 0.5689 | 0.01665 | 0.003978 | 0.002936 | 0.01832 |
| 0.7111 | 0.0171 | 0.007038 | 0.003089 | 0.01733 |
| 0.8533 | 0.01727 | 0.008351 | 0.002823 | 0.01576 |
| 0.9956 | 0.01715 | 0.008877 | 0.002295 | 0.01392 |
| 1.138 | 0.0168 | 0.009054 | 0.001604 | 0.012 |
| 1.28 | 0.01631 | 0.009076 | 8.20e-4 | 0.01011 |
| 1.422 | 0.01572 | 0.009032 | 9.22e-6 | 0.00832 |
| 1.564 | 0.01511 | 0.008963 | 8.47e-4 | 0.006659 |
| 1.707 | 0.0145 | 0.00889 | 0.001669 | 0.005144 |
| 1.849 | 0.01392 | 0.008823 | 0.002458 | 0.003778 |
| 1.991 | 0.01338 | 0.008768 | 0.003204 | 0.002557 |
| 2.133 | 0.01289 | 0.008727 | 0.003898 | 0.001471 |
| 2.276 | 0.01247 | 0.008702 | 0.00454 | 5.10e-4 |
| 2.418 | 0.0121 | 0.008691 | 0.005127 | 3.36e-4 |
| 2.56 | 0.01178 | 0.008693 | 0.005662 | 0.00108 |
| 2.702 | 0.01151 | 0.008706 | 0.006145 | 0.001731 |
| 2.844 | 0.01129 | 0.008729 | 0.006581 | 0.002301 |
| 2.987 | 0.01111 | 0.00876 | 0.006971 | 0.002799 |
| 3.129 | 0.01096 | 0.008796 | 0.00732 | 0.003232 |
| 3.271 | 0.01084 | 0.008837 | 0.007631 | 0.003609 |
| 3.413 | 0.01075 | 0.00888 | 0.007908 | 0.003936 |
| 3.556 | 0.01068 | 0.008924 | 0.008152 | 0.00422 |
| 3.698 | 0.01062 | 0.008968 | 0.008368 | 0.004466 |
| 3.84 | 0.01058 | 0.009011 | 0.008557 | 0.004678 |
| 3.982 | 0.01055 | 0.009052 | 0.008723 | 0.004861 |
| 4.124 | 0.01053 | 0.00909 | 0.008867 | 0.005018 |
| 4.267 | 0.01052 | 0.009124 | 0.008992 | 0.005152 |
| 4.409 | 0.01051 | 0.009154 | 0.009099 | 0.005266 |
| 4.551 | 0.0105 | 0.009181 | 0.00919 | 0.005363 |
Checks
| Check | What it measures | Value | Threshold | Result |
|---|---|---|---|---|
transientRelativeError | Largest temperature error over the transient, relative to each mass's range (h = 16 s) | 0.001467 | ≤ 0.0018 | ✓ Pass |
energyBalanceResidual | Energy balance from Konjugate's own states, Σ C ΔT against heat supplied minus heat lost, relative to heat supplied | 5.57e-15 | ≤ 1.00e-12 | ✓ Pass |
steadyStateError | Largest final-temperature error against the exact steady state after 524288 s | 1.81e-10 | ≤ 1.00e-8 | ✓ Pass |
semiImplicitDifference | Semi-implicit against explicit integration: identical, since each node has one state and other nodes are read from the snapshot | 0 | ≤ 0 | ✓ Pass |
referenceAgreement | This reference against SciPy's scipy.linalg.expm (reference.json), largest difference relative to each column's magnitude (temperatures and heat lost) | 1.19e-12 | ≤ 1.00e-10 | ✓ Pass |
All 3 result rows
| Case | Method | h (s) | Substeps | Horizon (s) | Max abs error | RMSE | Relative error | Conservation error | Steady-state error | Steps | Substeps run | Evaluations | Note |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| transient | explicit Euler | 16 | 1 | 16,380 | 0.02987 | 0.009852 | 0.001467 | 5.57e-15 | – | 1,024 | 6,144 | 13,310 | conservation = energy-balance residual / heat supplied |
| transient | explicit Euler | 64 | 1 | 16,380 | 0.1252 | 0.03973 | 0.00593 | 2.42e-15 | – | 256 | 1,536 | 3,328 | conservation = energy-balance residual / heat supplied |
| steady state | explicit Euler | 64 | 1 | 5.24e5 | – | – | – | – | 1.81e-10 | 8,192 | 49,150 | 1.06e5 | final temperatures against A T* = -b |
RLC circuits
A series RLC circuit and a pair of RLC loops coupled through a resistor, driven by a 10 V step: currents, voltages and energy dissipated against the exact solution, for explicit and semi-implicit Euler.
Directory benchmarks/electrical/rlcCircuits/ · models seriesRlc.kjt, coupledRlc.kjt · numerical reference reference.json: scipy.linalg.expm of the augmented matrix, energy dissipated from the energy balance V q - stored (SciPy 1.13.1, NumPy 2.0.2)
- Exact (matrix exponential)
- Konjugate, explicit Euler
- Konjugate, semi-implicit Euler
Data table (every 2th point; all 65 are in plots/seriesRlcCurrent.csv)
| Time (ms) | Exact (matrix exponential) | Konjugate, explicit Euler | Konjugate, semi-implicit Euler |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0.9766 | 0.7528 | 0.7778 | 0.7566 |
| 1.953 | 0.77 | 0.8138 | 0.7699 |
| 2.93 | 0.1684 | 0.1726 | 0.1619 |
| 3.906 | -0.4611 | -0.5295 | -0.4678 |
| 4.883 | -0.6102 | -0.7046 | -0.6091 |
| 5.859 | -0.2449 | -0.2751 | -0.2355 |
| 6.836 | 0.2514 | 0.327 | 0.2608 |
| 7.813 | 0.4586 | 0.5821 | 0.4589 |
| 8.789 | 0.2623 | 0.3237 | 0.2527 |
| 9.766 | -0.1089 | -0.1693 | -0.1198 |
| 10.74 | -0.3272 | -0.4596 | -0.3296 |
| 11.72 | -0.2451 | -0.3331 | -0.2369 |
| 12.7 | 0.01843 | 0.05253 | 0.02967 |
| 13.67 | 0.2205 | 0.3456 | 0.2248 |
| 14.65 | 0.2104 | 0.3158 | 0.2044 |
| 15.63 | 0.03383 | 0.02876 | 0.02331 |
| 16.6 | -0.1384 | -0.2454 | -0.1442 |
| 17.58 | -0.1694 | -0.2819 | -0.1659 |
| 18.55 | -0.05944 | -0.08073 | -0.05036 |
| 19.53 | 0.07857 | 0.1615 | 0.08509 |
| 20.51 | 0.1293 | 0.2394 | 0.128 |
| 21.48 | 0.0676 | 0.1095 | 0.06031 |
| 22.46 | -0.03718 | -0.0943 | -0.04376 |
| 23.44 | -0.09364 | -0.1942 | -0.09408 |
| 24.41 | -0.0652 | -0.1209 | -0.05979 |
| 25.39 | 0.01033 | 0.04297 | 0.01645 |
| 26.37 | 0.0642 | 0.1505 | 0.06586 |
| 27.34 | 0.05717 | 0.1199 | 0.05351 |
| 28.32 | 0.005672 | -0.005829 | 3.40e-4 |
| 29.3 | -0.04123 | -0.1108 | -0.04361 |
| 30.27 | -0.04684 | -0.1108 | -0.04466 |
| 31.25 | -0.014 | -0.01926 | -0.009618 |
- Exact
- Konjugate, explicit Euler
- Konjugate, semi-implicit Euler
Data table (every 2th point; all 65 are in plots/seriesRlcDissipated.csv)
| Time (ms) | Exact | Konjugate, explicit Euler | Konjugate, semi-implicit Euler |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0.9766 | 4.45e-4 | 4.32e-4 | 4.86e-4 |
| 1.953 | 0.001788 | 0.001896 | 0.001837 |
| 2.93 | 0.002337 | 0.002551 | 0.002346 |
| 3.906 | 0.00246 | 0.0027 | 0.002487 |
| 4.883 | 0.003134 | 0.003579 | 0.003177 |
| 5.859 | 0.003568 | 0.00418 | 0.003582 |
| 6.836 | 0.003609 | 0.004242 | 0.003625 |
| 7.813 | 0.003914 | 0.004723 | 0.003946 |
| 8.789 | 0.004216 | 0.005217 | 0.004231 |
| 9.766 | 0.00425 | 0.005275 | 0.00426 |
| 10.74 | 0.004372 | 0.005512 | 0.004394 |
| 11.72 | 0.004561 | 0.005882 | 0.004576 |
| 12.7 | 0.0046 | 0.005956 | 0.004607 |
| 13.67 | 0.004642 | 0.006059 | 0.004656 |
| 14.65 | 0.004749 | 0.006313 | 0.004762 |
| 15.63 | 0.004787 | 0.006399 | 0.004794 |
| 16.6 | 0.004799 | 0.006436 | 0.004809 |
| 17.58 | 0.004855 | 0.006597 | 0.004865 |
| 18.55 | 0.004886 | 0.006682 | 0.004892 |
| 19.53 | 0.00489 | 0.006695 | 0.004897 |
| 20.51 | 0.004915 | 0.006788 | 0.004924 |
| 21.48 | 0.004938 | 0.006863 | 0.004944 |
| 22.46 | 0.00494 | 0.006871 | 0.004946 |
| 23.44 | 0.004951 | 0.00692 | 0.004958 |
| 24.41 | 0.004965 | 0.006979 | 0.004971 |
| 25.39 | 0.004968 | 0.006987 | 0.004973 |
| 26.37 | 0.004972 | 0.00701 | 0.004978 |
| 27.34 | 0.00498 | 0.007053 | 0.004986 |
| 28.32 | 0.004983 | 0.007064 | 0.004988 |
| 29.3 | 0.004984 | 0.007073 | 0.00499 |
| 30.27 | 0.004989 | 0.007101 | 0.004994 |
| 31.25 | 0.004991 | 0.007113 | 0.004996 |
- Exact (matrix exponential)
- Konjugate, explicit Euler
- Konjugate, semi-implicit Euler
Data table (every 2th point; all 65 are in plots/coupledRlcCurrent.csv)
| Time (ms) | Exact (matrix exponential) | Konjugate, explicit Euler | Konjugate, semi-implicit Euler |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0.9766 | 0.7653 | 0.7872 | 0.7683 |
| 1.953 | 0.8934 | 0.9283 | 0.8915 |
| 2.93 | 0.5193 | 0.524 | 0.512 |
| 3.906 | 0.104 | 0.05632 | 0.09669 |
| 4.883 | 0.02187 | -0.0442 | 0.02023 |
| 5.859 | 0.2979 | 0.2786 | 0.3025 |
| 6.836 | 0.6544 | 0.7127 | 0.6601 |
| 7.813 | 0.7858 | 0.8791 | 0.7866 |
| 8.789 | 0.6131 | 0.6574 | 0.6078 |
| 9.766 | 0.3174 | 0.2653 | 0.3108 |
| 10.74 | 0.1566 | 0.04728 | 0.155 |
| 11.72 | 0.2443 | 0.1733 | 0.2494 |
| 12.7 | 0.4759 | 0.5097 | 0.4832 |
| 13.67 | 0.6431 | 0.756 | 0.646 |
| 14.65 | 0.618 | 0.7118 | 0.6139 |
| 15.63 | 0.4465 | 0.4376 | 0.4392 |
| 16.6 | 0.2883 | 0.183 | 0.2843 |
| 17.58 | 0.2707 | 0.1611 | 0.2735 |
| 18.55 | 0.3895 | 0.3716 | 0.3964 |
| 19.53 | 0.5295 | 0.6185 | 0.5344 |
| 20.51 | 0.5735 | 0.6907 | 0.5722 |
| 21.48 | 0.4984 | 0.5414 | 0.4923 |
| 22.46 | 0.3813 | 0.3141 | 0.3759 |
| 23.44 | 0.3235 | 0.2068 | 0.3234 |
| 24.41 | 0.3642 | 0.3003 | 0.3692 |
| 25.39 | 0.4572 | 0.4996 | 0.4627 |
| 26.37 | 0.5195 | 0.6284 | 0.5208 |
| 27.34 | 0.5043 | 0.5836 | 0.5006 |
| 28.32 | 0.4344 | 0.4169 | 0.4292 |
| 29.3 | 0.374 | 0.2787 | 0.3719 |
| 30.27 | 0.3714 | 0.2831 | 0.3738 |
| 31.25 | 0.4208 | 0.415 | 0.4255 |
- Exact
- Konjugate, explicit Euler
- Konjugate, semi-implicit Euler
Data table (every 2th point; all 65 are in plots/coupledRlcDissipated.csv)
| Time (ms) | Exact | Konjugate, explicit Euler | Konjugate, semi-implicit Euler |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0.9766 | 5.39e-4 | 5.09e-4 | 6.00e-4 |
| 1.953 | 0.003086 | 0.003136 | 0.003249 |
| 2.93 | 0.006611 | 0.006798 | 0.006794 |
| 3.906 | 0.01037 | 0.01059 | 0.01054 |
| 4.883 | 0.01463 | 0.01491 | 0.01479 |
| 5.859 | 0.01917 | 0.01952 | 0.01931 |
| 6.836 | 0.02395 | 0.02439 | 0.0241 |
| 7.813 | 0.02897 | 0.02967 | 0.02912 |
| 8.789 | 0.03361 | 0.03449 | 0.03373 |
| 9.766 | 0.03761 | 0.03842 | 0.03772 |
| 10.74 | 0.04152 | 0.04226 | 0.04163 |
| 11.72 | 0.04567 | 0.04646 | 0.0458 |
| 12.7 | 0.05007 | 0.05096 | 0.05022 |
| 13.67 | 0.05472 | 0.05584 | 0.05487 |
| 14.65 | 0.05932 | 0.06071 | 0.05946 |
| 15.63 | 0.06356 | 0.06497 | 0.06368 |
| 16.6 | 0.06757 | 0.06884 | 0.06768 |
| 17.58 | 0.07164 | 0.07287 | 0.07176 |
| 18.55 | 0.07589 | 0.07718 | 0.07603 |
| 19.53 | 0.08032 | 0.08177 | 0.08047 |
| 20.51 | 0.08482 | 0.08653 | 0.08496 |
| 21.48 | 0.08916 | 0.09099 | 0.08929 |
| 22.46 | 0.0933 | 0.09502 | 0.09341 |
| 23.44 | 0.09738 | 0.09899 | 0.0975 |
| 24.41 | 0.1016 | 0.1032 | 0.1017 |
| 25.39 | 0.1059 | 0.1076 | 0.106 |
| 26.37 | 0.1103 | 0.1122 | 0.1104 |
| 27.34 | 0.1146 | 0.1167 | 0.1148 |
| 28.32 | 0.1189 | 0.1209 | 0.119 |
| 29.3 | 0.123 | 0.1249 | 0.1231 |
| 30.27 | 0.1272 | 0.129 | 0.1273 |
| 31.25 | 0.1314 | 0.1333 | 0.1315 |
Checks
| Check | What it measures | Value | Threshold | Result |
|---|---|---|---|---|
seriesRelativeErrorExplicit | Series RLC: largest current/voltage error relative to range, explicit Euler, h = 2^-16 s | 0.01979 | ≤ 0.025 | ✓ Pass |
seriesDissipatedEnergyErrorExplicit | Series RLC: largest error in energy dissipated, relative to the exact total, explicit Euler | 0.08144 | ≤ 0.1 | ✓ Pass |
seriesEnergyBalanceDefectExplicit | Series RLC: energy-balance defect V q - stored - dissipated from Konjugate's own states, relative to the source's work, explicit Euler | 0.04293 | ≤ 0.054 | ✓ Pass |
seriesRelativeErrorSemiImplicit | Series RLC: largest current/voltage error relative to range, semi-implicit Euler, h = 2^-16 s | 0.004388 | ≤ 0.0055 | ✓ Pass |
seriesDissipatedEnergyErrorSemiImplicit | Series RLC: largest error in energy dissipated, relative to the exact total, semi-implicit Euler | 0.002764 | ≤ 0.0035 | ✓ Pass |
seriesEnergyBalanceDefectSemiImplicit | Series RLC: energy-balance defect V q - stored - dissipated from Konjugate's own states, relative to the source's work, semi-implicit Euler | 0.00287 | ≤ 0.0036 | ✓ Pass |
seriesReferenceAgreement | Series RLC: this reference against SciPy's expm and energy balance (reference.json), largest difference relative to each column's magnitude | 4.38e-14 | ≤ 1.00e-10 | ✓ Pass |
coupledRelativeErrorExplicit | Coupled RLC pair: largest current/voltage error relative to range, explicit Euler, h = 2^-16 s | 0.02765 | ≤ 0.035 | ✓ Pass |
coupledDissipatedEnergyErrorExplicit | Coupled RLC pair: largest error in energy dissipated, relative to the exact total, explicit Euler | 0.002923 | ≤ 0.0037 | ✓ Pass |
coupledEnergyBalanceDefectExplicit | Coupled RLC pair: energy-balance defect V q - stored - dissipated from Konjugate's own states, relative to the source's work, explicit Euler | 0.002784 | ≤ 0.0035 | ✓ Pass |
coupledRelativeErrorSemiImplicit | Coupled RLC pair: largest current/voltage error relative to range, semi-implicit Euler, h = 2^-16 s | 0.004811 | ≤ 0.006 | ✓ Pass |
coupledDissipatedEnergyErrorSemiImplicit | Coupled RLC pair: largest error in energy dissipated, relative to the exact total, semi-implicit Euler | 3.36e-4 | ≤ 4.20e-4 | ✓ Pass |
coupledEnergyBalanceDefectSemiImplicit | Coupled RLC pair: energy-balance defect V q - stored - dissipated from Konjugate's own states, relative to the source's work, semi-implicit Euler | 2.21e-4 | ≤ 2.80e-4 | ✓ Pass |
coupledReferenceAgreement | Coupled RLC pair: this reference against SciPy's expm and energy balance (reference.json), largest difference relative to each column's magnitude | 2.50e-14 | ≤ 1.00e-10 | ✓ Pass |
All 8 result rows
| Case | Method | h (s) | Substeps | Horizon (s) | Max abs error | RMSE | Relative error | Conservation error | Steps | Substeps run | Evaluations | Note |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Series RLC: currents and voltages | explicit Euler | 1.53e-5 | 1 | 0.03125 | 0.2902 | 0.1112 | 0.01979 | 0.04293 | 2,048 | 4,096 | 10,240 | dissipated-energy error 8.14e-2 of the total; conservation = energy-balance defect / source work |
| Series RLC: currents and voltages | explicit Euler | 6.10e-5 | 1 | 0.03125 | 1.321 | 0.5325 | 0.08987 | 0.2266 | 512 | 1,024 | 2,560 | dissipated-energy error 4.25e-1 of the total; conservation = energy-balance defect / source work |
| Series RLC: currents and voltages | semi-implicit Euler | 1.53e-5 | 1 | 0.03125 | 0.07505 | 0.02389 | 0.004388 | 0.00287 | 2,048 | 4,096 | 10,240 | dissipated-energy error 2.76e-3 of the total; conservation = energy-balance defect / source work |
| Series RLC: currents and voltages | semi-implicit Euler | 6.10e-5 | 1 | 0.03125 | 0.3022 | 0.09702 | 0.01767 | 0.01191 | 512 | 1,024 | 2,560 | dissipated-energy error 1.13e-2 of the total; conservation = energy-balance defect / source work |
| Coupled RLC pair: currents and voltages | explicit Euler | 1.53e-5 | 1 | 0.03125 | 0.2779 | 0.1099 | 0.02765 | 0.002784 | 2,048 | 6,144 | 24,580 | dissipated-energy error 2.92e-3 of the total; conservation = energy-balance defect / source work |
| Coupled RLC pair: currents and voltages | explicit Euler | 6.10e-5 | 1 | 0.03125 | 1.34 | 0.5454 | 0.1334 | 0.01586 | 512 | 1,536 | 6,144 | dissipated-energy error 1.58e-2 of the total; conservation = energy-balance defect / source work |
| Coupled RLC pair: currents and voltages | semi-implicit Euler | 1.53e-5 | 1 | 0.03125 | 0.06665 | 0.01771 | 0.004811 | 2.21e-4 | 2,048 | 6,144 | 24,580 | dissipated-energy error 3.36e-4 of the total; conservation = energy-balance defect / source work |
| Coupled RLC pair: currents and voltages | semi-implicit Euler | 6.10e-5 | 1 | 0.03125 | 0.2682 | 0.07229 | 0.01936 | 9.76e-4 | 512 | 1,536 | 6,144 | dissipated-energy error 1.40e-3 of the total; conservation = energy-balance defect / source work |
Harmonic oscillator
An undamped mass on a spring, one node: trajectory error against the exact solution and energy over a long run, explicit against semi-implicit Euler and Verlet.
Directory benchmarks/mechanical/harmonicOscillator/ · models harmonicOscillator.kjt
- Exact
- Konjugate, explicit Euler
- Konjugate, semi-implicit Euler
- Konjugate, Verlet
Data table (every 7th point; all 257 are in plots/oscillatorTrajectory.csv)
| Time (s) | Exact | Konjugate, explicit Euler | Konjugate, semi-implicit Euler | Konjugate, Verlet |
|---|---|---|---|---|
| 0 | 1 | 1 | 1 | 1 |
| 1.75 | -0.1782 | -0.1806 | -0.1706 | -0.1783 |
| 3.5 | -0.9365 | -0.9625 | -0.9392 | -0.9364 |
| 5.25 | 0.5121 | 0.5331 | 0.5054 | 0.5121 |
| 7 | 0.7539 | 0.7967 | 0.759 | 0.7539 |
| 8.75 | -0.7808 | -0.8356 | -0.776 | -0.7809 |
| 10.5 | -0.4755 | -0.517 | -0.4823 | -0.4754 |
| 12.25 | 0.9504 | 1.045 | 0.948 | 0.9504 |
| 14 | 0.1367 | 0.1538 | 0.1443 | 0.1366 |
| 15.75 | -0.9991 | -1.13 | -0.9994 | -0.9991 |
| 17.5 | 0.2194 | 0.25 | 0.212 | 0.2196 |
| 19.25 | 0.9209 | 1.071 | 0.9239 | 0.9208 |
| 21 | -0.5477 | -0.6437 | -0.5414 | -0.5479 |
| 22.75 | -0.7256 | -0.8683 | -0.7308 | -0.7255 |
| 24.5 | 0.8064 | 0.9751 | 0.8019 | 0.8066 |
| 26.25 | 0.4381 | 0.5402 | 0.4449 | 0.4379 |
| 28 | -0.9626 | -1.197 | -0.9606 | -0.9627 |
| 29.75 | -0.09499 | -0.1229 | -0.1025 | -0.09469 |
| 31.5 | 0.9965 | 1.275 | 0.9971 | 0.9964 |
| 33.25 | -0.2602 | -0.334 | -0.253 | -0.2606 |
| 35 | -0.9037 | -1.189 | -0.9069 | -0.9035 |
| 36.75 | 0.5824 | 0.7728 | 0.5764 | 0.5827 |
| 38.5 | 0.6961 | 0.9433 | 0.7014 | 0.6958 |
| 40.25 | -0.8305 | -1.135 | -0.8264 | -0.8308 |
| 42 | -0.4 | -0.5596 | -0.4068 | -0.3996 |
| 43.75 | 0.9731 | 1.368 | 0.9714 | 0.9732 |
| 45.5 | 0.05307 | 0.08099 | 0.06041 | 0.05261 |
| 47.25 | -0.9921 | -1.436 | -0.993 | -0.992 |
| 49 | 0.3006 | 0.4352 | 0.2936 | 0.3011 |
| 50.75 | 0.8849 | 1.318 | 0.8883 | 0.8847 |
| 52.5 | -0.6161 | -0.9233 | -0.6103 | -0.6165 |
| 54.25 | -0.6653 | -1.021 | -0.6707 | -0.6649 |
| 56 | 0.8532 | 1.318 | 0.8494 | 0.8535 |
| 57.75 | 0.3611 | 0.5738 | 0.3679 | 0.3606 |
| 59.5 | -0.982 | -1.561 | -0.9806 | -0.9821 |
| 61.25 | -0.01106 | -0.02588 | -0.01825 | -0.01043 |
| 63 | 0.9859 | 1.614 | 0.9871 | 0.9858 |
- Konjugate, explicit Euler
- Konjugate, semi-implicit Euler
- Konjugate, Verlet
Data table (every 26th point; all 1024 are in plots/oscillatorEnergy.csv)
| Time (s) | Konjugate, explicit Euler | Konjugate, semi-implicit Euler | Konjugate, Verlet |
|---|---|---|---|
| 1 | 0.01575 | 0.00719 | 4.32e-5 |
| 27 | 0.5247 | 0.007799 | 6.10e-5 |
| 53 | 1.289 | 0.007828 | 6.10e-5 |
| 79 | 2.436 | 0.007842 | 6.10e-5 |
| 105 | 4.157 | 0.007854 | 6.10e-5 |
| 131 | 6.742 | 0.007863 | 6.10e-5 |
| 157 | 10.62 | 0.007869 | 6.10e-5 |
| 183 | 16.44 | 0.007874 | 6.10e-5 |
| 209 | 25.19 | 0.007874 | 6.10e-5 |
| 235 | 38.31 | 0.007874 | 6.10e-5 |
| 261 | 58.01 | 0.007874 | 6.10e-5 |
| 287 | 87.57 | 0.007874 | 6.10e-5 |
| 313 | 132 | 0.007874 | 6.10e-5 |
| 339 | 198.6 | 0.007874 | 6.10e-5 |
| 365 | 298.6 | 0.007874 | 6.10e-5 |
| 391 | 448.7 | 0.007874 | 6.10e-5 |
| 417 | 674.1 | 0.007874 | 6.10e-5 |
| 443 | 1,012 | 0.007874 | 6.10e-5 |
| 469 | 1,520 | 0.007874 | 6.10e-5 |
| 495 | 2,282 | 0.007874 | 6.10e-5 |
| 521 | 3,427 | 0.007874 | 6.10e-5 |
| 547 | 5,144 | 0.007874 | 6.10e-5 |
| 573 | 7,723 | 0.007874 | 6.10e-5 |
| 599 | 11,590 | 0.007874 | 6.10e-5 |
| 625 | 17,400 | 0.007874 | 6.10e-5 |
| 651 | 26,120 | 0.007874 | 6.10e-5 |
| 677 | 39,210 | 0.007874 | 6.10e-5 |
| 703 | 58,870 | 0.007874 | 6.10e-5 |
| 729 | 88,360 | 0.007874 | 6.10e-5 |
| 755 | 1.33e5 | 0.007874 | 6.10e-5 |
| 781 | 1.99e5 | 0.007874 | 6.10e-5 |
| 807 | 2.99e5 | 0.007874 | 6.10e-5 |
| 833 | 4.49e5 | 0.007874 | 6.10e-5 |
| 859 | 6.73e5 | 0.007874 | 6.10e-5 |
| 885 | 1.01e6 | 0.007874 | 6.10e-5 |
| 911 | 1.52e6 | 0.007874 | 6.10e-5 |
| 937 | 2.28e6 | 0.007874 | 6.10e-5 |
| 963 | 3.42e6 | 0.007874 | 6.10e-5 |
| 989 | 5.13e6 | 0.007874 | 6.10e-5 |
| 1,015 | 7.71e6 | 0.007874 | 6.10e-5 |
Checks
| Check | What it measures | Value | Threshold | Result |
|---|---|---|---|---|
relativeErrorExplicit | Largest state error relative to its range over 64 s, explicit Euler, h = 2^-6 s | 0.3149 | ≤ 0.39 | ✓ Pass |
energyDriftExplicit | Largest relative energy drift over 1024 s, explicit Euler, h = 2^-6 s | 8.87e6 | 7.10e6 to 1.10e7 | ✓ Pass |
relativeErrorSemiImplicit | Largest state error relative to its range over 64 s, semi-implicit Euler, h = 2^-6 s | 0.003889 | ≤ 0.0049 | ✓ Pass |
energyDriftSemiImplicit | Largest relative energy drift over 1024 s, semi-implicit Euler, h = 2^-6 s | 0.007874 | ≤ 0.0098 | ✓ Pass |
relativeErrorVerlet | Largest state error relative to its range over 64 s, Verlet, h = 2^-6 s | 3.18e-4 | ≤ 4.00e-4 | ✓ Pass |
energyDriftVerlet | Largest relative energy drift over 1024 s, Verlet, h = 2^-6 s | 6.10e-5 | ≤ 7.70e-5 | ✓ Pass |
All 6 result rows
| Case | Method | h (s) | Substeps | Horizon (s) | Max abs error | RMSE | Relative error | Conservation error | Steps | Substeps run | Evaluations | Note |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Harmonic oscillator: trajectory | explicit Euler | 0.01563 | 1 | 64 | 0.6298 | 0.2487 | 0.3149 | 1.718 | 4,096 | 4,096 | 8,192 | conservation = largest relative energy drift |
| Harmonic oscillator: long-run energy | explicit Euler | 0.01563 | 1 | 1,024 | – | – | – | 8.87e6 | 65,540 | 65,540 | 1.31e5 | final relative energy change 8.87e+6 |
| Harmonic oscillator: trajectory | semi-implicit Euler | 0.01563 | 1 | 64 | 0.007778 | 0.003739 | 0.003889 | 0.007874 | 4,096 | 4,096 | 8,192 | conservation = largest relative energy drift |
| Harmonic oscillator: long-run energy | semi-implicit Euler | 0.01563 | 1 | 1,024 | – | – | – | 0.007874 | 65,540 | 65,540 | 1.31e5 | final relative energy change -2.29e-3 |
| Harmonic oscillator: trajectory | Verlet | 0.01563 | 1 | 64 | 6.37e-4 | 2.67e-4 | 3.18e-4 | 6.10e-5 | 4,096 | 4,096 | 12,290 | conservation = largest relative energy drift |
| Harmonic oscillator: long-run energy | Verlet | 0.01563 | 1 | 1,024 | – | – | – | 6.10e-5 | 65,540 | 65,540 | 1.97e5 | final relative energy change 1.34e-6 |
Pendulum at large amplitude
A pendulum released from rest at 2 rad, one node: trajectory error against the exact elliptic-function solution and energy over a long run, explicit against semi-implicit Euler and Verlet.
Directory benchmarks/mechanical/pendulum/ · models pendulum.kjt · numerical reference reference.json: scipy.special.ellipj (exact), and solve_ivp DOP853 (SciPy 1.13.1, NumPy 2.0.2, rtol 1e-12)
- Exact
- Konjugate, explicit Euler
- Konjugate, semi-implicit Euler
- Konjugate, Verlet
Data table (every 7th point; all 257 are in plots/pendulumTrajectory.csv)
| Time (s) | Exact | Konjugate, explicit Euler | Konjugate, semi-implicit Euler | Konjugate, Verlet |
|---|---|---|---|---|
| 0 | 2 | 2 | 2 | 2 |
| 0.4375 | 1.113 | 1.115 | 1.115 | 1.113 |
| 0.875 | -1.027 | -1.028 | -1.025 | -1.027 |
| 1.313 | -1.998 | -2.008 | -1.998 | -1.998 |
| 1.75 | -1.195 | -1.218 | -1.196 | -1.195 |
| 2.188 | 0.9376 | 0.9212 | 0.9355 | 0.9376 |
| 2.625 | 1.993 | 2.009 | 1.992 | 1.993 |
| 3.063 | 1.273 | 1.333 | 1.275 | 1.273 |
| 3.5 | -0.8452 | -0.7873 | -0.8429 | -0.8452 |
| 3.938 | -1.983 | -2.001 | -1.983 | -1.983 |
| 4.375 | -1.347 | -1.456 | -1.349 | -1.347 |
| 4.813 | 0.7496 | 0.6233 | 0.7473 | 0.7496 |
| 5.25 | 1.97 | 1.979 | 1.97 | 1.97 |
| 5.688 | 1.417 | 1.583 | 1.419 | 1.417 |
| 6.125 | -0.6513 | -0.427 | -0.6489 | -0.6513 |
| 6.563 | -1.953 | -1.939 | -1.953 | -1.953 |
| 7 | -1.484 | -1.708 | -1.485 | -1.484 |
| 7.438 | 0.5505 | 0.1975 | 0.548 | 0.5505 |
| 7.875 | 1.933 | 1.875 | 1.932 | 1.933 |
| 8.313 | 1.546 | 1.826 | 1.547 | 1.546 |
| 8.75 | -0.4475 | 0.06374 | -0.445 | -0.4475 |
| 9.188 | -1.908 | -1.78 | -1.907 | -1.908 |
| 9.625 | -1.604 | -1.932 | -1.605 | -1.604 |
| 10.06 | 0.3428 | -0.3518 | 0.3402 | 0.3428 |
| 10.5 | 1.88 | 1.647 | 1.879 | 1.88 |
| 10.94 | 1.658 | 2.017 | 1.659 | 1.658 |
| 11.38 | -0.2367 | 0.6578 | -0.2341 | -0.2367 |
| 11.81 | -1.848 | -1.467 | -1.847 | -1.848 |
| 12.25 | -1.708 | -2.077 | -1.709 | -1.708 |
| 12.69 | 0.1296 | -0.9691 | 0.127 | 0.1296 |
| 13.13 | 1.811 | 1.23 | 1.81 | 1.811 |
| 13.56 | 1.754 | 2.104 | 1.755 | 1.754 |
| 14 | -0.02202 | 1.271 | -0.01943 | -0.02201 |
| 14.44 | -1.771 | -0.9282 | -1.77 | -1.771 |
| 14.88 | -1.795 | -2.09 | -1.796 | -1.795 |
| 15.31 | -0.08566 | -1.547 | -0.08824 | -0.08567 |
| 15.75 | 1.727 | 0.5583 | 1.726 | 1.727 |
- Konjugate, explicit Euler
- Konjugate, semi-implicit Euler
- Konjugate, Verlet
Data table (every 13th point; all 512 are in plots/pendulumEnergy.csv)
| Time (s) | Konjugate, explicit Euler | Konjugate, semi-implicit Euler | Konjugate, Verlet |
|---|---|---|---|
| 0.25 | 7.11e-4 | 7.87e-4 | 1.05e-7 |
| 3.5 | 0.01759 | 0.001258 | 1.23e-6 |
| 6.75 | 0.03263 | 0.001259 | 1.23e-6 |
| 10 | 0.04776 | 0.00126 | 1.23e-6 |
| 13.25 | 0.0646 | 0.00126 | 1.23e-6 |
| 16.5 | 0.07904 | 0.001261 | 1.23e-6 |
| 19.75 | 0.0943 | 0.001262 | 1.23e-6 |
| 23 | 0.1109 | 0.001263 | 1.23e-6 |
| 26.25 | 0.1252 | 0.001264 | 1.23e-6 |
| 29.5 | 0.1394 | 0.001264 | 1.23e-6 |
| 32.75 | 0.1549 | 0.001265 | 1.23e-6 |
| 36 | 0.1708 | 0.001266 | 1.23e-6 |
| 39.25 | 0.1849 | 0.001266 | 1.23e-6 |
| 42.5 | 0.1987 | 0.001267 | 1.23e-6 |
| 45.75 | 0.2123 | 0.001268 | 1.23e-6 |
| 49 | 0.2259 | 0.001268 | 1.23e-6 |
| 52.25 | 0.2393 | 0.001268 | 1.23e-6 |
| 55.5 | 0.2527 | 0.001269 | 1.23e-6 |
| 58.75 | 0.2659 | 0.001269 | 1.23e-6 |
| 62 | 0.2788 | 0.001269 | 1.23e-6 |
| 65.25 | 0.2917 | 0.001269 | 1.23e-6 |
| 68.5 | 0.3045 | 0.00127 | 1.23e-6 |
| 71.75 | 0.3172 | 0.00127 | 1.23e-6 |
| 75 | 0.3298 | 0.00127 | 1.23e-6 |
| 78.25 | 0.3411 | 0.00127 | 1.23e-6 |
| 81.5 | 0.3495 | 0.00127 | 1.23e-6 |
| 84.75 | 0.3616 | 0.00127 | 1.23e-6 |
| 88 | 0.3732 | 0.00127 | 1.23e-6 |
| 91.25 | 0.3802 | 0.00127 | 1.23e-6 |
| 94.5 | 0.392 | 0.00127 | 1.23e-6 |
| 97.75 | 0.3982 | 0.00127 | 1.23e-6 |
| 101 | 0.4048 | 0.00127 | 1.23e-6 |
| 104.3 | 0.4141 | 0.00127 | 1.23e-6 |
| 107.5 | 0.4214 | 0.00127 | 1.23e-6 |
| 110.8 | 0.427 | 0.00127 | 1.23e-6 |
| 114 | 0.4349 | 0.00127 | 1.23e-6 |
| 117.3 | 0.4436 | 0.00127 | 1.23e-6 |
| 120.5 | 0.4536 | 0.00127 | 1.23e-6 |
| 123.8 | 0.4596 | 0.00127 | 1.23e-6 |
| 127 | 0.4702 | 0.00127 | 1.23e-6 |
Checks
| Check | What it measures | Value | Threshold | Result |
|---|---|---|---|---|
relativeErrorExplicit | Largest state error relative to its range over 16 s, explicit Euler, h = 2^-10 s | 0.4082 | ≤ 0.51 | ✓ Pass |
energyDriftExplicit | Largest relative energy drift over 128 s, explicit Euler, h = 2^-10 s | 0.4713 | 0.38 to 0.59 | ✓ Pass |
relativeErrorSemiImplicit | Largest state error relative to its range over 16 s, semi-implicit Euler, h = 2^-10 s | 6.46e-4 | ≤ 8.10e-4 | ✓ Pass |
energyDriftSemiImplicit | Largest relative energy drift over 128 s, semi-implicit Euler, h = 2^-10 s | 0.00127 | ≤ 0.0016 | ✓ Pass |
relativeErrorVerlet | Largest state error relative to its range over 16 s, Verlet, h = 2^-10 s | 3.27e-6 | ≤ 4.10e-6 | ✓ Pass |
energyDriftVerlet | Largest relative energy drift over 128 s, Verlet, h = 2^-10 s | 1.23e-6 | ≤ 1.60e-6 | ✓ Pass |
referenceAgreementElliptic | This reference against scipy.special.ellipj (reference.json), largest difference relative to each column's magnitude | 2.78e-15 | ≤ 1.00e-10 | ✓ Pass |
referenceAgreementSolveIvp | This reference against SciPy solve_ivp, DOP853 at rtol = atol = 1e-12 (reference.json), relative to each column's magnitude: a numerical check, not an exact one | 1.47e-11 | ≤ 1.00e-9 | ✓ Pass |
- Period at θ0 = 2 rad: 2.665871 s (small-angle formula: 2.006067 s).
All 6 result rows
| Case | Method | h (s) | Substeps | Horizon (s) | Max abs error | RMSE | Relative error | Conservation error | Steps | Substeps run | Evaluations | Note |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Pendulum: trajectory | explicit Euler | 9.77e-4 | 1 | 16 | 3.188 | 0.9386 | 0.4082 | 0.07777 | 16,380 | 16,380 | 32,770 | conservation = largest relative energy drift |
| Pendulum: long-run energy | explicit Euler | 9.77e-4 | 1 | 128 | – | – | – | 0.4713 | 1.31e5 | 1.31e5 | 2.62e5 | final relative energy change 4.71e-1 |
| Pendulum: trajectory | semi-implicit Euler | 9.77e-4 | 1 | 16 | 0.002586 | 0.001186 | 6.46e-4 | 0.00127 | 16,380 | 16,380 | 32,770 | conservation = largest relative energy drift |
| Pendulum: long-run energy | semi-implicit Euler | 9.77e-4 | 1 | 128 | – | – | – | 0.00127 | 1.31e5 | 1.31e5 | 2.62e5 | final relative energy change 1.07e-4 |
| Pendulum: trajectory | Verlet | 9.77e-4 | 1 | 16 | 2.45e-5 | 9.59e-6 | 3.27e-6 | 1.23e-6 | 16,380 | 16,380 | 49,150 | conservation = largest relative energy drift |
| Pendulum: long-run energy | Verlet | 9.77e-4 | 1 | 128 | – | – | – | 1.23e-6 | 1.31e5 | 1.31e5 | 3.93e5 | final relative energy change -4.03e-9 |
Lotka–Volterra
Predator and prey over about 50 cycles, as one node and as two: drift of the conserved quantity for explicit and semi-implicit Euler (Verlet does not apply, and is refused in words), and trajectory error against a SciPy DOP853 reference.
Directory benchmarks/population/lotkaVolterra/ · models oneNode.kjt, twoNodes.kjt · numerical reference reference.json: solve_ivp DOP853 (SciPy 1.13.1, NumPy 2.0.2, rtol 1e-12)
- SciPy DOP853 reference
- Konjugate, explicit Euler
- Konjugate, semi-implicit Euler
Data table (every 13th point; all 513 are in plots/lotkaVolterraPhase.csv)
| SciPy DOP853 reference: Prey | Predator | Konjugate, explicit Euler: Prey | Predator | Konjugate, semi-implicit Euler: Prey | Predator |
|---|---|---|---|---|---|
| 10 | 10 | 10 | 10 | 10 | 10 |
| 0.8214 | 9.716 | 0.7654 | 9.726 | 0.7906 | 9.606 |
| 0.1291 | 7.223 | 0.1154 | 7.211 | 0.1235 | 7.123 |
| 0.04223 | 5.25 | 0.03725 | 5.233 | 0.04085 | 5.171 |
| 0.024 | 3.803 | 0.02113 | 3.786 | 0.02358 | 3.741 |
| 0.0204 | 2.753 | 0.01799 | 2.737 | 0.02033 | 2.705 |
| 0.02322 | 1.992 | 0.02052 | 1.978 | 0.02339 | 1.956 |
| 0.03264 | 1.443 | 0.02888 | 1.431 | 0.03313 | 1.415 |
| 0.05342 | 1.046 | 0.04728 | 1.036 | 0.05446 | 1.025 |
| 0.09762 | 0.7602 | 0.08628 | 0.7516 | 0.09966 | 0.7443 |
| 0.193 | 0.5555 | 0.1702 | 0.5479 | 0.197 | 0.5435 |
| 0.4038 | 0.4107 | 0.3549 | 0.4036 | 0.4111 | 0.4018 |
| 0.8787 | 0.3118 | 0.7693 | 0.3042 | 0.8913 | 0.3052 |
| 1.962 | 0.2514 | 1.712 | 0.2415 | 1.981 | 0.2464 |
| 4.439 | 0.2324 | 3.863 | 0.2159 | 4.46 | 0.2286 |
| 9.997 | 0.2931 | 8.718 | 0.2523 | 9.994 | 0.2897 |
| 21.18 | 0.7197 | 18.93 | 0.5282 | 21.12 | 0.7097 |
| 27.22 | 4.499 | 30.39 | 2.963 | 27.86 | 4.366 |
| 4.163 | 10.79 | 6.809 | 11.07 | 4.371 | 10.73 |
| 0.3941 | 8.824 | 0.4663 | 9.675 | 0.396 | 8.775 |
| 0.08142 | 6.473 | 0.07267 | 7.1 | 0.08044 | 6.429 |
| 0.03289 | 4.696 | 0.02426 | 5.142 | 0.03248 | 4.659 |
| 0.02181 | 3.4 | 0.01413 | 3.717 | 0.02165 | 3.37 |
| 0.02074 | 2.461 | 0.01227 | 2.686 | 0.0207 | 2.437 |
| 0.0256 | 1.781 | 0.01419 | 1.941 | 0.02566 | 1.762 |
| 0.03814 | 1.29 | 0.02019 | 1.403 | 0.03834 | 1.275 |
| 0.06513 | 0.9361 | 0.03331 | 1.015 | 0.0655 | 0.9242 |
| 0.1227 | 0.6813 | 0.06115 | 0.735 | 0.1232 | 0.672 |
| 0.2479 | 0.4994 | 0.1212 | 0.5343 | 0.2484 | 0.4922 |
| 0.5267 | 0.3718 | 0.2538 | 0.3913 | 0.5257 | 0.3662 |
| 1.158 | 0.2867 | 0.5523 | 0.2913 | 1.15 | 0.2822 |
| 2.601 | 0.2394 | 1.234 | 0.2252 | 2.571 | 0.2355 |
| 5.892 | 0.2399 | 2.804 | 0.1898 | 5.794 | 0.2355 |
| 13.14 | 0.362 | 6.406 | 0.1949 | 12.87 | 0.3518 |
| 25.93 | 1.249 | 14.41 | 0.3121 | 25.6 | 1.174 |
| 18.65 | 7.764 | 28.84 | 1.231 | 20.3 | 7.367 |
| 1.707 | 10.42 | 18.4 | 8.968 | 1.875 | 10.41 |
| 0.209 | 7.949 | 1.093 | 11.15 | 0.2171 | 7.961 |
| 0.05566 | 5.794 | 0.1065 | 8.319 | 0.05627 | 5.798 |
| 0.02718 | 4.2 | 0.02506 | 6.031 | 0.02719 | 4.198 |
- Konjugate, explicit Euler
- Konjugate, semi-implicit Euler
Data table (every 26th point; all 1025 are in plots/lotkaVolterraInvariant.csv)
| Time (s) | Konjugate, explicit Euler | Konjugate, semi-implicit Euler |
|---|---|---|
| 0 | 0 | 0 |
| 13 | 0.04894 | 0.003945 |
| 26 | 0.1318 | 0.009003 |
| 39 | 0.2263 | 0.01032 |
| 52 | 0.3309 | 0.008276 |
| 65 | 0.4501 | 0.005587 |
| 78 | 0.5581 | 0.003225 |
| 91 | 0.6066 | 0.001558 |
| 104 | 0.7508 | 4.00e-4 |
| 117 | 0.9185 | -0.002212 |
| 130 | 0.9555 | -0.01205 |
| 143 | 1.132 | 0.01815 |
| 156 | 1.348 | 0.005657 |
| 169 | 1.377 | 0.01032 |
| 182 | 1.621 | 0.009564 |
| 195 | 1.879 | 0.007029 |
| 208 | 1.939 | 0.004421 |
| 221 | 2.28 | 0.002358 |
| 234 | 2.308 | 0.001009 |
| 247 | 2.713 | -3.73e-4 |
| 260 | 2.742 | -0.00557 |
| 273 | 3.229 | -0.005337 |
| 286 | 3.258 | 0.004415 |
| 299 | 3.664 | 0.008655 |
| 312 | 3.885 | 0.01039 |
| 325 | 3.923 | 0.008465 |
| 338 | 4.668 | 0.005779 |
| 351 | 4.701 | 0.003376 |
| 364 | 4.74 | 0.001655 |
| 377 | 5.695 | 4.90e-4 |
| 390 | 5.732 | -0.001865 |
| 403 | 5.769 | -0.01117 |
| 416 | 7.043 | 0.02039 |
| 429 | 7.079 | 0.005146 |
| 442 | 7.118 | 0.01021 |
| 455 | 8.856 | 0.009712 |
| 468 | 8.923 | 0.007227 |
| 481 | 8.961 | 0.004596 |
| 494 | 9 | 0.002483 |
| 507 | 11.28 | 0.00109 |
Checks
| Check | What it measures | Value | Threshold | Result |
|---|---|---|---|---|
invariantDriftExplicit | Largest drift of V over 512 s, relative to V(0) - V*, one node, explicit Euler, h = 2^-6 s | 11.63 | 9.3 to 15 | ✓ Pass |
relativeErrorExplicit | Largest population error against the SciPy reference relative to its range, one node, explicit Euler, h = 2^-6 s | 5.493 | ≤ 6.9 | ✓ Pass |
invariantDriftSemiImplicit | Largest drift of V over 512 s, relative to V(0) - V*, one node, semi-implicit Euler, h = 2^-6 s | 0.02102 | ≤ 0.026 | ✓ Pass |
relativeErrorSemiImplicit | Largest population error against the SciPy reference relative to its range, one node, semi-implicit Euler, h = 2^-6 s | 0.7049 | ≤ 0.88 | ✓ Pass |
splitMatchesOneNodeExplicit | Two-node explicit against one-node explicit: largest relative difference (the same Euler steps, summed in another order) | 0 | ≤ 1.00e-12 | ✓ Pass |
splitSemiImplicitMatchesExplicit | Two-node semi-implicit against two-node explicit: identical, since each node holds one state | 0 | ≤ 0 | ✓ Pass |
verletRefusedInWords | Verlet refused, saying which rate reads its own state, as one node and as two (1 if so): each population's rate reads itself | 1 | 1 to 1 | ✓ Pass |
referenceInvariantDrift | The SciPy reference's own drift of V, relative to V(0) - V*: how far the numerical reference itself is from exact | 9.67e-11 | ≤ 1.00e-9 | ✓ Pass |
All 7 result rows
| Case | Method | h (s) | Substeps | Horizon (s) | Max abs error | RMSE | Relative error | Conservation error | Steps | Substeps run | Evaluations | Note |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Lotka–Volterra, one node | explicit Euler | 0.0625 | 1 | 512 | ∞ | ∞ | ∞ | ∞ | – | – | – | diverged: the engine stopped on a non-finite derivative before the end of the run |
| Lotka–Volterra, one node | semi-implicit Euler | 0.0625 | 1 | 512 | 30.29 | 6.687 | 1.043 | 0.08982 | 8,192 | 8,192 | 32,770 | errors against SciPy DOP853; conservation = largest drift of V / (V(0) - V*); final 2.10e-2 |
| Lotka–Volterra, one node | explicit Euler | 0.01563 | 1 | 512 | 159.5 | 12.59 | 5.493 | 11.63 | 32,770 | 32,770 | 1.31e5 | errors against SciPy DOP853; conservation = largest drift of V / (V(0) - V*); final 1.16e+1 |
| Lotka–Volterra, one node | semi-implicit Euler | 0.01563 | 1 | 512 | 20.47 | 2.424 | 0.7049 | 0.02102 | 32,770 | 32,770 | 1.31e5 | errors against SciPy DOP853; conservation = largest drift of V / (V(0) - V*); final 8.98e-3 |
| Lotka–Volterra, one node | explicit Euler | 0.003906 | 1 | 512 | 46.32 | 8.508 | 1.595 | 1.009 | 1.31e5 | 1.31e5 | 5.24e5 | errors against SciPy DOP853; conservation = largest drift of V / (V(0) - V*); final 1.01e+0 |
| Lotka–Volterra, one node | semi-implicit Euler | 0.003906 | 1 | 512 | 6.025 | 0.6189 | 0.2075 | 0.005177 | 1.31e5 | 1.31e5 | 5.24e5 | errors against SciPy DOP853; conservation = largest drift of V / (V(0) - V*); final 2.40e-3 |
| Lotka–Volterra, two nodes | explicit Euler | 0.01563 | 1 | 512 | 159.5 | 12.59 | 5.493 | 11.63 | 32,770 | 65,540 | 1.31e5 | prey and predator as separate nodes coupled through the snapshot |
Convergence order
Error against global step over six halvings for the thermal network, both RLC circuits, the harmonic oscillator and the pendulum: the observed order of explicit and semi-implicit Euler, of Verlet on the oscillator and the pendulum, of Runge–Kutta 4, of Dormand–Prince 5(4) and of Rodas4 at fixed steps over halvings of their own, before the error reaches rounding; and the error of Adaptive, of Stiff and of BDF against their tolerance from 1e-3 to 1e-10, with the work it took.
Directory benchmarks/verification/convergenceOrder/ · models (shared with the problems it studies)
- Konjugate, explicit Euler
- First order (slope 1)
- Konjugate, Runge–Kutta 4
- Fourth order (slope 4)
- Konjugate, Rodas4, error control off (1 step per global step)
Data table
| Konjugate, explicit Euler: Global step h (s) | Relative error | First order (slope 1): Global step h (s) | Relative error | Konjugate, Runge–Kutta 4: Global step h (s) | Relative error | Fourth order (slope 4): Global step h (s) | Relative error | Konjugate, Rodas4, error control off (1 step per global step): Global step h (s) | Relative error |
|---|---|---|---|---|---|---|---|---|---|
| 64 | 0.00593 | 64 | 0.00593 | 64 | 2.06e-7 | 64 | 2.06e-7 | 256 | 4.36e-6 |
| 32 | 0.002944 | 32 | 0.002965 | 32 | 1.21e-8 | 32 | 1.29e-8 | 128 | 2.63e-7 |
| 16 | 0.001467 | 16 | 0.001482 | 16 | 7.35e-10 | 16 | 8.04e-10 | 64 | 1.62e-8 |
| 8 | 7.32e-4 | 8 | 7.41e-4 | 8 | 4.53e-11 | 8 | 5.03e-11 | 32 | 1.00e-9 |
| 4 | 3.66e-4 | 4 | 3.71e-4 | 4 | 2.98e-12 | 4 | 3.14e-12 | 16 | 6.25e-11 |
| 2 | 1.83e-4 | 2 | 1.85e-4 | – | – | – | – | – | – |
- Konjugate, explicit Euler
- Konjugate, Runge–Kutta 4
- Konjugate, Rodas4, error control off (1 step per global step)
- Konjugate, Adaptive, Dormand–Prince 5(4) (tolerances)
- Konjugate, Stiff, Rodas4 (tolerances)
- Konjugate, BDF (tolerances)
Data table
| Konjugate, explicit Euler: Relative error | Contributions evaluated | Konjugate, Runge–Kutta 4: Relative error | Contributions evaluated | Konjugate, Rodas4, error control off (1 step per global step): Relative error | Contributions evaluated | Konjugate, Adaptive, Dormand–Prince 5(4) (tolerances): Relative error | Contributions evaluated | Konjugate, Stiff, Rodas4 (tolerances): Relative error | Contributions evaluated | Konjugate, BDF (tolerances): Relative error | Contributions evaluated |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 0.00593 | 3,328 | 2.06e-7 | 13,310 | 4.36e-6 | 4,992 | 1.35e-4 | 2,405 | 3.36e-5 | 2,197 | 2.94e-5 | 2,275 |
| 0.002944 | 6,656 | 1.21e-8 | 26,620 | 2.63e-7 | 9,984 | 1.35e-5 | 2,639 | 5.56e-6 | 2,353 | 3.88e-6 | 2,795 |
| 0.001467 | 13,310 | 7.35e-10 | 53,250 | 1.62e-8 | 19,970 | 1.18e-6 | 2,951 | 1.68e-6 | 3,055 | 6.86e-7 | 3,211 |
| 7.32e-4 | 26,620 | 4.53e-11 | 1.06e5 | 1.00e-9 | 39,940 | 1.62e-7 | 3,731 | 4.36e-7 | 4,069 | 5.16e-8 | 4,225 |
| 3.66e-4 | 53,250 | 2.98e-12 | 2.13e5 | 6.25e-11 | 79,870 | 3.20e-8 | 4,511 | 1.19e-7 | 6,019 | 1.65e-8 | 5,551 |
| 1.83e-4 | 1.06e5 | – | – | – | – | 6.14e-9 | 6,305 | 1.55e-8 | 9,763 | 3.09e-9 | 7,293 |
| – | – | – | – | – | – | 1.04e-9 | 8,645 | 1.82e-9 | 16,320 | 4.39e-10 | 9,971 |
| – | – | – | – | – | – | 1.35e-10 | 12,080 | 2.07e-10 | 27,860 | 6.57e-11 | 14,470 |
- Konjugate, explicit Euler
- First order (slope 1)
- Konjugate, semi-implicit Euler
- Konjugate, Runge–Kutta 4
- Fourth order (slope 4)
- Konjugate, Dormand–Prince 5(4), error control off (1 step per global step)
- Fifth order (slope 5)
- Konjugate, Rodas4, error control off (1 step per global step)
Data table
| Konjugate, explicit Euler: Global step h (s) | Relative error | First order (slope 1): Global step h (s) | Relative error | Konjugate, semi-implicit Euler: Global step h (s) | Relative error | Konjugate, Runge–Kutta 4: Global step h (s) | Relative error | Fourth order (slope 4): Global step h (s) | Relative error | Konjugate, Dormand–Prince 5(4), error control off (1 step per global step): Global step h (s) | Relative error | Fifth order (slope 5): Global step h (s) | Relative error | Konjugate, Rodas4, error control off (1 step per global step): Global step h (s) | Relative error |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 6.10e-5 | 0.08987 | 6.10e-5 | 0.08987 | 6.10e-5 | 0.01767 | 2.44e-4 | 7.52e-5 | 2.44e-4 | 7.52e-5 | 2.44e-4 | 6.37e-7 | 2.44e-4 | 6.37e-7 | 4.88e-4 | 1.02e-4 |
| 3.05e-5 | 0.04127 | 3.05e-5 | 0.04493 | 3.05e-5 | 0.008796 | 1.22e-4 | 4.59e-6 | 1.22e-4 | 4.70e-6 | 1.22e-4 | 1.93e-8 | 1.22e-4 | 1.99e-8 | 2.44e-4 | 6.36e-6 |
| 1.53e-5 | 0.01979 | 1.53e-5 | 0.02247 | 1.53e-5 | 0.004388 | 6.10e-5 | 2.85e-7 | 6.10e-5 | 2.94e-7 | 6.10e-5 | 5.85e-10 | 6.10e-5 | 6.22e-10 | 1.22e-4 | 3.96e-7 |
| 7.63e-6 | 0.009692 | 7.63e-6 | 0.01123 | 7.63e-6 | 0.002192 | 3.05e-5 | 1.78e-8 | 3.05e-5 | 1.84e-8 | 3.05e-5 | 1.80e-11 | 3.05e-5 | 1.94e-11 | 6.10e-5 | 2.47e-8 |
| 3.81e-6 | 0.004796 | 3.81e-6 | 0.005617 | 3.81e-6 | 0.001095 | 1.53e-5 | 1.11e-9 | 1.53e-5 | 1.15e-9 | 1.53e-5 | 5.62e-13 | 1.53e-5 | 6.07e-13 | 3.05e-5 | 1.54e-9 |
| 1.91e-6 | 0.002386 | 1.91e-6 | 0.002808 | 1.91e-6 | 5.48e-4 | 7.63e-6 | 6.92e-11 | 7.63e-6 | 7.17e-11 | – | – | – | – | 1.53e-5 | 9.65e-11 |
- Konjugate, explicit Euler
- Konjugate, semi-implicit Euler
- Konjugate, Runge–Kutta 4
- Konjugate, Dormand–Prince 5(4), error control off (1 step per global step)
- Konjugate, Rodas4, error control off (1 step per global step)
- Konjugate, Adaptive, Dormand–Prince 5(4) (tolerances)
- Konjugate, Stiff, Rodas4 (tolerances)
- Konjugate, BDF (tolerances)
Data table
| Konjugate, explicit Euler: Relative error | Contributions evaluated | Konjugate, semi-implicit Euler: Relative error | Contributions evaluated | Konjugate, Runge–Kutta 4: Relative error | Contributions evaluated | Konjugate, Dormand–Prince 5(4), error control off (1 step per global step): Relative error | Contributions evaluated | Konjugate, Rodas4, error control off (1 step per global step): Relative error | Contributions evaluated | Konjugate, Adaptive, Dormand–Prince 5(4) (tolerances): Relative error | Contributions evaluated | Konjugate, Stiff, Rodas4 (tolerances): Relative error | Contributions evaluated | Konjugate, BDF (tolerances): Relative error | Contributions evaluated |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0.08987 | 2,560 | 0.01767 | 2,560 | 7.52e-5 | 2,560 | 6.37e-7 | 4,480 | 1.02e-4 | 1,920 | 4.75e-4 | 1,495 | 4.15e-4 | 1,885 | 1.58e-4 | 2,005 |
| 0.04127 | 5,120 | 0.008796 | 5,120 | 4.59e-6 | 5,120 | 1.93e-8 | 8,960 | 6.36e-6 | 3,840 | 5.20e-5 | 2,155 | 4.05e-5 | 3,185 | 2.02e-5 | 2,805 |
| 0.01979 | 10,240 | 0.004388 | 10,240 | 2.85e-7 | 10,240 | 5.85e-10 | 17,920 | 3.96e-7 | 7,680 | 5.80e-6 | 3,085 | 4.11e-6 | 5,295 | 2.53e-6 | 4,140 |
| 0.009692 | 20,480 | 0.002192 | 20,480 | 1.78e-8 | 20,480 | 1.80e-11 | 35,840 | 2.47e-8 | 15,360 | 6.03e-7 | 4,435 | 4.23e-7 | 8,615 | 3.49e-7 | 5,985 |
| 0.004796 | 40,960 | 0.001095 | 40,960 | 1.11e-9 | 40,960 | 5.62e-13 | 71,680 | 1.54e-9 | 30,720 | 6.57e-8 | 6,775 | 4.34e-8 | 14,770 | 4.46e-8 | 8,685 |
| 0.002386 | 81,920 | 5.48e-4 | 81,920 | 6.92e-11 | 81,920 | – | – | 9.65e-11 | 61,440 | 6.68e-9 | 10,650 | 4.37e-9 | 25,950 | 5.84e-9 | 12,720 |
| – | – | – | – | – | – | – | – | – | – | 6.88e-10 | 16,410 | 4.37e-10 | 45,710 | 7.44e-10 | 18,530 |
| – | – | – | – | – | – | – | – | – | – | 7.06e-11 | 25,890 | 4.37e-11 | 81,000 | 9.16e-11 | 27,820 |
- Konjugate, explicit Euler
- First order (slope 1)
- Konjugate, semi-implicit Euler
- Konjugate, Runge–Kutta 4
- Fourth order (slope 4)
- Konjugate, Dormand–Prince 5(4), error control off (1 step per global step)
- Fifth order (slope 5)
- Konjugate, Rodas4, error control off (1 step per global step)
Data table
| Konjugate, explicit Euler: Global step h (s) | Relative error | First order (slope 1): Global step h (s) | Relative error | Konjugate, semi-implicit Euler: Global step h (s) | Relative error | Konjugate, Runge–Kutta 4: Global step h (s) | Relative error | Fourth order (slope 4): Global step h (s) | Relative error | Konjugate, Dormand–Prince 5(4), error control off (1 step per global step): Global step h (s) | Relative error | Fifth order (slope 5): Global step h (s) | Relative error | Konjugate, Rodas4, error control off (1 step per global step): Global step h (s) | Relative error |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 6.10e-5 | 0.1334 | 6.10e-5 | 0.1334 | 6.10e-5 | 0.01936 | 2.44e-4 | 1.02e-4 | 2.44e-4 | 1.02e-4 | 2.44e-4 | 8.59e-7 | 2.44e-4 | 8.59e-7 | 4.88e-4 | 1.40e-4 |
| 3.05e-5 | 0.0588 | 3.05e-5 | 0.06668 | 3.05e-5 | 0.009641 | 1.22e-4 | 6.28e-6 | 1.22e-4 | 6.38e-6 | 1.22e-4 | 2.59e-8 | 1.22e-4 | 2.68e-8 | 2.44e-4 | 8.73e-6 |
| 1.53e-5 | 0.02765 | 1.53e-5 | 0.03334 | 1.53e-5 | 0.004811 | 6.10e-5 | 3.91e-7 | 6.10e-5 | 3.99e-7 | 6.10e-5 | 8.01e-10 | 6.10e-5 | 8.39e-10 | 1.22e-4 | 5.44e-7 |
| 7.63e-6 | 0.01342 | 7.63e-6 | 0.01667 | 7.63e-6 | 0.002403 | 3.05e-5 | 2.44e-8 | 3.05e-5 | 2.49e-8 | 3.05e-5 | 2.50e-11 | 3.05e-5 | 2.62e-11 | 6.10e-5 | 3.40e-8 |
| 3.81e-6 | 0.006609 | 3.81e-6 | 0.008336 | 3.81e-6 | 0.001201 | 1.53e-5 | 1.52e-9 | 1.53e-5 | 1.56e-9 | 1.53e-5 | 7.83e-13 | 1.53e-5 | 8.19e-13 | 3.05e-5 | 2.12e-9 |
| 1.91e-6 | 0.00328 | 1.91e-6 | 0.004168 | 1.91e-6 | 6.00e-4 | 7.63e-6 | 9.52e-11 | 7.63e-6 | 9.74e-11 | – | – | – | – | 1.53e-5 | 1.33e-10 |
- Konjugate, explicit Euler
- Konjugate, semi-implicit Euler
- Konjugate, Runge–Kutta 4
- Konjugate, Dormand–Prince 5(4), error control off (1 step per global step)
- Konjugate, Rodas4, error control off (1 step per global step)
- Konjugate, Adaptive, Dormand–Prince 5(4) (tolerances)
- Konjugate, Stiff, Rodas4 (tolerances)
- Konjugate, BDF (tolerances)
Data table
| Konjugate, explicit Euler: Relative error | Contributions evaluated | Konjugate, semi-implicit Euler: Relative error | Contributions evaluated | Konjugate, Runge–Kutta 4: Relative error | Contributions evaluated | Konjugate, Dormand–Prince 5(4), error control off (1 step per global step): Relative error | Contributions evaluated | Konjugate, Rodas4, error control off (1 step per global step): Relative error | Contributions evaluated | Konjugate, Adaptive, Dormand–Prince 5(4) (tolerances): Relative error | Contributions evaluated | Konjugate, Stiff, Rodas4 (tolerances): Relative error | Contributions evaluated | Konjugate, BDF (tolerances): Relative error | Contributions evaluated |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0.1334 | 6,144 | 0.01936 | 6,144 | 1.02e-4 | 6,144 | 8.59e-7 | 10,750 | 1.40e-4 | 4,608 | 8.85e-4 | 3,948 | 6.99e-4 | 4,704 | 2.33e-4 | 5,148 |
| 0.0588 | 12,290 | 0.009641 | 12,290 | 6.28e-6 | 12,290 | 2.59e-8 | 21,500 | 8.73e-6 | 9,216 | 8.81e-5 | 5,244 | 7.06e-5 | 7,836 | 4.04e-5 | 6,804 |
| 0.02765 | 24,580 | 0.004811 | 24,580 | 3.91e-7 | 24,580 | 8.01e-10 | 43,010 | 5.44e-7 | 18,430 | 9.72e-6 | 7,620 | 7.50e-6 | 12,620 | 5.39e-6 | 9,948 |
| 0.01342 | 49,150 | 0.002403 | 49,150 | 2.44e-8 | 49,150 | 2.50e-11 | 86,020 | 3.40e-8 | 36,860 | 1.01e-6 | 11,360 | 7.62e-7 | 21,370 | 7.26e-7 | 13,760 |
| 0.006609 | 98,300 | 0.001201 | 98,300 | 1.52e-9 | 98,300 | 7.83e-13 | 1.72e5 | 2.12e-9 | 73,730 | 1.07e-7 | 17,120 | 7.56e-8 | 36,950 | 9.24e-8 | 20,360 |
| 0.00328 | 1.97e5 | 6.00e-4 | 1.97e5 | 9.52e-11 | 1.97e5 | – | – | 1.33e-10 | 1.47e5 | 1.09e-8 | 26,480 | 7.60e-9 | 64,880 | 1.17e-8 | 30,130 |
| – | – | – | – | – | – | – | – | – | – | 1.11e-9 | 40,740 | 7.57e-10 | 1.15e5 | 1.47e-9 | 44,890 |
| – | – | – | – | – | – | – | – | – | – | 1.12e-10 | 63,710 | 7.55e-11 | 2.03e5 | 1.83e-10 | 67,020 |
- Konjugate, explicit Euler
- First order (slope 1)
- Konjugate, semi-implicit Euler
- Konjugate, Verlet
- Second order (slope 2)
- Konjugate, Runge–Kutta 4
- Fourth order (slope 4)
- Konjugate, Dormand–Prince 5(4), error control off (1 step per global step)
- Fifth order (slope 5)
- Konjugate, Rodas4, error control off (1 step per global step)
Data table
| Konjugate, explicit Euler: Global step h (s) | Relative error | First order (slope 1): Global step h (s) | Relative error | Konjugate, semi-implicit Euler: Global step h (s) | Relative error | Konjugate, Verlet: Global step h (s) | Relative error | Second order (slope 2): Global step h (s) | Relative error | Konjugate, Runge–Kutta 4: Global step h (s) | Relative error | Fourth order (slope 4): Global step h (s) | Relative error | Konjugate, Dormand–Prince 5(4), error control off (1 step per global step): Global step h (s) | Relative error | Fifth order (slope 5): Global step h (s) | Relative error | Konjugate, Rodas4, error control off (1 step per global step): Global step h (s) | Relative error |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0.01563 | 0.06546 | 0.01563 | 0.06546 | 0.01563 | 0.003891 | 0.01563 | 8.24e-5 | 0.01563 | 8.24e-5 | 0.0625 | 1.00e-6 | 0.0625 | 1.00e-6 | 0.125 | 6.80e-8 | 0.125 | 6.80e-8 | 0.25 | 2.24e-5 |
| 0.007813 | 0.03172 | 0.007813 | 0.03273 | 0.007813 | 0.001947 | 0.007813 | 2.06e-5 | 0.007813 | 2.06e-5 | 0.03125 | 6.27e-8 | 0.03125 | 6.27e-8 | 0.0625 | 2.09e-9 | 0.0625 | 2.13e-9 | 0.125 | 1.40e-6 |
| 0.003906 | 0.01561 | 0.003906 | 0.01637 | 0.003906 | 9.75e-4 | 0.003906 | 5.15e-6 | 0.003906 | 5.15e-6 | 0.01563 | 3.91e-9 | 0.01563 | 3.92e-9 | 0.03125 | 6.52e-11 | 0.03125 | 6.64e-11 | 0.0625 | 8.73e-8 |
| 0.001953 | 0.007747 | 0.001953 | 0.008183 | 0.001953 | 4.88e-4 | 0.001953 | 1.29e-6 | 0.001953 | 1.29e-6 | 0.007813 | 2.45e-10 | 0.007813 | 2.45e-10 | 0.01563 | 2.04e-12 | 0.01563 | 2.08e-12 | 0.03125 | 5.46e-9 |
| 9.77e-4 | 0.003858 | 9.77e-4 | 0.004091 | 9.77e-4 | 2.44e-4 | 9.77e-4 | 3.22e-7 | 9.77e-4 | 3.22e-7 | 0.003906 | 1.53e-11 | 0.003906 | 1.53e-11 | 0.007813 | 6.28e-14 | 0.007813 | 6.49e-14 | 0.01563 | 3.41e-10 |
| 4.88e-4 | 0.001925 | 4.88e-4 | 0.002046 | 4.88e-4 | 1.22e-4 | 4.88e-4 | 8.05e-8 | 4.88e-4 | 8.05e-8 | 0.001953 | 9.56e-13 | 0.001953 | 9.56e-13 | – | – | – | – | 0.007813 | 2.13e-11 |
- Konjugate, explicit Euler
- Konjugate, semi-implicit Euler
- Konjugate, Verlet
- Konjugate, Runge–Kutta 4
- Konjugate, Dormand–Prince 5(4), error control off (1 step per global step)
- Konjugate, Rodas4, error control off (1 step per global step)
- Konjugate, Adaptive, Dormand–Prince 5(4) (tolerances)
- Konjugate, Stiff, Rodas4 (tolerances)
- Konjugate, BDF (tolerances)
Data table
| Konjugate, explicit Euler: Relative error | Contributions evaluated | Konjugate, semi-implicit Euler: Relative error | Contributions evaluated | Konjugate, Verlet: Relative error | Contributions evaluated | Konjugate, Runge–Kutta 4: Relative error | Contributions evaluated | Konjugate, Dormand–Prince 5(4), error control off (1 step per global step): Relative error | Contributions evaluated | Konjugate, Rodas4, error control off (1 step per global step): Relative error | Contributions evaluated | Konjugate, Adaptive, Dormand–Prince 5(4) (tolerances): Relative error | Contributions evaluated | Konjugate, Stiff, Rodas4 (tolerances): Relative error | Contributions evaluated | Konjugate, BDF (tolerances): Relative error | Contributions evaluated |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0.06546 | 2,048 | 0.003891 | 2,048 | 8.24e-5 | 3,072 | 1.00e-6 | 2,048 | 6.80e-8 | 1,792 | 2.24e-5 | 768 | 2.84e-4 | 466 | 6.69e-4 | 434 | 1.22e-4 | 550 |
| 0.03172 | 4,096 | 0.001947 | 4,096 | 2.06e-5 | 6,144 | 6.27e-8 | 4,096 | 2.09e-9 | 3,584 | 1.40e-6 | 1,536 | 4.44e-5 | 646 | 7.23e-5 | 692 | 2.24e-5 | 734 |
| 0.01561 | 8,192 | 9.75e-4 | 8,192 | 5.15e-6 | 12,290 | 3.91e-9 | 8,192 | 6.52e-11 | 7,168 | 8.73e-8 | 3,072 | 4.97e-6 | 874 | 7.69e-6 | 1,250 | 3.84e-6 | 1,006 |
| 0.007747 | 16,380 | 4.88e-4 | 16,380 | 1.29e-6 | 24,580 | 2.45e-10 | 16,380 | 2.04e-12 | 14,340 | 5.46e-9 | 6,144 | 6.05e-7 | 1,258 | 7.63e-7 | 2,026 | 7.45e-7 | 1,358 |
| 0.003858 | 32,770 | 2.44e-4 | 32,770 | 3.22e-7 | 49,150 | 1.53e-11 | 32,770 | 6.28e-14 | 28,670 | 3.41e-10 | 12,290 | 6.14e-8 | 1,918 | 7.62e-8 | 3,370 | 1.01e-7 | 1,986 |
| 0.001925 | 65,540 | 1.22e-4 | 65,540 | 8.05e-8 | 98,300 | 9.56e-13 | 65,540 | – | – | 2.13e-11 | 24,580 | 6.33e-9 | 2,854 | 7.72e-9 | 5,822 | 1.41e-8 | 2,786 |
| – | – | – | – | – | – | – | – | – | – | – | – | 6.51e-10 | 4,414 | 7.69e-10 | 10,130 | 1.81e-9 | 4,042 |
| – | – | – | – | – | – | – | – | – | – | – | – | 6.59e-11 | 6,790 | 7.67e-11 | 17,910 | 2.27e-10 | 6,006 |
- Konjugate, explicit Euler
- First order (slope 1)
- Konjugate, semi-implicit Euler
- Konjugate, Verlet
- Second order (slope 2)
- Konjugate, Runge–Kutta 4
- Fourth order (slope 4)
- Konjugate, Dormand–Prince 5(4), error control off (1 step per global step)
- Fifth order (slope 5)
- Konjugate, Rodas4, error control off (1 step per global step)
Data table
| Konjugate, explicit Euler: Global step h (s) | Relative error | First order (slope 1): Global step h (s) | Relative error | Konjugate, semi-implicit Euler: Global step h (s) | Relative error | Konjugate, Verlet: Global step h (s) | Relative error | Second order (slope 2): Global step h (s) | Relative error | Konjugate, Runge–Kutta 4: Global step h (s) | Relative error | Fourth order (slope 4): Global step h (s) | Relative error | Konjugate, Dormand–Prince 5(4), error control off (1 step per global step): Global step h (s) | Relative error | Fifth order (slope 5): Global step h (s) | Relative error | Konjugate, Rodas4, error control off (1 step per global step): Global step h (s) | Relative error |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0.001953 | 0.1923 | 0.001953 | 0.1923 | 0.001953 | 0.001292 | 0.001953 | 6.25e-6 | 0.001953 | 6.25e-6 | 0.003906 | 6.93e-10 | 0.003906 | 6.93e-10 | 0.01563 | 2.86e-9 | 0.01563 | 2.86e-9 | 0.0625 | 8.63e-6 |
| 9.77e-4 | 0.09209 | 9.77e-4 | 0.09617 | 9.77e-4 | 6.45e-4 | 9.77e-4 | 1.56e-6 | 9.77e-4 | 1.56e-6 | 0.001953 | 4.67e-11 | 0.001953 | 4.33e-11 | 0.007813 | 8.67e-11 | 0.007813 | 8.95e-11 | 0.03125 | 2.65e-7 |
| 4.88e-4 | 0.04525 | 4.88e-4 | 0.04809 | 4.88e-4 | 3.22e-4 | 4.88e-4 | 3.90e-7 | 4.88e-4 | 3.90e-7 | 9.77e-4 | 3.07e-12 | 9.77e-4 | 2.71e-12 | 0.003906 | 2.67e-12 | 0.003906 | 2.80e-12 | 0.01563 | 8.64e-9 |
| 2.44e-4 | 0.02239 | 2.44e-4 | 0.02404 | 2.44e-4 | 1.61e-4 | 2.44e-4 | 9.76e-8 | 2.44e-4 | 9.76e-8 | – | – | – | – | – | – | – | – | 0.007813 | 3.01e-10 |
| 1.22e-4 | 0.01114 | 1.22e-4 | 0.01202 | 1.22e-4 | 8.04e-5 | 1.22e-4 | 2.44e-8 | 1.22e-4 | 2.44e-8 | – | – | – | – | – | – | – | – | 0.003906 | 1.15e-11 |
| 6.10e-5 | 0.005552 | 6.10e-5 | 0.006011 | 6.10e-5 | 4.02e-5 | 6.10e-5 | 6.10e-9 | 6.10e-5 | 6.10e-9 | – | – | – | – | – | – | – | – | – | – |
- Konjugate, explicit Euler
- Konjugate, semi-implicit Euler
- Konjugate, Verlet
- Konjugate, Runge–Kutta 4
- Konjugate, Dormand–Prince 5(4), error control off (1 step per global step)
- Konjugate, Rodas4, error control off (1 step per global step)
- Konjugate, Adaptive, Dormand–Prince 5(4) (tolerances)
- Konjugate, Stiff, Rodas4 (tolerances)
- Konjugate, BDF (tolerances)
Data table
| Konjugate, explicit Euler: Relative error | Contributions evaluated | Konjugate, semi-implicit Euler: Relative error | Contributions evaluated | Konjugate, Verlet: Relative error | Contributions evaluated | Konjugate, Runge–Kutta 4: Relative error | Contributions evaluated | Konjugate, Dormand–Prince 5(4), error control off (1 step per global step): Relative error | Contributions evaluated | Konjugate, Rodas4, error control off (1 step per global step): Relative error | Contributions evaluated | Konjugate, Adaptive, Dormand–Prince 5(4) (tolerances): Relative error | Contributions evaluated | Konjugate, Stiff, Rodas4 (tolerances): Relative error | Contributions evaluated | Konjugate, BDF (tolerances): Relative error | Contributions evaluated |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0.1923 | 8,192 | 0.001292 | 8,192 | 6.25e-6 | 12,290 | 6.93e-10 | 16,380 | 2.86e-9 | 7,168 | 8.63e-6 | 1,536 | 0.01893 | 502 | 7.49e-5 | 1,046 | 8.80e-4 | 1,128 |
| 0.09209 | 16,380 | 6.45e-4 | 16,380 | 1.56e-6 | 24,580 | 4.67e-11 | 32,770 | 8.67e-11 | 14,340 | 2.65e-7 | 3,072 | 0.001147 | 730 | 2.42e-6 | 1,576 | 2.45e-4 | 1,488 |
| 0.04525 | 32,770 | 3.22e-4 | 32,770 | 3.90e-7 | 49,150 | 3.07e-12 | 65,540 | 2.67e-12 | 28,670 | 8.64e-9 | 6,144 | 6.09e-5 | 1,090 | 2.29e-7 | 2,550 | 2.92e-5 | 2,080 |
| 0.02239 | 65,540 | 1.61e-4 | 65,540 | 9.76e-8 | 98,300 | – | – | – | – | 3.01e-10 | 12,290 | 5.12e-6 | 1,606 | 2.51e-8 | 4,240 | 3.71e-6 | 2,952 |
| 0.01114 | 1.31e5 | 8.04e-5 | 1.31e5 | 2.44e-8 | 1.97e5 | – | – | – | – | 1.15e-11 | 24,580 | 5.02e-7 | 2,434 | 2.02e-9 | 7,228 | 3.61e-7 | 4,374 |
| 0.005552 | 2.62e5 | 4.02e-5 | 2.62e5 | 6.10e-9 | 3.93e5 | – | – | – | – | – | – | 5.31e-8 | 3,562 | 1.29e-10 | 12,560 | 3.69e-8 | 6,546 |
| – | – | – | – | – | – | – | – | – | – | – | – | 5.35e-9 | 5,302 | 7.08e-12 | 22,140 | 5.13e-9 | 9,178 |
| – | – | – | – | – | – | – | – | – | – | – | – | 5.27e-10 | 8,182 | 9.10e-13 | 39,210 | 6.12e-10 | 13,580 |
Checks
| Check | What it measures | Value | Threshold | Result |
|---|---|---|---|---|
thermalOrderExplicit | Thermal RC network, explicit Euler: observed order, least-squares over 6 step sizes | 1.004 | 0.95 to 1.1 | ✓ Pass |
thermalFinestOrderExplicit | Thermal RC network, explicit Euler: observed order from the finest halving | 1.001 | 0.97 to 1.03 | ✓ Pass |
thermalOrderRungeKutta4 | Thermal RC network, Runge–Kutta 4: observed order, least-squares over 5 step sizes | 4.022 | 3.9 to 4.1 | ✓ Pass |
thermalFinestOrderRungeKutta4 | Thermal RC network, Runge–Kutta 4: observed order from the finest halving | 3.924 | 3.9 to 4.1 | ✓ Pass |
thermalOrderRodas4 | Thermal RC network, Rodas4, error control off (1 step per global step): observed order, least-squares over 5 step sizes | 4.022 | 3.9 to 4.1 | ✓ Pass |
thermalFinestOrderRodas4 | Thermal RC network, Rodas4, error control off (1 step per global step): observed order from the finest halving | 4.006 | 3.9 to 4.1 | ✓ Pass |
thermalToleranceSlope | Thermal RC network, Adaptive: slope of log error against log tolerance, least squares over 8 tolerances from 0.001 to 1e-10 | 0.8348 | 0.8 to 1.15 | ✓ Pass |
thermalToleranceFactor | Thermal RC network, Adaptive: largest error over its relative tolerance | 1.348 | ≤ 20 | ✓ Pass |
thermalStiffToleranceSlope | Thermal RC network, Stiff: slope of log error against log tolerance, least squares over 8 tolerances | 0.7212 | 0.65 to 1.15 | ✓ Pass |
thermalStiffToleranceFactor | Thermal RC network, Stiff: largest error over its relative tolerance | 2.068 | ≤ 20 | ✓ Pass |
thermalBdfToleranceSlope | Thermal RC network, BDF: slope of log error against log tolerance, least squares over 8 tolerances | 0.7955 | 0.6 to 1.05 | ✓ Pass |
thermalBdfToleranceFactor | Thermal RC network, BDF: largest error over its relative tolerance | 0.6568 | ≤ 20 | ✓ Pass |
seriesRlcOrderExplicit | Series RLC, explicit Euler: observed order, least-squares over 6 step sizes | 1.043 | 0.95 to 1.1 | ✓ Pass |
seriesRlcFinestOrderExplicit | Series RLC, explicit Euler: observed order from the finest halving | 1.007 | 0.97 to 1.03 | ✓ Pass |
seriesRlcOrderSemiImplicit | Series RLC, semi-implicit Euler: observed order, least-squares over 6 step sizes | 1.002 | 0.95 to 1.1 | ✓ Pass |
seriesRlcFinestOrderSemiImplicit | Series RLC, semi-implicit Euler: observed order from the finest halving | 1 | 0.97 to 1.03 | ✓ Pass |
seriesRlcOrderRungeKutta4 | Series RLC, Runge–Kutta 4: observed order, least-squares over 6 step sizes | 4.009 | 3.9 to 4.1 | ✓ Pass |
seriesRlcFinestOrderRungeKutta4 | Series RLC, Runge–Kutta 4: observed order from the finest halving | 4.002 | 3.9 to 4.1 | ✓ Pass |
seriesRlcOrderDormandPrince54 | Series RLC, Dormand–Prince 5(4), error control off (1 step per global step): observed order, least-squares over 5 step sizes | 5.029 | 4.9 to 5.1 | ✓ Pass |
seriesRlcFinestOrderDormandPrince54 | Series RLC, Dormand–Prince 5(4), error control off (1 step per global step): observed order from the finest halving | 5.001 | 4.9 to 5.1 | ✓ Pass |
seriesRlcOrderRodas4 | Series RLC, Rodas4, error control off (1 step per global step): observed order, least-squares over 6 step sizes | 4.003 | 3.9 to 4.1 | ✓ Pass |
seriesRlcFinestOrderRodas4 | Series RLC, Rodas4, error control off (1 step per global step): observed order from the finest halving | 4 | 3.9 to 4.1 | ✓ Pass |
seriesRlcToleranceSlope | Series RLC, Adaptive: slope of log error against log tolerance, least squares over 8 tolerances from 0.001 to 1e-10 | 0.9758 | 0.8 to 1.15 | ✓ Pass |
seriesRlcToleranceFactor | Series RLC, Adaptive: largest error over its relative tolerance | 0.7055 | ≤ 20 | ✓ Pass |
seriesRlcStiffToleranceSlope | Series RLC, Stiff: slope of log error against log tolerance, least squares over 8 tolerances | 0.9952 | 0.65 to 1.15 | ✓ Pass |
seriesRlcStiffToleranceFactor | Series RLC, Stiff: largest error over its relative tolerance | 0.4369 | ≤ 20 | ✓ Pass |
seriesRlcBdfToleranceSlope | Series RLC, BDF: slope of log error against log tolerance, least squares over 8 tolerances | 0.8886 | 0.6 to 1.05 | ✓ Pass |
seriesRlcBdfToleranceFactor | Series RLC, BDF: largest error over its relative tolerance | 0.9161 | ≤ 20 | ✓ Pass |
coupledRlcOrderExplicit | Coupled RLC pair, explicit Euler: observed order, least-squares over 6 step sizes | 1.064 | 0.95 to 1.1 | ✓ Pass |
coupledRlcFinestOrderExplicit | Coupled RLC pair, explicit Euler: observed order from the finest halving | 1.011 | 0.97 to 1.03 | ✓ Pass |
coupledRlcOrderSemiImplicit | Coupled RLC pair, semi-implicit Euler: observed order, least-squares over 6 step sizes | 1.002 | 0.95 to 1.1 | ✓ Pass |
coupledRlcFinestOrderSemiImplicit | Coupled RLC pair, semi-implicit Euler: observed order from the finest halving | 1 | 0.97 to 1.03 | ✓ Pass |
coupledRlcOrderRungeKutta4 | Coupled RLC pair, Runge–Kutta 4: observed order, least-squares over 6 step sizes | 4.006 | 3.9 to 4.1 | ✓ Pass |
coupledRlcFinestOrderRungeKutta4 | Coupled RLC pair, Runge–Kutta 4: observed order from the finest halving | 4.001 | 3.9 to 4.1 | ✓ Pass |
coupledRlcOrderDormandPrince54 | Coupled RLC pair, Dormand–Prince 5(4), error control off (1 step per global step): observed order, least-squares over 5 step sizes | 5.015 | 4.9 to 5.1 | ✓ Pass |
coupledRlcFinestOrderDormandPrince54 | Coupled RLC pair, Dormand–Prince 5(4), error control off (1 step per global step): observed order from the finest halving | 4.996 | 4.9 to 5.1 | ✓ Pass |
coupledRlcOrderRodas4 | Coupled RLC pair, Rodas4, error control off (1 step per global step): observed order, least-squares over 6 step sizes | 4.002 | 3.9 to 4.1 | ✓ Pass |
coupledRlcFinestOrderRodas4 | Coupled RLC pair, Rodas4, error control off (1 step per global step): observed order from the finest halving | 4 | 3.9 to 4.1 | ✓ Pass |
coupledRlcToleranceSlope | Coupled RLC pair, Adaptive: slope of log error against log tolerance, least squares over 8 tolerances from 0.001 to 1e-10 | 0.9834 | 0.8 to 1.15 | ✓ Pass |
coupledRlcToleranceFactor | Coupled RLC pair, Adaptive: largest error over its relative tolerance | 1.118 | ≤ 20 | ✓ Pass |
coupledRlcStiffToleranceSlope | Coupled RLC pair, Stiff: slope of log error against log tolerance, least squares over 8 tolerances | 0.9952 | 0.65 to 1.15 | ✓ Pass |
coupledRlcStiffToleranceFactor | Coupled RLC pair, Stiff: largest error over its relative tolerance | 0.7616 | ≤ 20 | ✓ Pass |
coupledRlcBdfToleranceSlope | Coupled RLC pair, BDF: slope of log error against log tolerance, least squares over 8 tolerances | 0.8787 | 0.6 to 1.05 | ✓ Pass |
coupledRlcBdfToleranceFactor | Coupled RLC pair, BDF: largest error over its relative tolerance | 1.828 | ≤ 20 | ✓ Pass |
oscillatorOrderExplicit | Harmonic oscillator, explicit Euler: observed order, least-squares over 6 step sizes | 1.016 | 0.95 to 1.1 | ✓ Pass |
oscillatorFinestOrderExplicit | Harmonic oscillator, explicit Euler: observed order from the finest halving | 1.003 | 0.97 to 1.03 | ✓ Pass |
oscillatorOrderSemiImplicit | Harmonic oscillator, semi-implicit Euler: observed order, least-squares over 6 step sizes | 0.9988 | 0.95 to 1.1 | ✓ Pass |
oscillatorFinestOrderSemiImplicit | Harmonic oscillator, semi-implicit Euler: observed order from the finest halving | 0.9994 | 0.97 to 1.03 | ✓ Pass |
oscillatorOrderVerlet | Harmonic oscillator, Verlet: observed order, least-squares over 6 step sizes | 2 | 1.9 to 2.1 | ✓ Pass |
oscillatorFinestOrderVerlet | Harmonic oscillator, Verlet: observed order from the finest halving | 2 | 1.9 to 2.1 | ✓ Pass |
oscillatorOrderRungeKutta4 | Harmonic oscillator, Runge–Kutta 4: observed order, least-squares over 6 step sizes | 4 | 3.9 to 4.1 | ✓ Pass |
oscillatorFinestOrderRungeKutta4 | Harmonic oscillator, Runge–Kutta 4: observed order from the finest halving | 4 | 3.9 to 4.1 | ✓ Pass |
oscillatorOrderDormandPrince54 | Harmonic oscillator, Dormand–Prince 5(4), error control off (1 step per global step): observed order, least-squares over 5 step sizes | 5.009 | 4.9 to 5.1 | ✓ Pass |
oscillatorFinestOrderDormandPrince54 | Harmonic oscillator, Dormand–Prince 5(4), error control off (1 step per global step): observed order from the finest halving | 5.021 | 4.9 to 5.1 | ✓ Pass |
oscillatorOrderRodas4 | Harmonic oscillator, Rodas4, error control off (1 step per global step): observed order, least-squares over 6 step sizes | 4 | 3.9 to 4.1 | ✓ Pass |
oscillatorFinestOrderRodas4 | Harmonic oscillator, Rodas4, error control off (1 step per global step): observed order from the finest halving | 4 | 3.9 to 4.1 | ✓ Pass |
oscillatorToleranceSlope | Harmonic oscillator, Adaptive: slope of log error against log tolerance, least squares over 8 tolerances from 0.001 to 1e-10 | 0.9558 | 0.8 to 1.15 | ✓ Pass |
oscillatorToleranceFactor | Harmonic oscillator, Adaptive: largest error over its relative tolerance | 0.6594 | ≤ 20 | ✓ Pass |
oscillatorStiffToleranceSlope | Harmonic oscillator, Stiff: slope of log error against log tolerance, least squares over 8 tolerances | 0.9934 | 0.65 to 1.15 | ✓ Pass |
oscillatorStiffToleranceFactor | Harmonic oscillator, Stiff: largest error over its relative tolerance | 0.7724 | ≤ 20 | ✓ Pass |
oscillatorBdfToleranceSlope | Harmonic oscillator, BDF: slope of log error against log tolerance, least squares over 8 tolerances | 0.8184 | 0.6 to 1.05 | ✓ Pass |
oscillatorBdfToleranceFactor | Harmonic oscillator, BDF: largest error over its relative tolerance | 2.272 | ≤ 20 | ✓ Pass |
pendulumOrderExplicit | Pendulum (θ0 = 2 rad), explicit Euler: observed order, least-squares over 6 step sizes | 1.021 | 0.95 to 1.1 | ✓ Pass |
pendulumFinestOrderExplicit | Pendulum (θ0 = 2 rad), explicit Euler: observed order from the finest halving | 1.004 | 0.97 to 1.03 | ✓ Pass |
pendulumOrderSemiImplicit | Pendulum (θ0 = 2 rad), semi-implicit Euler: observed order, least-squares over 6 step sizes | 1.001 | 0.95 to 1.1 | ✓ Pass |
pendulumFinestOrderSemiImplicit | Pendulum (θ0 = 2 rad), semi-implicit Euler: observed order from the finest halving | 1 | 0.97 to 1.03 | ✓ Pass |
pendulumOrderVerlet | Pendulum (θ0 = 2 rad), Verlet: observed order, least-squares over 6 step sizes | 2 | 1.9 to 2.1 | ✓ Pass |
pendulumFinestOrderVerlet | Pendulum (θ0 = 2 rad), Verlet: observed order from the finest halving | 2 | 1.9 to 2.1 | ✓ Pass |
pendulumOrderRungeKutta4 | Pendulum (θ0 = 2 rad), Runge–Kutta 4: observed order, least-squares over 3 step sizes | 3.91 | 3.9 to 4.1 | ✓ Pass |
pendulumFinestOrderRungeKutta4 | Pendulum (θ0 = 2 rad), Runge–Kutta 4: observed order from the finest halving | 3.931 | 3.9 to 4.1 | ✓ Pass |
pendulumOrderDormandPrince54 | Pendulum (θ0 = 2 rad), Dormand–Prince 5(4), error control off (1 step per global step): observed order, least-squares over 3 step sizes | 5.033 | 4.9 to 5.1 | ✓ Pass |
pendulumFinestOrderDormandPrince54 | Pendulum (θ0 = 2 rad), Dormand–Prince 5(4), error control off (1 step per global step): observed order from the finest halving | 5.022 | 4.9 to 5.1 | ✓ Pass |
pendulumOrderRodas4 | Pendulum (θ0 = 2 rad), Rodas4, error control off (1 step per global step): observed order, least-squares over 5 step sizes | 4.88 | 4.4 to 5.1 | ✓ Pass |
pendulumFinestOrderRodas4 | Pendulum (θ0 = 2 rad), Rodas4, error control off (1 step per global step): observed order from the finest halving | 4.703 | 4.3 to 5.1 | ✓ Pass |
pendulumToleranceSlope | Pendulum (θ0 = 2 rad), Adaptive: slope of log error against log tolerance, least squares over 8 tolerances from 0.001 to 1e-10 | 1.068 | 0.8 to 1.15 | ✓ Pass |
pendulumToleranceFactor | Pendulum (θ0 = 2 rad), Adaptive: largest error over its relative tolerance | 18.93 | ≤ 20 | ✓ Pass |
pendulumStiffToleranceSlope | Pendulum (θ0 = 2 rad), Stiff: slope of log error against log tolerance, least squares over 8 tolerances | 1.118 | 0.65 to 1.15 | ✓ Pass |
pendulumStiffToleranceFactor | Pendulum (θ0 = 2 rad), Stiff: largest error over its relative tolerance | 0.07488 | ≤ 20 | ✓ Pass |
pendulumBdfToleranceSlope | Pendulum (θ0 = 2 rad), BDF: slope of log error against log tolerance, least squares over 8 tolerances | 0.9072 | 0.6 to 1.05 | ✓ Pass |
pendulumBdfToleranceFactor | Pendulum (θ0 = 2 rad), BDF: largest error over its relative tolerance | 6.117 | ≤ 20 | ✓ Pass |
- The thermal network is shown for explicit Euler only: every node holds one state, so semi-implicit integration gives the same numbers (checked in thermal/rcNetwork).
- Dormand–Prince 5(4) at fixed steps is not judged on the thermal network: its error passes from steps too long to show the order straight to the reference's own rounding (about 3e-12 relative), with no halving clean of both between; it is judged there by tolerance only.
- Verlet is shown for the oscillator and the pendulum only: in the thermal network and the RLC circuits a state's rate reads that state itself (a loss), which Verlet refuses.
- BDF works to a tighter tolerance than the one asked, 0.125 r^1.1 for a relative tolerance r (docs/proposals/integrators.md, BDF, Error control), so that a tolerance means about what it means under Rodas4: here its error is 0.9 to 6 times its relative tolerance, Rodas4's 0.07 to 2, the most on the pendulum, whose oscillation its multistep error accumulates over many periods. Its slope stays 0.8 to 0.9, below the one-step methods'. It is made for large stiff models (scaling/stiffNetwork); on a smooth, non-stiff or oscillating model the one-step methods are the better choice, and validation says so for an oscillating one (numericsBdfOscillatoryModes).
- Rodas4 on the pendulum shows an order between 4.5 and 4.9 over every halving clean of rounding, not 4: its leading fourth-order error term is very small on this problem, so the fifth-order term rules the errors that can be measured. Its band says so rather than hiding it; on the other four problems Rodas4 is held to 3.9 to 4.1.
All 258 result rows
| Case | Method | h (s) | Substeps | Horizon (s) | Max abs error | RMSE | Relative error | Observed order | Steps | Substeps run | Evaluations | Note |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Thermal RC network: convergence | explicit Euler | 64 | 1 | 16,380 | 0.1252 | 0.03973 | 0.00593 | – | 256 | 1,536 | 3,328 | |
| Thermal RC network: convergence | explicit Euler | 32 | 1 | 16,380 | 0.06066 | 0.01976 | 0.002944 | – | 512 | 3,072 | 6,656 | |
| Thermal RC network: convergence | explicit Euler | 16 | 1 | 16,380 | 0.02987 | 0.009852 | 0.001467 | – | 1,024 | 6,144 | 13,310 | |
| Thermal RC network: convergence | explicit Euler | 8 | 1 | 16,380 | 0.01482 | 0.00492 | 7.32e-4 | – | 2,048 | 12,290 | 26,620 | |
| Thermal RC network: convergence | explicit Euler | 4 | 1 | 16,380 | 0.007384 | 0.002458 | 3.66e-4 | – | 4,096 | 24,580 | 53,250 | |
| Thermal RC network: convergence | explicit Euler | 2 | 1 | 16,380 | 0.003685 | 0.001229 | 1.83e-4 | 1.004 | 8,192 | 49,150 | 1.06e5 | observed order: fitted 1.004; per halving 1.010, 1.005, 1.003, 1.001, 1.001 |
| Thermal RC network: convergence | Runge–Kutta 4 | 64 | 1 | 16,380 | 7.30e-6 | 8.41e-7 | 2.06e-7 | – | 256 | 1,536 | 13,310 | |
| Thermal RC network: convergence | Runge–Kutta 4 | 32 | 1 | 16,380 | 4.30e-7 | 4.95e-8 | 1.21e-8 | – | 512 | 3,072 | 26,620 | |
| Thermal RC network: convergence | Runge–Kutta 4 | 16 | 1 | 16,380 | 2.61e-8 | 3.00e-9 | 7.35e-10 | – | 1,024 | 6,144 | 53,250 | |
| Thermal RC network: convergence | Runge–Kutta 4 | 8 | 1 | 16,380 | 1.60e-9 | 1.86e-10 | 4.53e-11 | – | 2,048 | 12,290 | 1.06e5 | |
| Thermal RC network: convergence | Runge–Kutta 4 | 4 | 1 | 16,380 | 9.94e-11 | 2.34e-11 | 2.98e-12 | 4.022 | 4,096 | 24,580 | 2.13e5 | observed order: fitted 4.022; per halving 4.087, 4.043, 4.022, 3.924 |
| Thermal RC network: convergence | Rodas4, error control off (1 step per global step) | 256 | 1 | 16,380 | 1.55e-4 | 1.78e-5 | 4.36e-6 | – | 64 | 384 | 4,992 | |
| Thermal RC network: convergence | Rodas4, error control off (1 step per global step) | 128 | 1 | 16,380 | 9.34e-6 | 1.08e-6 | 2.63e-7 | – | 128 | 768 | 9,984 | |
| Thermal RC network: convergence | Rodas4, error control off (1 step per global step) | 64 | 1 | 16,380 | 5.74e-7 | 6.62e-8 | 1.62e-8 | – | 256 | 1,536 | 19,970 | |
| Thermal RC network: convergence | Rodas4, error control off (1 step per global step) | 32 | 1 | 16,380 | 3.56e-8 | 4.10e-9 | 1.00e-9 | – | 512 | 3,072 | 39,940 | |
| Thermal RC network: convergence | Rodas4, error control off (1 step per global step) | 16 | 1 | 16,380 | 2.21e-9 | 2.56e-10 | 6.25e-11 | 4.022 | 1,024 | 6,144 | 79,870 | observed order: fitted 4.022; per halving 4.049, 4.024, 4.012, 4.006 |
| Thermal RC network: tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.001) | 1,024 | 1 | 16,380 | 0.004665 | 6.18e-4 | 1.35e-4 | – | 16 | 168 | 2,405 | 28 steps, 0 rejected, 185 evaluations of the model; error 0.14 times the tolerance |
| Thermal RC network: tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.0001) | 1,024 | 1 | 16,380 | 4.65e-4 | 6.56e-5 | 1.35e-5 | – | 16 | 186 | 2,639 | 31 steps, 0 rejected, 203 evaluations of the model; error 0.13 times the tolerance |
| Thermal RC network: tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.00001) | 1,024 | 1 | 16,380 | 4.06e-5 | 8.17e-6 | 1.18e-6 | – | 16 | 210 | 2,951 | 35 steps, 0 rejected, 227 evaluations of the model; error 0.12 times the tolerance |
| Thermal RC network: tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.000001) | 1,024 | 1 | 16,380 | 4.19e-6 | 1.17e-6 | 1.62e-7 | – | 16 | 270 | 3,731 | 45 steps, 0 rejected, 287 evaluations of the model; error 0.16 times the tolerance |
| Thermal RC network: tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-7) | 1,024 | 1 | 16,380 | 7.18e-7 | 2.19e-7 | 3.20e-8 | – | 16 | 330 | 4,511 | 55 steps, 0 rejected, 347 evaluations of the model; error 0.32 times the tolerance |
| Thermal RC network: tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-8) | 1,024 | 1 | 16,380 | 7.79e-8 | 3.62e-8 | 6.14e-9 | – | 16 | 468 | 6,305 | 78 steps, 0 rejected, 485 evaluations of the model; error 0.61 times the tolerance |
| Thermal RC network: tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-9) | 1,024 | 1 | 16,380 | 1.31e-8 | 5.10e-9 | 1.04e-9 | – | 16 | 648 | 8,645 | 108 steps, 0 rejected, 665 evaluations of the model; error 1.04 times the tolerance |
| Thermal RC network: tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-10) | 1,024 | 1 | 16,380 | 1.70e-9 | 6.75e-10 | 1.35e-10 | – | 16 | 912 | 12,080 | 152 steps, 0 rejected, 929 evaluations of the model; error 1.35 times the tolerance; error against tolerance: fitted slope 0.835 |
| Thermal RC network: tolerance | Stiff, Rodas4 (relative tolerance 0.001) | 1,024 | 1 | 16,380 | 0.001161 | 1.77e-4 | 3.36e-5 | – | 16 | 168 | 2,197 | 28 steps, 0 rejected, 169 evaluations of the model (28 Jacobians, 28 factorisations); error 0.03 times the tolerance |
| Thermal RC network: tolerance | Stiff, Rodas4 (relative tolerance 0.0001) | 1,024 | 1 | 16,380 | 1.92e-4 | 3.57e-5 | 5.56e-6 | – | 16 | 180 | 2,353 | 30 steps, 0 rejected, 181 evaluations of the model (30 Jacobians, 30 factorisations); error 0.06 times the tolerance |
| Thermal RC network: tolerance | Stiff, Rodas4 (relative tolerance 0.00001) | 1,024 | 1 | 16,380 | 2.62e-5 | 8.12e-6 | 1.68e-6 | – | 16 | 234 | 3,055 | 39 steps, 0 rejected, 235 evaluations of the model (39 Jacobians, 39 factorisations); error 0.17 times the tolerance |
| Thermal RC network: tolerance | Stiff, Rodas4 (relative tolerance 0.000001) | 1,024 | 1 | 16,380 | 5.48e-6 | 2.12e-6 | 4.36e-7 | – | 16 | 312 | 4,069 | 52 steps, 0 rejected, 313 evaluations of the model (52 Jacobians, 52 factorisations); error 0.44 times the tolerance |
| Thermal RC network: tolerance | Stiff, Rodas4 (relative tolerance 1e-7) | 1,024 | 1 | 16,380 | 1.50e-6 | 6.05e-7 | 1.19e-7 | – | 16 | 462 | 6,019 | 77 steps, 0 rejected, 463 evaluations of the model (77 Jacobians, 77 factorisations); error 1.19 times the tolerance |
| Thermal RC network: tolerance | Stiff, Rodas4 (relative tolerance 1e-8) | 1,024 | 1 | 16,380 | 1.97e-7 | 7.82e-8 | 1.55e-8 | – | 16 | 750 | 9,763 | 125 steps, 0 rejected, 751 evaluations of the model (125 Jacobians, 125 factorisations); error 1.55 times the tolerance |
| Thermal RC network: tolerance | Stiff, Rodas4 (relative tolerance 1e-9) | 1,024 | 1 | 16,380 | 2.31e-8 | 9.07e-9 | 1.82e-9 | – | 16 | 1,254 | 16,320 | 209 steps, 0 rejected, 1255 evaluations of the model (209 Jacobians, 209 factorisations); error 1.82 times the tolerance |
| Thermal RC network: tolerance | Stiff, Rodas4 (relative tolerance 1e-10) | 1,024 | 1 | 16,380 | 2.60e-9 | 1.02e-9 | 2.07e-10 | – | 16 | 2,142 | 27,860 | 357 steps, 0 rejected, 2143 evaluations of the model (357 Jacobians, 357 factorisations); error 2.07 times the tolerance; error against tolerance: fitted slope 0.721 |
| Thermal RC network: tolerance | Stiff, BDF (relative tolerance 0.001) | 1,024 | 1 | 16,380 | 0.001016 | 1.36e-4 | 2.94e-5 | – | 16 | 480 | 2,275 | 80 steps, 0 rejected, 175 evaluations of the model (16 Jacobians, 41 factorisations); error 0.03 times the tolerance |
| Thermal RC network: tolerance | Stiff, BDF (relative tolerance 0.0001) | 1,024 | 1 | 16,380 | 6.24e-5 | 1.59e-5 | 3.88e-6 | – | 16 | 594 | 2,795 | 99 steps, 0 rejected, 215 evaluations of the model (16 Jacobians, 47 factorisations); error 0.04 times the tolerance |
| Thermal RC network: tolerance | Stiff, BDF (relative tolerance 0.00001) | 1,024 | 1 | 16,380 | 1.33e-5 | 3.79e-6 | 6.86e-7 | – | 16 | 690 | 3,211 | 115 steps, 0 rejected, 247 evaluations of the model (16 Jacobians, 43 factorisations); error 0.07 times the tolerance |
| Thermal RC network: tolerance | Stiff, BDF (relative tolerance 0.000001) | 1,024 | 1 | 16,380 | 1.76e-6 | 4.08e-7 | 5.16e-8 | – | 16 | 924 | 4,225 | 154 steps, 0 rejected, 325 evaluations of the model (16 Jacobians, 55 factorisations); error 0.05 times the tolerance |
| Thermal RC network: tolerance | Stiff, BDF (relative tolerance 1e-7) | 1,024 | 1 | 16,380 | 2.55e-7 | 8.55e-8 | 1.65e-8 | – | 16 | 1,230 | 5,551 | 205 steps, 0 rejected, 427 evaluations of the model (16 Jacobians, 62 factorisations); error 0.17 times the tolerance |
| Thermal RC network: tolerance | Stiff, BDF (relative tolerance 1e-8) | 1,024 | 1 | 16,380 | 4.16e-8 | 1.67e-8 | 3.09e-9 | – | 16 | 1,632 | 7,293 | 272 steps, 0 rejected, 561 evaluations of the model (16 Jacobians, 74 factorisations); error 0.31 times the tolerance |
| Thermal RC network: tolerance | Stiff, BDF (relative tolerance 1e-9) | 1,024 | 1 | 16,380 | 5.52e-9 | 2.81e-9 | 4.39e-10 | – | 16 | 2,250 | 9,971 | 375 steps, 0 rejected, 767 evaluations of the model (16 Jacobians, 96 factorisations); error 0.44 times the tolerance |
| Thermal RC network: tolerance | Stiff, BDF (relative tolerance 1e-10) | 1,024 | 1 | 16,380 | 8.26e-10 | 3.97e-10 | 6.57e-11 | – | 16 | 3,288 | 14,470 | 548 steps, 0 rejected, 1113 evaluations of the model (16 Jacobians, 128 factorisations); error 0.66 times the tolerance; error against tolerance: fitted slope 0.796 |
| Series RLC: convergence | explicit Euler | 6.10e-5 | 1 | 0.03125 | 1.321 | 0.5325 | 0.08987 | – | 512 | 1,024 | 2,560 | |
| Series RLC: convergence | explicit Euler | 3.05e-5 | 1 | 0.03125 | 0.6017 | 0.2355 | 0.04127 | – | 1,024 | 2,048 | 5,120 | |
| Series RLC: convergence | explicit Euler | 1.53e-5 | 1 | 0.03125 | 0.2902 | 0.1112 | 0.01979 | – | 2,048 | 4,096 | 10,240 | |
| Series RLC: convergence | explicit Euler | 7.63e-6 | 1 | 0.03125 | 0.1425 | 0.05412 | 0.009692 | – | 4,096 | 8,192 | 20,480 | |
| Series RLC: convergence | explicit Euler | 3.81e-6 | 1 | 0.03125 | 0.07064 | 0.0267 | 0.004796 | – | 8,192 | 16,380 | 40,960 | |
| Series RLC: convergence | explicit Euler | 1.91e-6 | 1 | 0.03125 | 0.03516 | 0.01326 | 0.002386 | 1.043 | 16,380 | 32,770 | 81,920 | observed order: fitted 1.043; per halving 1.123, 1.060, 1.030, 1.015, 1.007 |
| Series RLC: convergence | semi-implicit Euler | 6.10e-5 | 1 | 0.03125 | 0.3022 | 0.09702 | 0.01767 | – | 512 | 1,024 | 2,560 | |
| Series RLC: convergence | semi-implicit Euler | 3.05e-5 | 1 | 0.03125 | 0.1504 | 0.04802 | 0.008796 | – | 1,024 | 2,048 | 5,120 | |
| Series RLC: convergence | semi-implicit Euler | 1.53e-5 | 1 | 0.03125 | 0.07505 | 0.02389 | 0.004388 | – | 2,048 | 4,096 | 10,240 | |
| Series RLC: convergence | semi-implicit Euler | 7.63e-6 | 1 | 0.03125 | 0.03748 | 0.01191 | 0.002192 | – | 4,096 | 8,192 | 20,480 | |
| Series RLC: convergence | semi-implicit Euler | 3.81e-6 | 1 | 0.03125 | 0.01873 | 0.00595 | 0.001095 | – | 8,192 | 16,380 | 40,960 | |
| Series RLC: convergence | semi-implicit Euler | 1.91e-6 | 1 | 0.03125 | 0.009364 | 0.002973 | 5.48e-4 | 1.002 | 16,380 | 32,770 | 81,920 | observed order: fitted 1.002; per halving 1.006, 1.003, 1.002, 1.001, 1.000 |
| Series RLC: convergence | Runge–Kutta 4 | 2.44e-4 | 1 | 0.03125 | 0.001107 | 4.17e-4 | 7.52e-5 | – | 128 | 256 | 2,560 | |
| Series RLC: convergence | Runge–Kutta 4 | 1.22e-4 | 1 | 0.03125 | 6.89e-5 | 2.58e-5 | 4.59e-6 | – | 256 | 512 | 5,120 | |
| Series RLC: convergence | Runge–Kutta 4 | 6.10e-5 | 1 | 0.03125 | 4.28e-6 | 1.60e-6 | 2.85e-7 | – | 512 | 1,024 | 10,240 | |
| Series RLC: convergence | Runge–Kutta 4 | 3.05e-5 | 1 | 0.03125 | 2.67e-7 | 1.00e-7 | 1.78e-8 | – | 1,024 | 2,048 | 20,480 | |
| Series RLC: convergence | Runge–Kutta 4 | 1.53e-5 | 1 | 0.03125 | 1.66e-8 | 6.24e-9 | 1.11e-9 | – | 2,048 | 4,096 | 40,960 | |
| Series RLC: convergence | Runge–Kutta 4 | 7.63e-6 | 1 | 0.03125 | 1.04e-9 | 3.90e-10 | 6.92e-11 | 4.009 | 4,096 | 8,192 | 81,920 | observed order: fitted 4.009; per halving 4.033, 4.008, 4.005, 4.003, 4.002 |
| Series RLC: convergence | Dormand–Prince 5(4), error control off (1 step per global step) | 2.44e-4 | 1 | 0.03125 | 9.39e-6 | 3.54e-6 | 6.37e-7 | – | 128 | 256 | 4,480 | |
| Series RLC: convergence | Dormand–Prince 5(4), error control off (1 step per global step) | 1.22e-4 | 1 | 0.03125 | 2.83e-7 | 1.07e-7 | 1.93e-8 | – | 256 | 512 | 8,960 | |
| Series RLC: convergence | Dormand–Prince 5(4), error control off (1 step per global step) | 6.10e-5 | 1 | 0.03125 | 8.61e-9 | 3.29e-9 | 5.85e-10 | – | 512 | 1,024 | 17,920 | |
| Series RLC: convergence | Dormand–Prince 5(4), error control off (1 step per global step) | 3.05e-5 | 1 | 0.03125 | 2.68e-10 | 1.02e-10 | 1.80e-11 | – | 1,024 | 2,048 | 35,840 | |
| Series RLC: convergence | Dormand–Prince 5(4), error control off (1 step per global step) | 1.53e-5 | 1 | 0.03125 | 8.35e-12 | 3.19e-12 | 5.62e-13 | 5.029 | 2,048 | 4,096 | 71,680 | observed order: fitted 5.029; per halving 5.046, 5.041, 5.023, 5.001 |
| Series RLC: convergence | Rodas4, error control off (1 step per global step) | 4.88e-4 | 1 | 0.03125 | 0.001535 | 5.75e-4 | 1.02e-4 | – | 64 | 128 | 1,920 | |
| Series RLC: convergence | Rodas4, error control off (1 step per global step) | 2.44e-4 | 1 | 0.03125 | 9.53e-5 | 3.58e-5 | 6.36e-6 | – | 128 | 256 | 3,840 | |
| Series RLC: convergence | Rodas4, error control off (1 step per global step) | 1.22e-4 | 1 | 0.03125 | 5.94e-6 | 2.23e-6 | 3.96e-7 | – | 256 | 512 | 7,680 | |
| Series RLC: convergence | Rodas4, error control off (1 step per global step) | 6.10e-5 | 1 | 0.03125 | 3.71e-7 | 1.39e-7 | 2.47e-8 | – | 512 | 1,024 | 15,360 | |
| Series RLC: convergence | Rodas4, error control off (1 step per global step) | 3.05e-5 | 1 | 0.03125 | 2.31e-8 | 8.70e-9 | 1.54e-9 | – | 1,024 | 2,048 | 30,720 | |
| Series RLC: convergence | Rodas4, error control off (1 step per global step) | 1.53e-5 | 1 | 0.03125 | 1.45e-9 | 5.43e-10 | 9.65e-11 | 4.003 | 2,048 | 4,096 | 61,440 | observed order: fitted 4.003; per halving 4.008, 4.004, 4.002, 4.001, 4.000 |
| Series RLC: tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.001) | 0.001953 | 1 | 0.03125 | 0.006665 | 0.002453 | 4.75e-4 | – | 16 | 92 | 1,495 | 46 steps, 1 rejected, 299 evaluations of the model; error 0.48 times the tolerance |
| Series RLC: tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.0001) | 0.001953 | 1 | 0.03125 | 6.48e-4 | 2.72e-4 | 5.20e-5 | – | 16 | 130 | 2,155 | 65 steps, 4 rejected, 431 evaluations of the model; error 0.52 times the tolerance |
| Series RLC: tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.00001) | 0.001953 | 1 | 0.03125 | 7.54e-5 | 3.06e-5 | 5.80e-6 | – | 16 | 184 | 3,085 | 92 steps, 8 rejected, 617 evaluations of the model; error 0.58 times the tolerance |
| Series RLC: tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.000001) | 0.001953 | 1 | 0.03125 | 8.47e-6 | 3.33e-6 | 6.03e-7 | – | 16 | 278 | 4,435 | 139 steps, 6 rejected, 887 evaluations of the model; error 0.60 times the tolerance |
| Series RLC: tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-7) | 0.001953 | 1 | 0.03125 | 8.78e-7 | 3.46e-7 | 6.57e-8 | – | 16 | 430 | 6,775 | 215 steps, 8 rejected, 1355 evaluations of the model; error 0.66 times the tolerance |
| Series RLC: tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-8) | 0.001953 | 1 | 0.03125 | 8.67e-8 | 3.51e-8 | 6.68e-9 | – | 16 | 684 | 10,650 | 342 steps, 10 rejected, 2129 evaluations of the model; error 0.67 times the tolerance |
| Series RLC: tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-9) | 0.001953 | 1 | 0.03125 | 8.61e-9 | 3.57e-9 | 6.88e-10 | – | 16 | 1,072 | 16,410 | 536 steps, 8 rejected, 3281 evaluations of the model; error 0.69 times the tolerance |
| Series RLC: tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-10) | 0.001953 | 1 | 0.03125 | 8.65e-10 | 3.64e-10 | 7.06e-11 | – | 16 | 1,700 | 25,890 | 850 steps, 10 rejected, 5177 evaluations of the model; error 0.71 times the tolerance; error against tolerance: fitted slope 0.976 |
| Series RLC: tolerance | Stiff, Rodas4 (relative tolerance 0.001) | 0.001953 | 1 | 0.03125 | 0.005393 | 0.001873 | 4.15e-4 | – | 16 | 112 | 1,885 | 56 steps, 8 rejected, 377 evaluations of the model (56 Jacobians, 64 factorisations); error 0.42 times the tolerance |
| Series RLC: tolerance | Stiff, Rodas4 (relative tolerance 0.0001) | 0.001953 | 1 | 0.03125 | 4.82e-4 | 1.81e-4 | 4.05e-5 | – | 16 | 192 | 3,185 | 96 steps, 12 rejected, 637 evaluations of the model (96 Jacobians, 108 factorisations); error 0.41 times the tolerance |
| Series RLC: tolerance | Stiff, Rodas4 (relative tolerance 0.00001) | 0.001953 | 1 | 0.03125 | 4.88e-5 | 1.87e-5 | 4.11e-6 | – | 16 | 326 | 5,295 | 163 steps, 16 rejected, 1059 evaluations of the model (163 Jacobians, 179 factorisations); error 0.41 times the tolerance |
| Series RLC: tolerance | Stiff, Rodas4 (relative tolerance 0.000001) | 0.001953 | 1 | 0.03125 | 5.11e-6 | 1.95e-6 | 4.23e-7 | – | 16 | 554 | 8,615 | 277 steps, 12 rejected, 1723 evaluations of the model (277 Jacobians, 289 factorisations); error 0.42 times the tolerance |
| Series RLC: tolerance | Stiff, Rodas4 (relative tolerance 1e-7) | 0.001953 | 1 | 0.03125 | 5.24e-7 | 2.01e-7 | 4.34e-8 | – | 16 | 974 | 14,770 | 487 steps, 6 rejected, 2953 evaluations of the model (487 Jacobians, 493 factorisations); error 0.43 times the tolerance |
| Series RLC: tolerance | Stiff, Rodas4 (relative tolerance 1e-8) | 0.001953 | 1 | 0.03125 | 5.22e-8 | 2.03e-8 | 4.37e-9 | – | 16 | 1,718 | 25,950 | 859 steps, 7 rejected, 5190 evaluations of the model (859 Jacobians, 866 factorisations); error 0.44 times the tolerance |
| Series RLC: tolerance | Stiff, Rodas4 (relative tolerance 1e-9) | 0.001953 | 1 | 0.03125 | 5.24e-9 | 2.04e-9 | 4.37e-10 | – | 16 | 3,042 | 45,710 | 1521 steps, 3 rejected, 9142 evaluations of the model (1521 Jacobians, 1524 factorisations); error 0.44 times the tolerance |
| Series RLC: tolerance | Stiff, Rodas4 (relative tolerance 1e-10) | 0.001953 | 1 | 0.03125 | 5.25e-10 | 2.04e-10 | 4.37e-11 | – | 16 | 5,396 | 81,000 | 2698 steps, 2 rejected, 16199 evaluations of the model (2698 Jacobians, 2700 factorisations); error 0.44 times the tolerance; error against tolerance: fitted slope 0.995 |
| Series RLC: tolerance | Stiff, BDF (relative tolerance 0.001) | 0.001953 | 1 | 0.03125 | 0.001848 | 6.69e-4 | 1.58e-4 | – | 16 | 376 | 2,005 | 188 steps, 4 rejected, 401 evaluations of the model (16 Jacobians, 63 factorisations); error 0.16 times the tolerance |
| Series RLC: tolerance | Stiff, BDF (relative tolerance 0.0001) | 0.001953 | 1 | 0.03125 | 2.62e-4 | 1.00e-4 | 2.02e-5 | – | 16 | 536 | 2,805 | 268 steps, 4 rejected, 561 evaluations of the model (16 Jacobians, 80 factorisations); error 0.20 times the tolerance |
| Series RLC: tolerance | Stiff, BDF (relative tolerance 0.00001) | 0.001953 | 1 | 0.03125 | 3.43e-5 | 1.25e-5 | 2.53e-6 | – | 16 | 782 | 4,140 | 391 steps, 14 rejected, 828 evaluations of the model (16 Jacobians, 107 factorisations); error 0.25 times the tolerance |
| Series RLC: tolerance | Stiff, BDF (relative tolerance 0.000001) | 0.001953 | 1 | 0.03125 | 4.61e-6 | 1.76e-6 | 3.49e-7 | – | 16 | 1,138 | 5,985 | 569 steps, 19 rejected, 1197 evaluations of the model (16 Jacobians, 142 factorisations); error 0.35 times the tolerance |
| Series RLC: tolerance | Stiff, BDF (relative tolerance 1e-7) | 0.001953 | 1 | 0.03125 | 6.00e-7 | 2.26e-7 | 4.46e-8 | – | 16 | 1,674 | 8,685 | 837 steps, 20 rejected, 1737 evaluations of the model (16 Jacobians, 182 factorisations); error 0.45 times the tolerance |
| Series RLC: tolerance | Stiff, BDF (relative tolerance 1e-8) | 0.001953 | 1 | 0.03125 | 7.79e-8 | 2.98e-8 | 5.84e-9 | – | 16 | 2,460 | 12,720 | 1230 steps, 23 rejected, 2543 evaluations of the model (16 Jacobians, 245 factorisations); error 0.58 times the tolerance |
| Series RLC: tolerance | Stiff, BDF (relative tolerance 1e-9) | 0.001953 | 1 | 0.03125 | 9.81e-9 | 3.80e-9 | 7.44e-10 | – | 16 | 3,664 | 18,530 | 1832 steps, 12 rejected, 3706 evaluations of the model (16 Jacobians, 342 factorisations); error 0.74 times the tolerance |
| Series RLC: tolerance | Stiff, BDF (relative tolerance 1e-10) | 0.001953 | 1 | 0.03125 | 1.20e-9 | 4.70e-10 | 9.16e-11 | – | 16 | 5,522 | 27,820 | 2761 steps, 12 rejected, 5563 evaluations of the model (16 Jacobians, 496 factorisations); error 0.92 times the tolerance; error against tolerance: fitted slope 0.889 |
| Coupled RLC pair: convergence | explicit Euler | 6.10e-5 | 1 | 0.03125 | 1.34 | 0.5454 | 0.1334 | – | 512 | 1,536 | 6,144 | |
| Coupled RLC pair: convergence | explicit Euler | 3.05e-5 | 1 | 0.03125 | 0.5909 | 0.2354 | 0.0588 | – | 1,024 | 3,072 | 12,290 | |
| Coupled RLC pair: convergence | explicit Euler | 1.53e-5 | 1 | 0.03125 | 0.2779 | 0.1099 | 0.02765 | – | 2,048 | 6,144 | 24,580 | |
| Coupled RLC pair: convergence | explicit Euler | 7.63e-6 | 1 | 0.03125 | 0.1348 | 0.05319 | 0.01342 | – | 4,096 | 12,290 | 49,150 | |
| Coupled RLC pair: convergence | explicit Euler | 3.81e-6 | 1 | 0.03125 | 0.06642 | 0.02617 | 0.006609 | – | 8,192 | 24,580 | 98,300 | |
| Coupled RLC pair: convergence | explicit Euler | 1.91e-6 | 1 | 0.03125 | 0.03296 | 0.01298 | 0.00328 | 1.064 | 16,380 | 49,150 | 1.97e5 | observed order: fitted 1.064; per halving 1.182, 1.088, 1.043, 1.022, 1.011 |
| Coupled RLC pair: convergence | semi-implicit Euler | 6.10e-5 | 1 | 0.03125 | 0.2682 | 0.07229 | 0.01936 | – | 512 | 1,536 | 6,144 | |
| Coupled RLC pair: convergence | semi-implicit Euler | 3.05e-5 | 1 | 0.03125 | 0.1336 | 0.03566 | 0.009641 | – | 1,024 | 3,072 | 12,290 | |
| Coupled RLC pair: convergence | semi-implicit Euler | 1.53e-5 | 1 | 0.03125 | 0.06665 | 0.01771 | 0.004811 | – | 2,048 | 6,144 | 24,580 | |
| Coupled RLC pair: convergence | semi-implicit Euler | 7.63e-6 | 1 | 0.03125 | 0.03329 | 0.008824 | 0.002403 | – | 4,096 | 12,290 | 49,150 | |
| Coupled RLC pair: convergence | semi-implicit Euler | 3.81e-6 | 1 | 0.03125 | 0.01664 | 0.004404 | 0.001201 | – | 8,192 | 24,580 | 98,300 | |
| Coupled RLC pair: convergence | semi-implicit Euler | 1.91e-6 | 1 | 0.03125 | 0.008317 | 0.0022 | 6.00e-4 | 1.002 | 16,380 | 49,150 | 1.97e5 | observed order: fitted 1.002; per halving 1.006, 1.003, 1.001, 1.001, 1.000 |
| Coupled RLC pair: convergence | Runge–Kutta 4 | 2.44e-4 | 1 | 0.03125 | 0.001027 | 4.05e-4 | 1.02e-4 | – | 128 | 384 | 6,144 | |
| Coupled RLC pair: convergence | Runge–Kutta 4 | 1.22e-4 | 1 | 0.03125 | 6.27e-5 | 2.51e-5 | 6.28e-6 | – | 256 | 768 | 12,290 | |
| Coupled RLC pair: convergence | Runge–Kutta 4 | 6.10e-5 | 1 | 0.03125 | 3.89e-6 | 1.56e-6 | 3.91e-7 | – | 512 | 1,536 | 24,580 | |
| Coupled RLC pair: convergence | Runge–Kutta 4 | 3.05e-5 | 1 | 0.03125 | 2.44e-7 | 9.74e-8 | 2.44e-8 | – | 1,024 | 3,072 | 49,150 | |
| Coupled RLC pair: convergence | Runge–Kutta 4 | 1.53e-5 | 1 | 0.03125 | 1.53e-8 | 6.08e-9 | 1.52e-9 | – | 2,048 | 6,144 | 98,300 | |
| Coupled RLC pair: convergence | Runge–Kutta 4 | 7.63e-6 | 1 | 0.03125 | 9.54e-10 | 3.80e-10 | 9.52e-11 | 4.006 | 4,096 | 12,290 | 1.97e5 | observed order: fitted 4.006; per halving 4.025, 4.003, 4.003, 4.002, 4.001 |
| Coupled RLC pair: convergence | Dormand–Prince 5(4), error control off (1 step per global step) | 2.44e-4 | 1 | 0.03125 | 8.63e-6 | 3.41e-6 | 8.59e-7 | – | 128 | 384 | 10,750 | |
| Coupled RLC pair: convergence | Dormand–Prince 5(4), error control off (1 step per global step) | 1.22e-4 | 1 | 0.03125 | 2.61e-7 | 1.04e-7 | 2.59e-8 | – | 256 | 768 | 21,500 | |
| Coupled RLC pair: convergence | Dormand–Prince 5(4), error control off (1 step per global step) | 6.10e-5 | 1 | 0.03125 | 8.05e-9 | 3.20e-9 | 8.01e-10 | – | 512 | 1,536 | 43,010 | |
| Coupled RLC pair: convergence | Dormand–Prince 5(4), error control off (1 step per global step) | 3.05e-5 | 1 | 0.03125 | 2.51e-10 | 9.96e-11 | 2.50e-11 | – | 1,024 | 3,072 | 86,020 | |
| Coupled RLC pair: convergence | Dormand–Prince 5(4), error control off (1 step per global step) | 1.53e-5 | 1 | 0.03125 | 7.87e-12 | 3.10e-12 | 7.83e-13 | 5.015 | 2,048 | 6,144 | 1.72e5 | observed order: fitted 5.015; per halving 5.049, 5.017, 5.001, 4.996 |
| Coupled RLC pair: convergence | Rodas4, error control off (1 step per global step) | 4.88e-4 | 1 | 0.03125 | 0.001393 | 5.60e-4 | 1.40e-4 | – | 64 | 192 | 4,608 | |
| Coupled RLC pair: convergence | Rodas4, error control off (1 step per global step) | 2.44e-4 | 1 | 0.03125 | 8.71e-5 | 3.48e-5 | 8.73e-6 | – | 128 | 384 | 9,216 | |
| Coupled RLC pair: convergence | Rodas4, error control off (1 step per global step) | 1.22e-4 | 1 | 0.03125 | 5.45e-6 | 2.17e-6 | 5.44e-7 | – | 256 | 768 | 18,430 | |
| Coupled RLC pair: convergence | Rodas4, error control off (1 step per global step) | 6.10e-5 | 1 | 0.03125 | 3.41e-7 | 1.36e-7 | 3.40e-8 | – | 512 | 1,536 | 36,860 | |
| Coupled RLC pair: convergence | Rodas4, error control off (1 step per global step) | 3.05e-5 | 1 | 0.03125 | 2.13e-8 | 8.47e-9 | 2.12e-9 | – | 1,024 | 3,072 | 73,730 | |
| Coupled RLC pair: convergence | Rodas4, error control off (1 step per global step) | 1.53e-5 | 1 | 0.03125 | 1.33e-9 | 5.29e-10 | 1.33e-10 | 4.002 | 2,048 | 6,144 | 1.47e5 | observed order: fitted 4.002; per halving 4.006, 4.003, 4.001, 4.001, 4.000 |
| Coupled RLC pair: tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.001) | 0.001953 | 1 | 0.03125 | 0.006917 | 0.002503 | 8.85e-4 | – | 16 | 153 | 3,948 | 51 steps, 1 rejected, 329 evaluations of the model; error 0.89 times the tolerance |
| Coupled RLC pair: tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.0001) | 0.001953 | 1 | 0.03125 | 6.88e-4 | 2.73e-4 | 8.81e-5 | – | 16 | 204 | 5,244 | 68 steps, 2 rejected, 437 evaluations of the model; error 0.88 times the tolerance |
| Coupled RLC pair: tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.00001) | 0.001953 | 1 | 0.03125 | 7.60e-5 | 3.07e-5 | 9.72e-6 | – | 16 | 288 | 7,620 | 96 steps, 7 rejected, 635 evaluations of the model; error 0.97 times the tolerance |
| Coupled RLC pair: tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.000001) | 0.001953 | 1 | 0.03125 | 7.91e-6 | 3.23e-6 | 1.01e-6 | – | 16 | 438 | 11,360 | 146 steps, 9 rejected, 947 evaluations of the model; error 1.01 times the tolerance |
| Coupled RLC pair: tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-7) | 0.001953 | 1 | 0.03125 | 8.38e-7 | 3.44e-7 | 1.07e-7 | – | 16 | 678 | 17,120 | 226 steps, 9 rejected, 1427 evaluations of the model; error 1.07 times the tolerance |
| Coupled RLC pair: tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-8) | 0.001953 | 1 | 0.03125 | 8.56e-8 | 3.54e-8 | 1.09e-8 | – | 16 | 1,059 | 26,480 | 353 steps, 12 rejected, 2207 evaluations of the model; error 1.09 times the tolerance |
| Coupled RLC pair: tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-9) | 0.001953 | 1 | 0.03125 | 8.69e-9 | 3.63e-9 | 1.11e-9 | – | 16 | 1,665 | 40,740 | 555 steps, 8 rejected, 3395 evaluations of the model; error 1.11 times the tolerance |
| Coupled RLC pair: tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-10) | 0.001953 | 1 | 0.03125 | 8.73e-10 | 3.65e-10 | 1.12e-10 | – | 16 | 2,619 | 63,710 | 873 steps, 9 rejected, 5309 evaluations of the model; error 1.12 times the tolerance; error against tolerance: fitted slope 0.983 |
| Coupled RLC pair: tolerance | Stiff, Rodas4 (relative tolerance 0.001) | 0.001953 | 1 | 0.03125 | 0.00546 | 0.002001 | 6.99e-4 | – | 16 | 168 | 4,704 | 56 steps, 11 rejected, 392 evaluations of the model (56 Jacobians, 67 factorisations); error 0.70 times the tolerance |
| Coupled RLC pair: tolerance | Stiff, Rodas4 (relative tolerance 0.0001) | 0.001953 | 1 | 0.03125 | 5.52e-4 | 2.07e-4 | 7.06e-5 | – | 16 | 291 | 7,836 | 97 steps, 14 rejected, 653 evaluations of the model (97 Jacobians, 111 factorisations); error 0.71 times the tolerance |
| Coupled RLC pair: tolerance | Stiff, Rodas4 (relative tolerance 0.00001) | 0.001953 | 1 | 0.03125 | 5.86e-5 | 2.20e-5 | 7.50e-6 | – | 16 | 498 | 12,620 | 166 steps, 11 rejected, 1052 evaluations of the model (166 Jacobians, 177 factorisations); error 0.75 times the tolerance |
| Coupled RLC pair: tolerance | Stiff, Rodas4 (relative tolerance 0.000001) | 0.001953 | 1 | 0.03125 | 5.95e-6 | 2.24e-6 | 7.62e-7 | – | 16 | 870 | 21,370 | 290 steps, 8 rejected, 1781 evaluations of the model (290 Jacobians, 298 factorisations); error 0.76 times the tolerance |
| Coupled RLC pair: tolerance | Stiff, Rodas4 (relative tolerance 1e-7) | 0.001953 | 1 | 0.03125 | 5.91e-7 | 2.22e-7 | 7.56e-8 | – | 16 | 1,524 | 36,950 | 508 steps, 6 rejected, 3079 evaluations of the model (508 Jacobians, 514 factorisations); error 0.76 times the tolerance |
| Coupled RLC pair: tolerance | Stiff, Rodas4 (relative tolerance 1e-8) | 0.001953 | 1 | 0.03125 | 5.94e-8 | 2.23e-8 | 7.60e-9 | – | 16 | 2,688 | 64,880 | 896 steps, 6 rejected, 5407 evaluations of the model (896 Jacobians, 902 factorisations); error 0.76 times the tolerance |
| Coupled RLC pair: tolerance | Stiff, Rodas4 (relative tolerance 1e-9) | 0.001953 | 1 | 0.03125 | 5.91e-9 | 2.23e-9 | 7.57e-10 | – | 16 | 4,764 | 1.15e5 | 1588 steps, 4 rejected, 9549 evaluations of the model (1588 Jacobians, 1592 factorisations); error 0.76 times the tolerance |
| Coupled RLC pair: tolerance | Stiff, Rodas4 (relative tolerance 1e-10) | 0.001953 | 1 | 0.03125 | 5.90e-10 | 2.23e-10 | 7.55e-11 | – | 16 | 8,466 | 2.03e5 | 2822 steps, 5 rejected, 16958 evaluations of the model (2822 Jacobians, 2827 factorisations); error 0.75 times the tolerance; error against tolerance: fitted slope 0.995 |
| Coupled RLC pair: tolerance | Stiff, BDF (relative tolerance 0.001) | 0.001953 | 1 | 0.03125 | 0.001822 | 6.11e-4 | 2.33e-4 | – | 16 | 603 | 5,148 | 201 steps, 5 rejected, 429 evaluations of the model (16 Jacobians, 70 factorisations); error 0.23 times the tolerance |
| Coupled RLC pair: tolerance | Stiff, BDF (relative tolerance 0.0001) | 0.001953 | 1 | 0.03125 | 3.16e-4 | 1.19e-4 | 4.04e-5 | – | 16 | 810 | 6,804 | 270 steps, 5 rejected, 567 evaluations of the model (16 Jacobians, 81 factorisations); error 0.40 times the tolerance |
| Coupled RLC pair: tolerance | Stiff, BDF (relative tolerance 0.00001) | 0.001953 | 1 | 0.03125 | 4.21e-5 | 1.67e-5 | 5.39e-6 | – | 16 | 1,179 | 9,948 | 393 steps, 13 rejected, 829 evaluations of the model (16 Jacobians, 106 factorisations); error 0.54 times the tolerance |
| Coupled RLC pair: tolerance | Stiff, BDF (relative tolerance 0.000001) | 0.001953 | 1 | 0.03125 | 5.67e-6 | 2.30e-6 | 7.26e-7 | – | 16 | 1,665 | 13,760 | 555 steps, 10 rejected, 1147 evaluations of the model (16 Jacobians, 126 factorisations); error 0.73 times the tolerance |
| Coupled RLC pair: tolerance | Stiff, BDF (relative tolerance 1e-7) | 0.001953 | 1 | 0.03125 | 7.22e-7 | 2.94e-7 | 9.24e-8 | – | 16 | 2,484 | 20,360 | 828 steps, 12 rejected, 1697 evaluations of the model (16 Jacobians, 174 factorisations); error 0.92 times the tolerance |
| Coupled RLC pair: tolerance | Stiff, BDF (relative tolerance 1e-8) | 0.001953 | 1 | 0.03125 | 9.16e-8 | 3.72e-8 | 1.17e-8 | – | 16 | 3,705 | 30,130 | 1235 steps, 12 rejected, 2511 evaluations of the model (16 Jacobians, 246 factorisations); error 1.17 times the tolerance |
| Coupled RLC pair: tolerance | Stiff, BDF (relative tolerance 1e-9) | 0.001953 | 1 | 0.03125 | 1.15e-8 | 4.63e-9 | 1.47e-9 | – | 16 | 5,538 | 44,890 | 1846 steps, 16 rejected, 3741 evaluations of the model (16 Jacobians, 349 factorisations); error 1.47 times the tolerance |
| Coupled RLC pair: tolerance | Stiff, BDF (relative tolerance 1e-10) | 0.001953 | 1 | 0.03125 | 1.43e-9 | 5.73e-10 | 1.83e-10 | – | 16 | 8,313 | 67,020 | 2771 steps, 13 rejected, 5585 evaluations of the model (16 Jacobians, 498 factorisations); error 1.83 times the tolerance; error against tolerance: fitted slope 0.879 |
| Harmonic oscillator: convergence | explicit Euler | 0.01563 | 1 | 16 | 0.1309 | 0.05373 | 0.06546 | – | 1,024 | 1,024 | 2,048 | |
| Harmonic oscillator: convergence | explicit Euler | 0.007813 | 1 | 16 | 0.06341 | 0.02623 | 0.03172 | – | 2,048 | 2,048 | 4,096 | |
| Harmonic oscillator: convergence | explicit Euler | 0.003906 | 1 | 16 | 0.03122 | 0.01296 | 0.01561 | – | 4,096 | 4,096 | 8,192 | |
| Harmonic oscillator: convergence | explicit Euler | 0.001953 | 1 | 16 | 0.01549 | 0.006442 | 0.007747 | – | 8,192 | 8,192 | 16,380 | |
| Harmonic oscillator: convergence | explicit Euler | 9.77e-4 | 1 | 16 | 0.007713 | 0.003211 | 0.003858 | – | 16,380 | 16,380 | 32,770 | |
| Harmonic oscillator: convergence | explicit Euler | 4.88e-4 | 1 | 16 | 0.003849 | 0.001603 | 0.001925 | 1.016 | 32,770 | 32,770 | 65,540 | observed order: fitted 1.016; per halving 1.045, 1.022, 1.011, 1.006, 1.003 |
| Harmonic oscillator: convergence | semi-implicit Euler | 0.01563 | 1 | 16 | 0.007778 | 0.003807 | 0.003891 | – | 1,024 | 1,024 | 2,048 | |
| Harmonic oscillator: convergence | semi-implicit Euler | 0.007813 | 1 | 16 | 0.003893 | 0.001913 | 0.001947 | – | 2,048 | 2,048 | 4,096 | |
| Harmonic oscillator: convergence | semi-implicit Euler | 0.003906 | 1 | 16 | 0.001949 | 9.59e-4 | 9.75e-4 | – | 4,096 | 4,096 | 8,192 | |
| Harmonic oscillator: convergence | semi-implicit Euler | 0.001953 | 1 | 16 | 9.75e-4 | 4.80e-4 | 4.88e-4 | – | 8,192 | 8,192 | 16,380 | |
| Harmonic oscillator: convergence | semi-implicit Euler | 9.77e-4 | 1 | 16 | 4.88e-4 | 2.40e-4 | 2.44e-4 | – | 16,380 | 16,380 | 32,770 | |
| Harmonic oscillator: convergence | semi-implicit Euler | 4.88e-4 | 1 | 16 | 2.44e-4 | 1.20e-4 | 1.22e-4 | 0.9988 | 32,770 | 32,770 | 65,540 | observed order: fitted 0.999; per halving 0.999, 0.998, 0.999, 0.999, 0.999 |
| Harmonic oscillator: convergence | Verlet | 0.01563 | 1 | 16 | 1.65e-4 | 6.80e-5 | 8.24e-5 | – | 1,024 | 1,024 | 3,072 | |
| Harmonic oscillator: convergence | Verlet | 0.007813 | 1 | 16 | 4.12e-5 | 1.70e-5 | 2.06e-5 | – | 2,048 | 2,048 | 6,144 | |
| Harmonic oscillator: convergence | Verlet | 0.003906 | 1 | 16 | 1.03e-5 | 4.25e-6 | 5.15e-6 | – | 4,096 | 4,096 | 12,290 | |
| Harmonic oscillator: convergence | Verlet | 0.001953 | 1 | 16 | 2.57e-6 | 1.06e-6 | 1.29e-6 | – | 8,192 | 8,192 | 24,580 | |
| Harmonic oscillator: convergence | Verlet | 9.77e-4 | 1 | 16 | 6.43e-7 | 2.66e-7 | 3.22e-7 | – | 16,380 | 16,380 | 49,150 | |
| Harmonic oscillator: convergence | Verlet | 4.88e-4 | 1 | 16 | 1.61e-7 | 6.64e-8 | 8.05e-8 | 2 | 32,770 | 32,770 | 98,300 | observed order: fitted 2.000; per halving 2.000, 2.000, 2.000, 2.000, 2.000 |
| Harmonic oscillator: convergence | Runge–Kutta 4 | 0.0625 | 1 | 16 | 2.00e-6 | 8.34e-7 | 1.00e-6 | – | 256 | 256 | 2,048 | |
| Harmonic oscillator: convergence | Runge–Kutta 4 | 0.03125 | 1 | 16 | 1.25e-7 | 5.21e-8 | 6.27e-8 | – | 512 | 512 | 4,096 | |
| Harmonic oscillator: convergence | Runge–Kutta 4 | 0.01563 | 1 | 16 | 7.82e-9 | 3.26e-9 | 3.91e-9 | – | 1,024 | 1,024 | 8,192 | |
| Harmonic oscillator: convergence | Runge–Kutta 4 | 0.007813 | 1 | 16 | 4.89e-10 | 2.04e-10 | 2.45e-10 | – | 2,048 | 2,048 | 16,380 | |
| Harmonic oscillator: convergence | Runge–Kutta 4 | 0.003906 | 1 | 16 | 3.05e-11 | 1.27e-11 | 1.53e-11 | – | 4,096 | 4,096 | 32,770 | |
| Harmonic oscillator: convergence | Runge–Kutta 4 | 0.001953 | 1 | 16 | 1.91e-12 | 7.95e-13 | 9.56e-13 | 4 | 8,192 | 8,192 | 65,540 | observed order: fitted 4.000; per halving 4.000, 4.000, 4.000, 4.000, 4.000 |
| Harmonic oscillator: convergence | Dormand–Prince 5(4), error control off (1 step per global step) | 0.125 | 1 | 16 | 1.36e-7 | 5.59e-8 | 6.80e-8 | – | 128 | 128 | 1,792 | |
| Harmonic oscillator: convergence | Dormand–Prince 5(4), error control off (1 step per global step) | 0.0625 | 1 | 16 | 4.17e-9 | 1.74e-9 | 2.09e-9 | – | 256 | 256 | 3,584 | |
| Harmonic oscillator: convergence | Dormand–Prince 5(4), error control off (1 step per global step) | 0.03125 | 1 | 16 | 1.30e-10 | 5.43e-11 | 6.52e-11 | – | 512 | 512 | 7,168 | |
| Harmonic oscillator: convergence | Dormand–Prince 5(4), error control off (1 step per global step) | 0.01563 | 1 | 16 | 4.07e-12 | 1.70e-12 | 2.04e-12 | – | 1,024 | 1,024 | 14,340 | |
| Harmonic oscillator: convergence | Dormand–Prince 5(4), error control off (1 step per global step) | 0.007813 | 1 | 16 | 1.25e-13 | 5.22e-14 | 6.28e-14 | 5.009 | 2,048 | 2,048 | 28,670 | observed order: fitted 5.009; per halving 5.026, 4.999, 5.000, 5.021 |
| Harmonic oscillator: convergence | Rodas4, error control off (1 step per global step) | 0.25 | 1 | 16 | 4.47e-5 | 1.86e-5 | 2.24e-5 | – | 64 | 64 | 768 | |
| Harmonic oscillator: convergence | Rodas4, error control off (1 step per global step) | 0.125 | 1 | 16 | 2.79e-6 | 1.16e-6 | 1.40e-6 | – | 128 | 128 | 1,536 | |
| Harmonic oscillator: convergence | Rodas4, error control off (1 step per global step) | 0.0625 | 1 | 16 | 1.74e-7 | 7.27e-8 | 8.73e-8 | – | 256 | 256 | 3,072 | |
| Harmonic oscillator: convergence | Rodas4, error control off (1 step per global step) | 0.03125 | 1 | 16 | 1.09e-8 | 4.54e-9 | 5.46e-9 | – | 512 | 512 | 6,144 | |
| Harmonic oscillator: convergence | Rodas4, error control off (1 step per global step) | 0.01563 | 1 | 16 | 6.81e-10 | 2.84e-10 | 3.41e-10 | – | 1,024 | 1,024 | 12,290 | |
| Harmonic oscillator: convergence | Rodas4, error control off (1 step per global step) | 0.007813 | 1 | 16 | 4.26e-11 | 1.77e-11 | 2.13e-11 | 4 | 2,048 | 2,048 | 24,580 | observed order: fitted 4.000; per halving 4.002, 4.001, 4.000, 4.000, 4.000 |
| Harmonic oscillator: tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.001) | 1 | 1 | 16 | 5.65e-4 | 2.56e-4 | 2.84e-4 | – | 16 | 36 | 466 | 36 steps, 0 rejected, 233 evaluations of the model; error 0.28 times the tolerance |
| Harmonic oscillator: tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.0001) | 1 | 1 | 16 | 8.83e-5 | 3.84e-5 | 4.44e-5 | – | 16 | 51 | 646 | 51 steps, 0 rejected, 323 evaluations of the model; error 0.44 times the tolerance |
| Harmonic oscillator: tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.00001) | 1 | 1 | 16 | 9.89e-6 | 4.11e-6 | 4.97e-6 | – | 16 | 68 | 874 | 68 steps, 2 rejected, 437 evaluations of the model; error 0.50 times the tolerance |
| Harmonic oscillator: tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.000001) | 1 | 1 | 16 | 1.20e-6 | 5.02e-7 | 6.05e-7 | – | 16 | 96 | 1,258 | 96 steps, 6 rejected, 629 evaluations of the model; error 0.61 times the tolerance |
| Harmonic oscillator: tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-7) | 1 | 1 | 16 | 1.22e-7 | 5.08e-8 | 6.14e-8 | – | 16 | 147 | 1,918 | 147 steps, 10 rejected, 959 evaluations of the model; error 0.61 times the tolerance |
| Harmonic oscillator: tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-8) | 1 | 1 | 16 | 1.26e-8 | 5.31e-9 | 6.33e-9 | – | 16 | 229 | 2,854 | 229 steps, 6 rejected, 1427 evaluations of the model; error 0.63 times the tolerance |
| Harmonic oscillator: tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-9) | 1 | 1 | 16 | 1.29e-9 | 5.52e-10 | 6.51e-10 | – | 16 | 356 | 4,414 | 356 steps, 9 rejected, 2207 evaluations of the model; error 0.65 times the tolerance |
| Harmonic oscillator: tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-10) | 1 | 1 | 16 | 1.31e-10 | 5.63e-11 | 6.59e-11 | – | 16 | 556 | 6,790 | 556 steps, 7 rejected, 3395 evaluations of the model; error 0.66 times the tolerance; error against tolerance: fitted slope 0.956 |
| Harmonic oscillator: tolerance | Stiff, Rodas4 (relative tolerance 0.001) | 1 | 1 | 16 | 0.001332 | 5.63e-4 | 6.69e-4 | – | 16 | 36 | 434 | 36 steps, 0 rejected, 217 evaluations of the model (36 Jacobians, 36 factorisations); error 0.67 times the tolerance |
| Harmonic oscillator: tolerance | Stiff, Rodas4 (relative tolerance 0.0001) | 1 | 1 | 16 | 1.44e-4 | 6.14e-5 | 7.23e-5 | – | 16 | 55 | 692 | 55 steps, 3 rejected, 346 evaluations of the model (55 Jacobians, 58 factorisations); error 0.72 times the tolerance |
| Harmonic oscillator: tolerance | Stiff, Rodas4 (relative tolerance 0.00001) | 1 | 1 | 16 | 1.53e-5 | 6.57e-6 | 7.69e-6 | – | 16 | 99 | 1,250 | 99 steps, 6 rejected, 625 evaluations of the model (99 Jacobians, 105 factorisations); error 0.77 times the tolerance |
| Harmonic oscillator: tolerance | Stiff, Rodas4 (relative tolerance 0.000001) | 1 | 1 | 16 | 1.52e-6 | 6.54e-7 | 7.63e-7 | – | 16 | 162 | 2,026 | 162 steps, 8 rejected, 1013 evaluations of the model (162 Jacobians, 170 factorisations); error 0.76 times the tolerance |
| Harmonic oscillator: tolerance | Stiff, Rodas4 (relative tolerance 1e-7) | 1 | 1 | 16 | 1.52e-7 | 6.54e-8 | 7.62e-8 | – | 16 | 274 | 3,370 | 274 steps, 8 rejected, 1685 evaluations of the model (274 Jacobians, 282 factorisations); error 0.76 times the tolerance |
| Harmonic oscillator: tolerance | Stiff, Rodas4 (relative tolerance 1e-8) | 1 | 1 | 16 | 1.54e-8 | 6.64e-9 | 7.72e-9 | – | 16 | 480 | 5,822 | 480 steps, 6 rejected, 2911 evaluations of the model (480 Jacobians, 486 factorisations); error 0.77 times the tolerance |
| Harmonic oscillator: tolerance | Stiff, Rodas4 (relative tolerance 1e-9) | 1 | 1 | 16 | 1.53e-9 | 6.61e-10 | 7.69e-10 | – | 16 | 839 | 10,130 | 839 steps, 6 rejected, 5065 evaluations of the model (839 Jacobians, 845 factorisations); error 0.77 times the tolerance |
| Harmonic oscillator: tolerance | Stiff, Rodas4 (relative tolerance 1e-10) | 1 | 1 | 16 | 1.53e-10 | 6.60e-11 | 7.67e-11 | – | 16 | 1,489 | 17,910 | 1489 steps, 4 rejected, 8955 evaluations of the model (1489 Jacobians, 1493 factorisations); error 0.77 times the tolerance; error against tolerance: fitted slope 0.993 |
| Harmonic oscillator: tolerance | Stiff, BDF (relative tolerance 0.001) | 1 | 1 | 16 | 2.42e-4 | 8.63e-5 | 1.22e-4 | – | 16 | 126 | 550 | 126 steps, 3 rejected, 275 evaluations of the model (16 Jacobians, 55 factorisations); error 0.12 times the tolerance |
| Harmonic oscillator: tolerance | Stiff, BDF (relative tolerance 0.0001) | 1 | 1 | 16 | 4.47e-5 | 1.75e-5 | 2.24e-5 | – | 16 | 169 | 734 | 169 steps, 6 rejected, 367 evaluations of the model (16 Jacobians, 63 factorisations); error 0.22 times the tolerance |
| Harmonic oscillator: tolerance | Stiff, BDF (relative tolerance 0.00001) | 1 | 1 | 16 | 7.65e-6 | 2.99e-6 | 3.84e-6 | – | 16 | 235 | 1,006 | 235 steps, 8 rejected, 503 evaluations of the model (16 Jacobians, 74 factorisations); error 0.38 times the tolerance |
| Harmonic oscillator: tolerance | Stiff, BDF (relative tolerance 0.000001) | 1 | 1 | 16 | 1.48e-6 | 6.08e-7 | 7.45e-7 | – | 16 | 324 | 1,358 | 324 steps, 7 rejected, 679 evaluations of the model (16 Jacobians, 86 factorisations); error 0.75 times the tolerance |
| Harmonic oscillator: tolerance | Stiff, BDF (relative tolerance 1e-7) | 1 | 1 | 16 | 2.01e-7 | 8.44e-8 | 1.01e-7 | – | 16 | 475 | 1,986 | 475 steps, 13 rejected, 993 evaluations of the model (16 Jacobians, 122 factorisations); error 1.01 times the tolerance |
| Harmonic oscillator: tolerance | Stiff, BDF (relative tolerance 1e-8) | 1 | 1 | 16 | 2.80e-8 | 1.19e-8 | 1.41e-8 | – | 16 | 678 | 2,786 | 678 steps, 10 rejected, 1393 evaluations of the model (16 Jacobians, 152 factorisations); error 1.41 times the tolerance |
| Harmonic oscillator: tolerance | Stiff, BDF (relative tolerance 1e-9) | 1 | 1 | 16 | 3.61e-9 | 1.54e-9 | 1.81e-9 | – | 16 | 995 | 4,042 | 995 steps, 7 rejected, 2021 evaluations of the model (16 Jacobians, 205 factorisations); error 1.81 times the tolerance |
| Harmonic oscillator: tolerance | Stiff, BDF (relative tolerance 1e-10) | 1 | 1 | 16 | 4.52e-10 | 1.94e-10 | 2.27e-10 | – | 16 | 1,485 | 6,006 | 1485 steps, 8 rejected, 3003 evaluations of the model (16 Jacobians, 284 factorisations); error 2.27 times the tolerance; error against tolerance: fitted slope 0.818 |
| Pendulum (θ0 = 2 rad): convergence | explicit Euler | 0.001953 | 1 | 8 | 1.559 | 0.4806 | 0.1923 | – | 4,096 | 4,096 | 8,192 | |
| Pendulum (θ0 = 2 rad): convergence | explicit Euler | 9.77e-4 | 1 | 8 | 0.7546 | 0.2355 | 0.09209 | – | 8,192 | 8,192 | 16,380 | |
| Pendulum (θ0 = 2 rad): convergence | explicit Euler | 4.88e-4 | 1 | 8 | 0.3717 | 0.1165 | 0.04525 | – | 16,380 | 16,380 | 32,770 | |
| Pendulum (θ0 = 2 rad): convergence | explicit Euler | 2.44e-4 | 1 | 8 | 0.1845 | 0.05794 | 0.02239 | – | 32,770 | 32,770 | 65,540 | |
| Pendulum (θ0 = 2 rad): convergence | explicit Euler | 1.22e-4 | 1 | 8 | 0.0919 | 0.02889 | 0.01114 | – | 65,540 | 65,540 | 1.31e5 | |
| Pendulum (θ0 = 2 rad): convergence | explicit Euler | 6.10e-5 | 1 | 8 | 0.04586 | 0.01443 | 0.005552 | 1.021 | 1.31e5 | 1.31e5 | 2.62e5 | observed order: fitted 1.021; per halving 1.063, 1.025, 1.015, 1.008, 1.004 |
| Pendulum (θ0 = 2 rad): convergence | semi-implicit Euler | 0.001953 | 1 | 8 | 0.005168 | 0.002368 | 0.001292 | – | 4,096 | 4,096 | 8,192 | |
| Pendulum (θ0 = 2 rad): convergence | semi-implicit Euler | 9.77e-4 | 1 | 8 | 0.002579 | 0.001183 | 6.45e-4 | – | 8,192 | 8,192 | 16,380 | |
| Pendulum (θ0 = 2 rad): convergence | semi-implicit Euler | 4.88e-4 | 1 | 8 | 0.001288 | 5.91e-4 | 3.22e-4 | – | 16,380 | 16,380 | 32,770 | |
| Pendulum (θ0 = 2 rad): convergence | semi-implicit Euler | 2.44e-4 | 1 | 8 | 6.44e-4 | 2.95e-4 | 1.61e-4 | – | 32,770 | 32,770 | 65,540 | |
| Pendulum (θ0 = 2 rad): convergence | semi-implicit Euler | 1.22e-4 | 1 | 8 | 3.22e-4 | 1.48e-4 | 8.04e-5 | – | 65,540 | 65,540 | 1.31e5 | |
| Pendulum (θ0 = 2 rad): convergence | semi-implicit Euler | 6.10e-5 | 1 | 8 | 1.61e-4 | 7.38e-5 | 4.02e-5 | 1.001 | 1.31e5 | 1.31e5 | 2.62e5 | observed order: fitted 1.001; per halving 1.003, 1.001, 1.001, 1.000, 1.000 |
| Pendulum (θ0 = 2 rad): convergence | Verlet | 0.001953 | 1 | 8 | 4.75e-5 | 1.95e-5 | 6.25e-6 | – | 4,096 | 4,096 | 12,290 | |
| Pendulum (θ0 = 2 rad): convergence | Verlet | 9.77e-4 | 1 | 8 | 1.19e-5 | 4.88e-6 | 1.56e-6 | – | 8,192 | 8,192 | 24,580 | |
| Pendulum (θ0 = 2 rad): convergence | Verlet | 4.88e-4 | 1 | 8 | 2.97e-6 | 1.22e-6 | 3.90e-7 | – | 16,380 | 16,380 | 49,150 | |
| Pendulum (θ0 = 2 rad): convergence | Verlet | 2.44e-4 | 1 | 8 | 7.42e-7 | 3.05e-7 | 9.76e-8 | – | 32,770 | 32,770 | 98,300 | |
| Pendulum (θ0 = 2 rad): convergence | Verlet | 1.22e-4 | 1 | 8 | 1.85e-7 | 7.62e-8 | 2.44e-8 | – | 65,540 | 65,540 | 1.97e5 | |
| Pendulum (θ0 = 2 rad): convergence | Verlet | 6.10e-5 | 1 | 8 | 4.64e-8 | 1.90e-8 | 6.10e-9 | 2 | 1.31e5 | 1.31e5 | 3.93e5 | observed order: fitted 2.000; per halving 2.000, 2.000, 2.000, 2.000, 2.000 |
| Pendulum (θ0 = 2 rad): convergence | Runge–Kutta 4 | 0.003906 | 1 | 8 | 5.11e-9 | 2.15e-9 | 6.93e-10 | – | 2,048 | 2,048 | 16,380 | |
| Pendulum (θ0 = 2 rad): convergence | Runge–Kutta 4 | 0.001953 | 1 | 8 | 3.48e-10 | 1.43e-10 | 4.67e-11 | – | 4,096 | 4,096 | 32,770 | |
| Pendulum (θ0 = 2 rad): convergence | Runge–Kutta 4 | 9.77e-4 | 1 | 8 | 2.30e-11 | 9.30e-12 | 3.07e-12 | 3.91 | 8,192 | 8,192 | 65,540 | observed order: fitted 3.910; per halving 3.890, 3.931 |
| Pendulum (θ0 = 2 rad): convergence | Dormand–Prince 5(4), error control off (1 step per global step) | 0.01563 | 1 | 8 | 2.38e-8 | 7.50e-9 | 2.86e-9 | – | 512 | 512 | 7,168 | |
| Pendulum (θ0 = 2 rad): convergence | Dormand–Prince 5(4), error control off (1 step per global step) | 0.007813 | 1 | 8 | 7.20e-10 | 2.27e-10 | 8.67e-11 | – | 1,024 | 1,024 | 14,340 | |
| Pendulum (θ0 = 2 rad): convergence | Dormand–Prince 5(4), error control off (1 step per global step) | 0.003906 | 1 | 8 | 2.22e-11 | 6.97e-12 | 2.67e-12 | 5.033 | 2,048 | 2,048 | 28,670 | observed order: fitted 5.033; per halving 5.045, 5.022 |
| Pendulum (θ0 = 2 rad): convergence | Rodas4, error control off (1 step per global step) | 0.0625 | 1 | 8 | 7.15e-5 | 2.23e-5 | 8.63e-6 | – | 128 | 128 | 1,536 | |
| Pendulum (θ0 = 2 rad): convergence | Rodas4, error control off (1 step per global step) | 0.03125 | 1 | 8 | 2.17e-6 | 6.85e-7 | 2.65e-7 | – | 256 | 256 | 3,072 | |
| Pendulum (θ0 = 2 rad): convergence | Rodas4, error control off (1 step per global step) | 0.01563 | 1 | 8 | 6.90e-8 | 2.20e-8 | 8.64e-9 | – | 512 | 512 | 6,144 | |
| Pendulum (θ0 = 2 rad): convergence | Rodas4, error control off (1 step per global step) | 0.007813 | 1 | 8 | 2.23e-9 | 7.26e-10 | 3.01e-10 | – | 1,024 | 1,024 | 12,290 | |
| Pendulum (θ0 = 2 rad): convergence | Rodas4, error control off (1 step per global step) | 0.003906 | 1 | 8 | 7.44e-11 | 2.53e-11 | 1.15e-11 | 4.88 | 2,048 | 2,048 | 24,580 | observed order: fitted 4.880; per halving 5.027, 4.936, 4.844, 4.703 |
| Pendulum (θ0 = 2 rad): tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.001) | 0.5 | 1 | 8 | 0.1819 | 0.06354 | 0.01893 | – | 16 | 36 | 502 | 36 steps, 3 rejected, 251 evaluations of the model; error 18.93 times the tolerance |
| Pendulum (θ0 = 2 rad): tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.0001) | 0.5 | 1 | 8 | 0.01083 | 0.003851 | 0.001147 | – | 16 | 52 | 730 | 52 steps, 6 rejected, 365 evaluations of the model; error 11.47 times the tolerance |
| Pendulum (θ0 = 2 rad): tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.00001) | 0.5 | 1 | 8 | 5.73e-4 | 2.04e-4 | 6.09e-5 | – | 16 | 77 | 1,090 | 77 steps, 11 rejected, 545 evaluations of the model; error 6.09 times the tolerance |
| Pendulum (θ0 = 2 rad): tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.000001) | 0.5 | 1 | 8 | 4.92e-5 | 1.71e-5 | 5.12e-6 | – | 16 | 116 | 1,606 | 116 steps, 15 rejected, 803 evaluations of the model; error 5.12 times the tolerance |
| Pendulum (θ0 = 2 rad): tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-7) | 0.5 | 1 | 8 | 4.85e-6 | 1.67e-6 | 5.02e-7 | – | 16 | 176 | 2,434 | 176 steps, 24 rejected, 1217 evaluations of the model; error 5.02 times the tolerance |
| Pendulum (θ0 = 2 rad): tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-8) | 0.5 | 1 | 8 | 5.16e-7 | 1.77e-7 | 5.31e-8 | – | 16 | 278 | 3,562 | 278 steps, 16 rejected, 1781 evaluations of the model; error 5.31 times the tolerance |
| Pendulum (θ0 = 2 rad): tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-9) | 0.5 | 1 | 8 | 5.22e-8 | 1.78e-8 | 5.35e-9 | – | 16 | 426 | 5,302 | 426 steps, 13 rejected, 2651 evaluations of the model; error 5.35 times the tolerance |
| Pendulum (θ0 = 2 rad): tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-10) | 0.5 | 1 | 8 | 5.17e-9 | 1.76e-9 | 5.27e-10 | – | 16 | 670 | 8,182 | 670 steps, 9 rejected, 4091 evaluations of the model; error 5.27 times the tolerance; error against tolerance: fitted slope 1.068 |
| Pendulum (θ0 = 2 rad): tolerance | Stiff, Rodas4 (relative tolerance 0.001) | 0.5 | 1 | 8 | 7.21e-4 | 2.53e-4 | 7.49e-5 | – | 16 | 72 | 1,046 | 72 steps, 18 rejected, 523 evaluations of the model (72 Jacobians, 90 factorisations); error 0.07 times the tolerance |
| Pendulum (θ0 = 2 rad): tolerance | Stiff, Rodas4 (relative tolerance 0.0001) | 0.5 | 1 | 8 | 2.52e-5 | 7.71e-6 | 2.42e-6 | – | 16 | 117 | 1,576 | 117 steps, 17 rejected, 788 evaluations of the model (117 Jacobians, 134 factorisations); error 0.02 times the tolerance |
| Pendulum (θ0 = 2 rad): tolerance | Stiff, Rodas4 (relative tolerance 0.00001) | 0.5 | 1 | 8 | 2.08e-6 | 6.46e-7 | 2.29e-7 | – | 16 | 199 | 2,550 | 199 steps, 16 rejected, 1275 evaluations of the model (199 Jacobians, 215 factorisations); error 0.02 times the tolerance |
| Pendulum (θ0 = 2 rad): tolerance | Stiff, Rodas4 (relative tolerance 0.000001) | 0.5 | 1 | 8 | 2.24e-7 | 6.94e-8 | 2.51e-8 | – | 16 | 339 | 4,240 | 339 steps, 17 rejected, 2120 evaluations of the model (339 Jacobians, 356 factorisations); error 0.03 times the tolerance |
| Pendulum (θ0 = 2 rad): tolerance | Stiff, Rodas4 (relative tolerance 1e-7) | 0.5 | 1 | 8 | 1.67e-8 | 5.23e-9 | 2.02e-9 | – | 16 | 593 | 7,228 | 593 steps, 11 rejected, 3614 evaluations of the model (593 Jacobians, 604 factorisations); error 0.02 times the tolerance |
| Pendulum (θ0 = 2 rad): tolerance | Stiff, Rodas4 (relative tolerance 1e-8) | 0.5 | 1 | 8 | 9.75e-10 | 2.97e-10 | 1.29e-10 | – | 16 | 1,043 | 12,560 | 1043 steps, 4 rejected, 6279 evaluations of the model (1043 Jacobians, 1047 factorisations); error 0.01 times the tolerance |
| Pendulum (θ0 = 2 rad): tolerance | Stiff, Rodas4 (relative tolerance 1e-9) | 0.5 | 1 | 8 | 3.16e-11 | 1.48e-11 | 7.08e-12 | – | 16 | 1,842 | 22,140 | 1842 steps, 3 rejected, 11068 evaluations of the model (1842 Jacobians, 1845 factorisations); error 0.01 times the tolerance |
| Pendulum (θ0 = 2 rad): tolerance | Stiff, Rodas4 (relative tolerance 1e-10) | 0.5 | 1 | 8 | 4.96e-12 | 2.35e-12 | 9.10e-13 | – | 16 | 3,265 | 39,210 | 3265 steps, 3 rejected, 19606 evaluations of the model (3265 Jacobians, 3268 factorisations); error 0.01 times the tolerance; error against tolerance: fitted slope 1.118 |
| Pendulum (θ0 = 2 rad): tolerance | Stiff, BDF (relative tolerance 0.001) | 0.5 | 1 | 8 | 0.009279 | 0.002724 | 8.80e-4 | – | 16 | 247 | 1,128 | 247 steps, 22 rejected, 564 evaluations of the model (16 Jacobians, 94 factorisations); error 0.88 times the tolerance |
| Pendulum (θ0 = 2 rad): tolerance | Stiff, BDF (relative tolerance 0.0001) | 0.5 | 1 | 8 | 0.002536 | 8.17e-4 | 2.45e-4 | – | 16 | 332 | 1,488 | 332 steps, 21 rejected, 744 evaluations of the model (16 Jacobians, 102 factorisations); error 2.45 times the tolerance |
| Pendulum (θ0 = 2 rad): tolerance | Stiff, BDF (relative tolerance 0.00001) | 0.5 | 1 | 8 | 2.90e-4 | 9.73e-5 | 2.92e-5 | – | 16 | 467 | 2,080 | 467 steps, 18 rejected, 1040 evaluations of the model (16 Jacobians, 126 factorisations); error 2.92 times the tolerance |
| Pendulum (θ0 = 2 rad): tolerance | Stiff, BDF (relative tolerance 0.000001) | 0.5 | 1 | 8 | 3.63e-5 | 1.23e-5 | 3.71e-6 | – | 16 | 675 | 2,952 | 675 steps, 14 rejected, 1476 evaluations of the model (16 Jacobians, 151 factorisations); error 3.71 times the tolerance |
| Pendulum (θ0 = 2 rad): tolerance | Stiff, BDF (relative tolerance 1e-7) | 0.5 | 1 | 8 | 3.57e-6 | 1.19e-6 | 3.61e-7 | – | 16 | 999 | 4,374 | 999 steps, 9 rejected, 2187 evaluations of the model (16 Jacobians, 205 factorisations); error 3.61 times the tolerance |
| Pendulum (θ0 = 2 rad): tolerance | Stiff, BDF (relative tolerance 1e-8) | 0.5 | 1 | 8 | 3.66e-7 | 1.23e-7 | 3.69e-8 | – | 16 | 1,496 | 6,546 | 1496 steps, 5 rejected, 3273 evaluations of the model (17 Jacobians, 289 factorisations); error 3.69 times the tolerance |
| Pendulum (θ0 = 2 rad): tolerance | Stiff, BDF (relative tolerance 1e-9) | 0.5 | 1 | 8 | 5.06e-8 | 1.70e-8 | 5.13e-9 | – | 16 | 2,236 | 9,178 | 2236 steps, 9 rejected, 4589 evaluations of the model (16 Jacobians, 415 factorisations); error 5.13 times the tolerance |
| Pendulum (θ0 = 2 rad): tolerance | Stiff, BDF (relative tolerance 1e-10) | 0.5 | 1 | 8 | 6.02e-9 | 2.02e-9 | 6.12e-10 | – | 16 | 3,371 | 13,580 | 3371 steps, 10 rejected, 6788 evaluations of the model (17 Jacobians, 602 factorisations); error 6.12 times the tolerance; error against tolerance: fitted slope 0.907 |
Prothero–Robinson
dy/dt = λ (y - sin t) + cos t from y = 0, whose solution is sin t: Rodas4 at fixed steps is fourth order when the problem is not stiff (λ = -1), and when it is (λ = -1e6, -1e4) its error is proportional to h / |λ|, first order in h but divided by the stiffness; and the steps Stiff and Adaptive take at the same tolerance on the stiff case.
Directory benchmarks/verification/protheroRobinson/ · models stiff.kjt, moderate.kjt, control.kjt
- Konjugate, Rodas4 at fixed steps, λ = -1000000
- Konjugate, Rodas4 at fixed steps, λ = -10000
- Konjugate, Rodas4 at fixed steps, λ = -1
- Fourth order (slope 4)
Data table
| Step h (s) | Konjugate, Rodas4 at fixed steps, λ = -1000000 | Konjugate, Rodas4 at fixed steps, λ = -10000 | Konjugate, Rodas4 at fixed steps, λ = -1 | Fourth order (slope 4) |
|---|---|---|---|---|
| 0.5 | 1.46e-8 | 1.45e-6 | 2.11e-5 | 2.11e-5 |
| 0.25 | 4.42e-9 | 4.40e-7 | 1.21e-6 | 1.32e-6 |
| 0.125 | 1.66e-9 | 1.64e-7 | 7.19e-8 | 8.24e-8 |
| 0.0625 | 7.49e-10 | 7.33e-8 | 4.37e-9 | 5.15e-9 |
| 0.03125 | 3.68e-10 | 3.51e-8 | 2.69e-10 | 3.22e-10 |
| 0.01563 | 1.83e-10 | 1.66e-8 | 1.67e-11 | 2.01e-11 |
Checks
| Check | What it measures | Value | Threshold | Result |
|---|---|---|---|---|
orderStiff | Prothero–Robinson, λ = -1000000, Rodas4 at fixed steps: observed order, least squares over 6 steps | 1.242 | 0.9 to 1.5 | ✓ Pass |
errorStiff | Prothero–Robinson, λ = -1000000, Rodas4 at fixed steps: the largest error relative to range, at the coarsest step | 1.46e-8 | ≤ 3.00e-8 | ✓ Pass |
orderModerate | Prothero–Robinson, λ = -10000, Rodas4 at fixed steps: observed order, least squares over 6 steps | 1.268 | 0.9 to 1.5 | ✓ Pass |
errorModerate | Prothero–Robinson, λ = -10000, Rodas4 at fixed steps: the largest error relative to range, at the coarsest step | 1.45e-6 | ≤ 3.00e-6 | ✓ Pass |
orderControl | Prothero–Robinson, λ = -1, Rodas4 at fixed steps: observed order, least squares over 6 steps | 4.051 | 3.9 to 4.3 | ✓ Pass |
errorControl | Prothero–Robinson, λ = -1, Rodas4 at fixed steps: the largest error relative to range, at the coarsest step | 2.11e-5 | ≤ 3.00e-5 | ✓ Pass |
finestOrderControl | Prothero–Robinson, λ = -1, Rodas4 at fixed steps with the exact Jacobian: observed order over the finest halving | 4.011 | 3.9 to 4.1 | ✓ Pass |
finestOrderControlFiniteDifference | Prothero–Robinson, λ = -1, Rodas4 at fixed steps with finite differences: observed order over the finest halving, the Jacobian's error showing | 4.735 | 4.3 to 5.2 | ✓ Pass |
stiffnessScaling | Prothero–Robinson, Rodas4 at fixed steps: |log10(error at λ = -1e4 / error at λ = -1e6) - 2|, largest over every step (0: the error is exactly proportional to 1 / |λ|) | 0.04185 | ≤ 0.1 | ✓ Pass |
stiffToleranceError | Prothero–Robinson, λ = -1000000, Stiff at relative tolerance 0.000001: largest error against sin t | 2.99e-8 | ≤ 1.00e-6 | ✓ Pass |
explicitStepRatio | Prothero–Robinson, λ = -1000000: steps Adaptive takes for each step Stiff takes, at the same tolerance | 37,800 | ≥ 10,000 | ✓ Pass |
- λ = -1, Rodas4 at fixed steps: with the exact Jacobian its order per halving is 4.12, 4.07, 4.04, 4.02, 4.01; with finite differences 4.12, 4.07, 4.05, 4.09, 4.74, the finest step's error (9.6e-12) the Jacobian's as much as the method's.
- Rodas4 at fixed steps on the stiff problem: its error is proportional to h / |λ| (λ = -1e4 against -1e6: ratios 99.9, 99.7, 99.1, 97.7, 95.4, 90.8), first order in h but divided by the stiffness: at most 1.5e-8 of the range at λ = -1e6, below the non-stiff control's at the coarser steps and above it once the control's fourth order has caught up; the same with the exact Jacobian.
- λ = -1000000, 1 s at the same tolerance: Adaptive took 302,419 steps, Stiff 8.
All 26 result rows
| Case | Method | h (s) | Substeps | Horizon (s) | Max abs error | RMSE | Relative error | Observed order | Steps | Substeps run | Evaluations | Note |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Prothero–Robinson, λ = -1000000: convergence | Rodas4, error control off (1 step per global step) | 0.5 | 1 | 4 | 2.55e-8 | 1.86e-8 | 1.46e-8 | – | 8 | 8 | 48 | |
| Prothero–Robinson, λ = -1000000: convergence | Rodas4, error control off (1 step per global step) | 0.25 | 1 | 4 | 7.75e-9 | 5.61e-9 | 4.42e-9 | – | 16 | 16 | 96 | |
| Prothero–Robinson, λ = -1000000: convergence | Rodas4, error control off (1 step per global step) | 0.125 | 1 | 4 | 2.91e-9 | 2.07e-9 | 1.66e-9 | – | 32 | 32 | 192 | |
| Prothero–Robinson, λ = -1000000: convergence | Rodas4, error control off (1 step per global step) | 0.0625 | 1 | 4 | 1.31e-9 | 9.08e-10 | 7.49e-10 | – | 64 | 64 | 384 | |
| Prothero–Robinson, λ = -1000000: convergence | Rodas4, error control off (1 step per global step) | 0.03125 | 1 | 4 | 6.46e-10 | 4.32e-10 | 3.68e-10 | – | 128 | 128 | 768 | |
| Prothero–Robinson, λ = -1000000: convergence | Rodas4, error control off (1 step per global step) | 0.01563 | 1 | 4 | 3.21e-10 | 2.12e-10 | 1.83e-10 | 1.242 | 256 | 256 | 1,536 | observed order: fitted 1.242; per halving 1.721, 1.412, 1.146, 1.026, 1.010 |
| Prothero–Robinson, λ = -10000: convergence | Rodas4, error control off (1 step per global step) | 0.5 | 1 | 4 | 2.55e-6 | 1.86e-6 | 1.45e-6 | – | 8 | 8 | 48 | |
| Prothero–Robinson, λ = -10000: convergence | Rodas4, error control off (1 step per global step) | 0.25 | 1 | 4 | 7.72e-7 | 5.59e-7 | 4.40e-7 | – | 16 | 16 | 96 | |
| Prothero–Robinson, λ = -10000: convergence | Rodas4, error control off (1 step per global step) | 0.125 | 1 | 4 | 2.88e-7 | 2.05e-7 | 1.64e-7 | – | 32 | 32 | 192 | |
| Prothero–Robinson, λ = -10000: convergence | Rodas4, error control off (1 step per global step) | 0.0625 | 1 | 4 | 1.29e-7 | 8.88e-8 | 7.33e-8 | – | 64 | 64 | 384 | |
| Prothero–Robinson, λ = -10000: convergence | Rodas4, error control off (1 step per global step) | 0.03125 | 1 | 4 | 6.16e-8 | 4.12e-8 | 3.51e-8 | – | 128 | 128 | 768 | |
| Prothero–Robinson, λ = -10000: convergence | Rodas4, error control off (1 step per global step) | 0.01563 | 1 | 4 | 2.91e-8 | 1.92e-8 | 1.66e-8 | 1.268 | 256 | 256 | 1,536 | observed order: fitted 1.268; per halving 1.724, 1.421, 1.166, 1.061, 1.081 |
| Prothero–Robinson, λ = -1: convergence | Rodas4, error control off (1 step per global step) | 0.5 | 1 | 4 | 3.70e-5 | 2.35e-5 | 2.11e-5 | – | 8 | 8 | 48 | |
| Prothero–Robinson, λ = -1: convergence | Rodas4, error control off (1 step per global step) | 0.25 | 1 | 4 | 2.12e-6 | 1.34e-6 | 1.21e-6 | – | 16 | 16 | 96 | |
| Prothero–Robinson, λ = -1: convergence | Rodas4, error control off (1 step per global step) | 0.125 | 1 | 4 | 1.26e-7 | 7.97e-8 | 7.19e-8 | – | 32 | 32 | 192 | |
| Prothero–Robinson, λ = -1: convergence | Rodas4, error control off (1 step per global step) | 0.0625 | 1 | 4 | 7.67e-9 | 4.85e-9 | 4.37e-9 | – | 64 | 64 | 384 | |
| Prothero–Robinson, λ = -1: convergence | Rodas4, error control off (1 step per global step) | 0.03125 | 1 | 4 | 4.72e-10 | 2.99e-10 | 2.69e-10 | – | 128 | 128 | 768 | |
| Prothero–Robinson, λ = -1: convergence | Rodas4, error control off (1 step per global step) | 0.01563 | 1 | 4 | 2.93e-11 | 1.85e-11 | 1.67e-11 | 4.051 | 256 | 256 | 1,536 | observed order: fitted 4.051; per halving 4.124, 4.073, 4.040, 4.021, 4.011 |
| Prothero–Robinson, λ = -1: convergence, finite-difference Jacobian | Rodas4, error control off (1 step per global step, finite-difference Jacobian) | 0.5 | 1 | 4 | 3.70e-5 | 2.35e-5 | 2.11e-5 | – | 8 | 8 | 64 | |
| Prothero–Robinson, λ = -1: convergence, finite-difference Jacobian | Rodas4, error control off (1 step per global step, finite-difference Jacobian) | 0.25 | 1 | 4 | 2.12e-6 | 1.34e-6 | 1.21e-6 | – | 16 | 16 | 128 | |
| Prothero–Robinson, λ = -1: convergence, finite-difference Jacobian | Rodas4, error control off (1 step per global step, finite-difference Jacobian) | 0.125 | 1 | 4 | 1.26e-7 | 7.95e-8 | 7.18e-8 | – | 32 | 32 | 256 | |
| Prothero–Robinson, λ = -1: convergence, finite-difference Jacobian | Rodas4, error control off (1 step per global step, finite-difference Jacobian) | 0.0625 | 1 | 4 | 7.62e-9 | 4.80e-9 | 4.35e-9 | – | 64 | 64 | 512 | |
| Prothero–Robinson, λ = -1: convergence, finite-difference Jacobian | Rodas4, error control off (1 step per global step, finite-difference Jacobian) | 0.03125 | 1 | 4 | 4.48e-10 | 2.81e-10 | 2.55e-10 | – | 128 | 128 | 1,024 | |
| Prothero–Robinson, λ = -1: convergence, finite-difference Jacobian | Rodas4, error control off (1 step per global step, finite-difference Jacobian) | 0.01563 | 1 | 4 | 1.68e-11 | 1.12e-11 | 9.59e-12 | 4.172 | 256 | 256 | 2,048 | observed order: fitted 4.172; per halving 4.124, 4.074, 4.047, 4.088, 4.735 |
| Prothero–Robinson, λ = -1000000: Stiff, Rodas4 (relative tolerance 0.000001) | Stiff, Rodas4 (relative tolerance 0.000001) | 0.5 | 1 | 1 | 2.51e-8 | 1.46e-8 | 2.99e-8 | – | 2 | 8 | 49 | 8 steps, 0 rejected, 49 evaluations of the model |
| Prothero–Robinson, λ = -1000000: Adaptive, Dormand–Prince 5(4) (relative tolerance 0.000001) | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.000001) | 0.5 | 1 | 1 | 3.71e-7 | 2.25e-7 | 4.41e-7 | – | 2 | 3.02e5 | 1.81e6 | 302419 steps, 5 rejected, 1814547 evaluations of the model |
Graph coupling: one node against three
Three damped masses joined by springs, written as one node and as three nodes coupled through the snapshot: the coupling error against the global step and the node substeps, Runge–Kutta 4, under which the three nodes are the one node and the error is fourth order, Dormand–Prince 5(4), fifth order at fixed steps and, under Adaptive, the one-node model's steps, and Rodas4, the one node to the bit and fourth order at fixed steps and, under Stiff, the one node within its tolerance.
Directory benchmarks/coupling/graphSplit/ · models monolithic.kjt, split.kjt
- Split, three nodes, H with n substeps
- One node at the same step H/n
- Coupling error (split against one node)
Data table
| Split, three nodes, H with n substeps: Substeps per global step (n) | Relative error | One node at the same step H/n: Substeps per global step (n) | Relative error | Coupling error (split against one node): Substeps per global step (n) | Relative error |
|---|---|---|---|---|---|
| 1 | 0.5223 | 1 | 0.5223 | 2 | 0.02609 |
| 2 | 0.2035 | 2 | 0.1859 | 4 | 0.04004 |
| 4 | 0.1008 | 4 | 0.07937 | 8 | 0.04722 |
| 8 | 0.06223 | 8 | 0.03679 | 16 | 0.05085 |
| 16 | 0.05729 | 16 | 0.01772 | – | – |
- 2 substeps
- 4 substeps
- 16 substeps
- First order (slope 1)
Data table
| Global step H (s) | 2 substeps | 4 substeps | 16 substeps | First order (slope 1) |
|---|---|---|---|---|
| 0.0625 | 0.02609 | 0.04004 | 0.05085 | 0.04004 |
| 0.03125 | 0.01333 | 0.02021 | 0.02554 | 0.02002 |
| 0.01563 | 0.006744 | 0.01019 | 0.01281 | 0.01001 |
| 0.007813 | 0.0034 | 0.005119 | 0.006416 | 0.005005 |
| 0.003906 | 0.001707 | 0.002565 | 0.003211 | 0.002503 |
- Explicit Euler, one substep
- Explicit Euler, 16 substeps
- Runge–Kutta 4, the whole model
- Fourth order (slope 4)
- Dormand–Prince 5(4), error control off
- Fifth order (slope 5)
- Rodas4, error control off
Data table
| Explicit Euler, one substep: Global step H (s) | Relative error | Explicit Euler, 16 substeps: Global step H (s) | Relative error | Runge–Kutta 4, the whole model: Global step H (s) | Relative error | Fourth order (slope 4): Global step H (s) | Relative error | Dormand–Prince 5(4), error control off: Global step H (s) | Relative error | Fifth order (slope 5): Global step H (s) | Relative error | Rodas4, error control off: Global step H (s) | Relative error |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0.0625 | 0.5223 | 0.0625 | 0.05729 | 0.0625 | 1.91e-5 | 0.0625 | 1.91e-5 | 0.125 | 3.60e-6 | 0.125 | 3.60e-6 | 0.125 | 2.65e-5 |
| 0.03125 | 0.1859 | 0.03125 | 0.02858 | 0.03125 | 1.19e-6 | 0.03125 | 1.19e-6 | 0.0625 | 1.07e-7 | 0.0625 | 1.13e-7 | 0.0625 | 1.65e-6 |
| 0.01563 | 0.07937 | 0.01563 | 0.01427 | 0.01563 | 7.40e-8 | 0.01563 | 7.46e-8 | 0.03125 | 3.26e-9 | 0.03125 | 3.52e-9 | 0.03125 | 1.03e-7 |
| 0.007813 | 0.03679 | 0.007813 | 0.00713 | 0.007813 | 4.61e-9 | 0.007813 | 4.66e-9 | 0.01563 | 1.00e-10 | 0.01563 | 1.10e-10 | 0.01563 | 6.42e-9 |
| 0.003906 | 0.01772 | 0.003906 | 0.003564 | 0.003906 | 2.88e-10 | 0.003906 | 2.92e-10 | 0.007813 | 3.14e-12 | 0.007813 | 3.44e-12 | 0.007813 | 4.01e-10 |
Checks
| Check | What it measures | Value | Threshold | Result |
|---|---|---|---|---|
couplingErrorOneSubstep | With one substep, the three-node model against the one-node model at the same step: largest difference (they take the same explicit Euler steps) | 0 | ≤ 1.00e-12 | ✓ Pass |
couplingErrorOrder | Observed order of the coupling error in the global step H, at 4 substeps (fitted over all H) | 0.991 | 0.9 to 1.1 | ✓ Pass |
substepsFloorRatio | At H = 2^-4 s and 16 substeps, the split model's error over its coupling error: near 1 once substeps have removed the nodes' own error | 1.127 | 1 to 1.5 | ✓ Pass |
couplingFactorPerSubstepDoubling | Coupling error at the largest substep count over the next smaller one, same H: near 1 (substeps do not remove it) | 1.077 | 0.9 to 1.25 | ✓ Pass |
semiImplicitSplitDifference | Semi-implicit, one substep: split against one node, relative to range (the snapshot makes the coupling explicit) | 0.05996 | ≤ 0.075 | ✓ Pass |
rungeKutta4SplitDifference | Runge–Kutta 4: the three-node model against the one-node model at the same step, relative to range, largest over every H (the same method on the same equations) | 0 | ≤ 1.00e-12 | ✓ Pass |
rungeKutta4ErrorOrder | Runge–Kutta 4: observed order of the three-node model's error against the exact solution in H (fitted over all H) | 4.005 | 3.9 to 4.1 | ✓ Pass |
rungeKutta4FinestErrorOrder | Runge–Kutta 4: observed order of the three-node model's error from the finest halving of H | 4.002 | 3.9 to 4.1 | ✓ Pass |
dormandPrince54ErrorOrder | Dormand–Prince 5(4), error control off: observed order of the three-node model's error against the exact solution in H (fitted over all H) | 5.032 | 4.9 to 5.1 | ✓ Pass |
dormandPrince54FinestErrorOrder | Dormand–Prince 5(4), error control off: observed order of the three-node model's error from the finest halving of H | 4.999 | 4.9 to 5.1 | ✓ Pass |
adaptiveSplitDifference | Adaptive: the three-node model against the one-node model at the same tolerance, relative to range, largest over every tolerance (the error norm summed node by node) | 4.22e-15 | ≤ 1.00e-12 | ✓ Pass |
rodas4SplitDifference | Rodas4, error control off: the three-node model against the one-node model at the same step, relative to range, largest over every H | 0 | ≤ 1.00e-12 | ✓ Pass |
rodas4ErrorOrder | Rodas4, error control off: observed order of the three-node model's error against the exact solution in H (fitted over all H) | 4.003 | 3.9 to 4.1 | ✓ Pass |
rodas4FinestErrorOrder | Rodas4, error control off: observed order of the three-node model's error from the finest halving of H | 4.001 | 3.9 to 4.1 | ✓ Pass |
stiffSplitDifference | Stiff: the three-node model against the one-node model at the same tolerance, relative to range, over the relative tolerance, largest over every tolerance | 4.59e-7 | ≤ 1 | ✓ Pass |
bdfSplitDifference | BDF: the three-node model against the one-node model at the same tolerance, relative to range, over the relative tolerance, largest over every tolerance | 0.008131 | ≤ 0.1 | ✓ Pass |
- Under Runge–Kutta 4 every node reads every node's stage values, so the three-node model gives the one-node model's numbers: the coupling error substeps cannot remove is gone, and the error falls sixteen-fold per halving of the global step.
- Dormand–Prince 5(4) does the same at fifth order, thirty-two-fold per halving; under Adaptive the three-node model chooses the one-node model's steps, so the two agree to rounding at every tolerance.
- Rodas4 at fixed steps gives the three-node model the one-node model's bits, at fourth order. Under Stiff the two sum their error norm in different groups, so they may take different, equally valid steps: they agree within a small multiple of the tolerance, not to rounding.
All 54 result rows
| Case | Method | h (s) | Substeps | Horizon (s) | Max abs error | RMSE | Relative error | Observed order | Steps | Substeps run | Evaluations | Note |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| split, three nodes | explicit Euler | 0.0625 | 1 | 16 | 0.404 | 0.1031 | 0.5223 | – | 256 | 768 | 2,560 | coupling error (against one node at h = H/n) 0.00e+0; one node at H/n 5.22e-1 |
| split, three nodes | explicit Euler | 0.0625 | 2 | 16 | 0.1891 | 0.0416 | 0.2035 | – | 256 | 1,536 | 5,120 | coupling error (against one node at h = H/n) 2.61e-2; one node at H/n 1.86e-1 |
| split, three nodes | explicit Euler | 0.0625 | 4 | 16 | 0.09468 | 0.02018 | 0.1008 | – | 256 | 3,072 | 10,240 | coupling error (against one node at h = H/n) 4.00e-2; one node at H/n 7.94e-2 |
| split, three nodes | explicit Euler | 0.0625 | 8 | 16 | 0.05046 | 0.01117 | 0.06223 | – | 256 | 6,144 | 20,480 | coupling error (against one node at h = H/n) 4.72e-2; one node at H/n 3.68e-2 |
| split, three nodes | explicit Euler | 0.0625 | 16 | 16 | 0.03152 | 0.007248 | 0.05729 | – | 256 | 12,290 | 40,960 | coupling error (against one node at h = H/n) 5.09e-2; one node at H/n 1.77e-2 |
| split, three nodes | explicit Euler | 0.03125 | 1 | 16 | 0.1839 | 0.0396 | 0.1859 | – | 512 | 1,536 | 5,120 | coupling error (against one node at h = H/n) 0.00e+0; one node at H/n 1.86e-1 |
| split, three nodes | explicit Euler | 0.03125 | 2 | 16 | 0.08999 | 0.01854 | 0.08517 | – | 512 | 3,072 | 10,240 | coupling error (against one node at h = H/n) 1.33e-2; one node at H/n 7.94e-2 |
| split, three nodes | explicit Euler | 0.03125 | 4 | 16 | 0.046 | 0.00948 | 0.04619 | – | 512 | 6,144 | 20,480 | coupling error (against one node at h = H/n) 2.02e-2; one node at H/n 3.68e-2 |
| split, three nodes | explicit Euler | 0.03125 | 8 | 16 | 0.02471 | 0.005358 | 0.03029 | – | 512 | 12,290 | 40,960 | coupling error (against one node at h = H/n) 2.37e-2; one node at H/n 1.77e-2 |
| split, three nodes | explicit Euler | 0.03125 | 16 | 16 | 0.01539 | 0.003504 | 0.02858 | – | 512 | 24,580 | 81,920 | coupling error (against one node at h = H/n) 2.55e-2; one node at H/n 8.70e-3 |
| split, three nodes | explicit Euler | 0.01563 | 1 | 16 | 0.08779 | 0.01785 | 0.07937 | – | 1,024 | 3,072 | 10,240 | coupling error (against one node at h = H/n) 0.00e+0; one node at H/n 7.94e-2 |
| split, three nodes | explicit Euler | 0.01563 | 2 | 16 | 0.04391 | 0.008804 | 0.03922 | – | 1,024 | 6,144 | 20,480 | coupling error (against one node at h = H/n) 6.74e-3; one node at H/n 3.68e-2 |
| split, three nodes | explicit Euler | 0.01563 | 4 | 16 | 0.02268 | 0.004604 | 0.02213 | – | 1,024 | 12,290 | 40,960 | coupling error (against one node at h = H/n) 1.02e-2; one node at H/n 1.77e-2 |
| split, three nodes | explicit Euler | 0.01563 | 8 | 16 | 0.01223 | 0.002626 | 0.01499 | – | 1,024 | 24,580 | 81,920 | coupling error (against one node at h = H/n) 1.19e-2; one node at H/n 8.70e-3 |
| split, three nodes | explicit Euler | 0.01563 | 16 | 16 | 0.007602 | 0.001724 | 0.01427 | – | 1,024 | 49,150 | 1.64e5 | coupling error (against one node at h = H/n) 1.28e-2; one node at H/n 4.31e-3 |
| split, three nodes | explicit Euler | 0.007813 | 1 | 16 | 0.0429 | 0.008515 | 0.03679 | – | 2,048 | 6,144 | 20,480 | coupling error (against one node at h = H/n) 0.00e+0; one node at H/n 3.68e-2 |
| split, three nodes | explicit Euler | 0.007813 | 2 | 16 | 0.02169 | 0.004296 | 0.01884 | – | 2,048 | 12,290 | 40,960 | coupling error (against one node at h = H/n) 3.40e-3; one node at H/n 1.77e-2 |
| split, three nodes | explicit Euler | 0.007813 | 4 | 16 | 0.01126 | 0.00227 | 0.01083 | – | 2,048 | 24,580 | 81,920 | coupling error (against one node at h = H/n) 5.12e-3; one node at H/n 8.70e-3 |
| split, three nodes | explicit Euler | 0.007813 | 8 | 16 | 0.006082 | 0.0013 | 0.00746 | – | 2,048 | 49,150 | 1.64e5 | coupling error (against one node at h = H/n) 5.98e-3; one node at H/n 4.31e-3 |
| split, three nodes | explicit Euler | 0.007813 | 16 | 16 | 0.003778 | 8.55e-4 | 0.00713 | – | 2,048 | 98,300 | 3.28e5 | coupling error (against one node at h = H/n) 6.42e-3; one node at H/n 2.15e-3 |
| split, three nodes | explicit Euler | 0.003906 | 1 | 16 | 0.02121 | 0.004163 | 0.01772 | – | 4,096 | 12,290 | 40,960 | coupling error (against one node at h = H/n) 0.00e+0; one node at H/n 1.77e-2 |
| split, three nodes | explicit Euler | 0.003906 | 2 | 16 | 0.01078 | 0.002123 | 0.009237 | – | 4,096 | 24,580 | 81,920 | coupling error (against one node at h = H/n) 1.71e-3; one node at H/n 8.70e-3 |
| split, three nodes | explicit Euler | 0.003906 | 4 | 16 | 0.005609 | 0.001127 | 0.005358 | – | 4,096 | 49,150 | 1.64e5 | coupling error (against one node at h = H/n) 2.57e-3; one node at H/n 4.31e-3 |
| split, three nodes | explicit Euler | 0.003906 | 8 | 16 | 0.003033 | 6.47e-4 | 0.00372 | – | 4,096 | 98,300 | 3.28e5 | coupling error (against one node at h = H/n) 3.00e-3; one node at H/n 2.15e-3 |
| split, three nodes | explicit Euler | 0.003906 | 16 | 16 | 0.001883 | 4.26e-4 | 0.003564 | – | 4,096 | 1.97e5 | 6.55e5 | coupling error (against one node at h = H/n) 3.21e-3; one node at H/n 1.07e-3 |
| coupling error order in H | explicit Euler | – | 4 | – | – | – | – | 0.991 | – | – | – | pairwise 0.987, 0.987, 0.994, 0.997 |
| one node | semi-implicit Euler | 0.01563 | 1 | 16 | 0.01477 | 0.004059 | 0.04126 | – | – | – | – | |
| split, three nodes | semi-implicit Euler | 0.01563 | 1 | 16 | 0.02172 | 0.003616 | 0.03035 | – | – | – | – | |
| one node | explicit Euler | 0.01563 | 1 | 16 | 0.08779 | 0.01785 | 0.07937 | – | – | – | – | |
| split, three nodes | Runge–Kutta 4 | 0.0625 | 1 | 16 | 2.23e-5 | 3.96e-6 | 1.91e-5 | – | 256 | 768 | 10,240 | against one node at the same step 0.00e+0 |
| split, three nodes | Runge–Kutta 4 | 0.03125 | 1 | 16 | 1.39e-6 | 2.45e-7 | 1.19e-6 | – | 512 | 1,536 | 20,480 | against one node at the same step 0.00e+0 |
| split, three nodes | Runge–Kutta 4 | 0.01563 | 1 | 16 | 8.62e-8 | 1.52e-8 | 7.40e-8 | – | 1,024 | 3,072 | 40,960 | against one node at the same step 0.00e+0 |
| split, three nodes | Runge–Kutta 4 | 0.007813 | 1 | 16 | 5.37e-9 | 9.49e-10 | 4.61e-9 | – | 2,048 | 6,144 | 81,920 | against one node at the same step 0.00e+0 |
| split, three nodes | Runge–Kutta 4 | 0.003906 | 1 | 16 | 3.35e-10 | 5.92e-11 | 2.88e-10 | – | 4,096 | 12,290 | 1.64e5 | against one node at the same step 0.00e+0 |
| error order in H | Runge–Kutta 4 | – | 1 | – | – | – | – | 4.005 | – | – | – | pairwise 4.007, 4.006, 4.004, 4.002 |
| split, three nodes | Dormand–Prince 5(4), error control off (1 step per global step) | 0.125 | 1 | 16 | 4.23e-6 | 7.28e-7 | 3.60e-6 | – | 128 | 384 | 8,960 | |
| split, three nodes | Dormand–Prince 5(4), error control off (1 step per global step) | 0.0625 | 1 | 16 | 1.20e-7 | 2.12e-8 | 1.07e-7 | – | 256 | 768 | 17,920 | |
| split, three nodes | Dormand–Prince 5(4), error control off (1 step per global step) | 0.03125 | 1 | 16 | 3.64e-9 | 6.44e-10 | 3.26e-9 | – | 512 | 1,536 | 35,840 | |
| split, three nodes | Dormand–Prince 5(4), error control off (1 step per global step) | 0.01563 | 1 | 16 | 1.11e-10 | 1.99e-11 | 1.00e-10 | – | 1,024 | 3,072 | 71,680 | |
| split, three nodes | Dormand–Prince 5(4), error control off (1 step per global step) | 0.007813 | 1 | 16 | 3.44e-12 | 6.17e-13 | 3.14e-12 | – | 2,048 | 6,144 | 1.43e5 | |
| error order in H | Dormand–Prince 5(4), error control off (1 step per global step) | – | 1 | – | – | – | – | 5.032 | – | – | – | pairwise 5.074, 5.037, 5.021, 4.999 |
| split, three nodes | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.000001) | 0.125 | 1 | 16 | 1.67e-7 | 3.04e-8 | 1.62e-7 | – | 128 | 795 | 17,190 | against one node with the same tolerance 1.30e-15; 265 steps (one node 265), 0 rejected |
| split, three nodes | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-8) | 0.125 | 1 | 16 | 2.26e-9 | 4.09e-10 | 2.15e-9 | – | 128 | 1,764 | 36,810 | against one node with the same tolerance 1.60e-15; 588 steps (one node 588), 4 rejected |
| split, three nodes | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-10) | 0.125 | 1 | 16 | 2.61e-11 | 4.77e-12 | 2.53e-11 | – | 128 | 4,101 | 83,610 | against one node with the same tolerance 4.22e-15; 1367 steps (one node 1367), 5 rejected |
| split, three nodes | Rodas4, error control off (1 step per global step) | 0.125 | 1 | 16 | 3.09e-5 | 5.45e-6 | 2.65e-5 | – | 128 | 384 | 7,680 | against one node at the same step 0.00e+0; 128 Jacobians |
| split, three nodes | Rodas4, error control off (1 step per global step) | 0.0625 | 1 | 16 | 1.92e-6 | 3.39e-7 | 1.65e-6 | – | 256 | 768 | 15,360 | against one node at the same step 0.00e+0; 256 Jacobians |
| split, three nodes | Rodas4, error control off (1 step per global step) | 0.03125 | 1 | 16 | 1.20e-7 | 2.11e-8 | 1.03e-7 | – | 512 | 1,536 | 30,720 | against one node at the same step 0.00e+0; 512 Jacobians |
| split, three nodes | Rodas4, error control off (1 step per global step) | 0.01563 | 1 | 16 | 7.48e-9 | 1.32e-9 | 6.42e-9 | – | 1,024 | 3,072 | 61,440 | against one node at the same step 0.00e+0; 1024 Jacobians |
| split, three nodes | Rodas4, error control off (1 step per global step) | 0.007813 | 1 | 16 | 4.67e-10 | 8.25e-11 | 4.01e-10 | – | 2,048 | 6,144 | 1.23e5 | against one node at the same step 0.00e+0; 2048 Jacobians |
| error order in H | Rodas4, error control off (1 step per global step) | – | 1 | – | – | – | – | 4.003 | – | – | – | pairwise 4.006, 4.003, 4.001, 4.001 |
| split, three nodes | Stiff, Rodas4 (relative tolerance 0.000001) | 0.125 | 1 | 16 | 2.56e-7 | 4.33e-8 | 2.13e-7 | – | 128 | 1,413 | 29,070 | against one node with the same tolerance 2.71e-15; 471 steps (one node 471), 16 rejected |
| split, three nodes | Stiff, Rodas4 (relative tolerance 1e-8) | 0.125 | 1 | 16 | 2.55e-9 | 4.31e-10 | 2.13e-9 | – | 128 | 4,173 | 83,570 | against one node with the same tolerance 4.59e-15; 1391 steps (one node 1391), 2 rejected |
| split, three nodes | Stiff, BDF (relative tolerance 0.000001) | 0.125 | 1 | 16 | 1.23e-7 | 2.28e-8 | 1.21e-7 | – | 128 | 2,844 | 20,450 | against one node with the same tolerance 8.13e-9; 948 steps (one node 942), 378 factorisations |
| split, three nodes | Stiff, BDF (relative tolerance 1e-8) | 0.125 | 1 | 16 | 3.24e-9 | 5.91e-10 | 3.01e-9 | – | 128 | 5,706 | 39,670 | against one node with the same tolerance 6.30e-12; 1902 steps (one node 1906), 562 factorisations |
Graph scalability: chains, grids and random networks
Generated thermal graphs from 100 nodes up (to 100,000 under --full), on the serial, thread-pool and partitioned backends, under Euler node by node and Runge–Kutta 4: the same numbers bit for bit on every backend, the engine's work as counted, the method's exact steps to rounding, and the exact solution's error; under --full, wall time, throughput, peak memory, parallel speed-up and the time to load, compile and solve.
Directory benchmarks/scaling/graphScalability/ · models (shared with the problems it studies)
- chain, explicit Euler
- chain, Runge–Kutta 4
- grid, explicit Euler
- grid, Runge–Kutta 4
- random network, explicit Euler
- random network, Runge–Kutta 4
Data table
| chain, explicit Euler: Nodes | Max abs error (K) | chain, Runge–Kutta 4: Nodes | Max abs error (K) | grid, explicit Euler: Nodes | Max abs error (K) | grid, Runge–Kutta 4: Nodes | Max abs error (K) | random network, explicit Euler: Nodes | Max abs error (K) | random network, Runge–Kutta 4: Nodes | Max abs error (K) |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 100 | 0.005594 | 100 | 2.74e-8 | 100 | 0.005396 | 100 | 1.27e-7 | 100 | 0.01013 | 100 | 5.04e-7 |
| 400 | 0.005632 | 400 | 2.76e-8 | 400 | 0.005464 | 400 | 1.32e-7 | – | – | – | – |
Checks
| Check | What it measures | Value | Threshold | Result |
|---|---|---|---|---|
backendBitDifferences | Sampled values that differ, bit for bit, between the serial backend and the thread-pool or partitioned backend, over every graph, size and method | 0 | ≤ 0 | ✓ Pass |
backendWorkDifferences | Runs whose reported work (global steps, node substeps, contributions evaluated) differs from the serial run of the same graph and method | 0 | ≤ 0 | ✓ Pass |
workCountDifferences | Work counts that differ from what the model implies: N substeps a global step; each contribution once a substep under Euler, once a stage under Runge–Kutta 4 | 0 | ≤ 0 | ✓ Pass |
backendNotAsRequested | Runs whose effective backend or worker count is not the one requested (so a parallel backend really ran in parallel) | 0 | ≤ 0 | ✓ Pass |
eulerExactStepsDifference | explicit Euler: largest difference from the method's exact steps (closed form for the chain and grid, stepped independently for the random network), relative to the largest starting temperature | 1.74e-14 | ≤ 1.00e-12 | ✓ Pass |
eulerExactSolutionError | explicit Euler: largest error against the exact solution, K (chain and grid at every size, the random network by the matrix exponential at 100 nodes), h = 0.02 s to t = 1 s | 0.01013 | ≤ 0.0127 | ✓ Pass |
rungeKutta4ExactStepsDifference | Runge–Kutta 4: largest difference from the method's exact steps (closed form for the chain and grid, stepped independently for the random network), relative to the largest starting temperature | 1.75e-14 | ≤ 1.00e-12 | ✓ Pass |
rungeKutta4ExactSolutionError | Runge–Kutta 4: largest error against the exact solution, K (chain and grid at every size, the random network by the matrix exponential at 100 nodes), h = 0.02 s to t = 1 s | 5.04e-7 | ≤ 6.30e-7 | ✓ Pass |
randomHeatConservation | Random network: largest drift of the total heat Σ C_i T_i from Konjugate's own states, relative to Σ C_i |T_i(0)|, over every size and method | 3.76e-17 | ≤ 1.00e-12 | ✓ Pass |
- Every backend gives the same bits because every backend reads the same snapshot (Euler) or the same immutable stage vector (Runge–Kutta 4) and commits its results in a fixed order (docs/parallelExecution.md). The accuracy run uses small graphs; --full measures the same families up to 100,000 nodes, with the time it takes.
- Not measured at 1,000,000 nodes: A project of a million nodes is about 1.45 GB of JSON (about 1,450 bytes a node with its two relationships), more than one JavaScript string can hold, so the project encoder cannot write it; the engine's validation alone would take about six minutes (about 0.33 ms a node, measured at 10,000 and 100,000 nodes), and the 8 GB machine these benchmarks were written on could not hold the document while the engine parses it.
All 12 result rows
| Case | Method | h (s) | Substeps | Horizon (s) | Max abs error | RMSE | Relative error | Conservation error | Steps | Substeps run | Evaluations | Note |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| chain, 100 nodes | explicit Euler | 0.02 | 1 | 1 | 0.005594 | 0.00221 | 0.02287 | – | 50 | 5,000 | 10,000 | 198 relationships; serial, thread pool (4 workers) and partitioned (4 partitions): identical bit for bit; partition cut 3.03 % of communication; against the method's exact steps 2.8e-15 |
| chain, 100 nodes | Runge–Kutta 4 | 0.02 | 1 | 1 | 2.74e-8 | 1.07e-8 | 5.91e-7 | – | 50 | 5,000 | 40,000 | 198 relationships; serial, thread pool (4 workers) and partitioned (4 partitions): identical bit for bit; partition cut 3.03 % of communication; against the method's exact steps 2.5e-15 |
| chain, 400 nodes | explicit Euler | 0.02 | 1 | 1 | 0.005632 | 0.002214 | 0.02285 | – | 50 | 20,000 | 40,000 | 798 relationships; serial, thread pool (4 workers) and partitioned (4 partitions): identical bit for bit; partition cut 0.75 % of communication; against the method's exact steps 1.7e-14 |
| chain, 400 nodes | Runge–Kutta 4 | 0.02 | 1 | 1 | 2.76e-8 | 1.07e-8 | 6.04e-7 | – | 50 | 20,000 | 1.60e5 | 798 relationships; serial, thread pool (4 workers) and partitioned (4 partitions): identical bit for bit; partition cut 0.75 % of communication; against the method's exact steps 1.7e-14 |
| grid, 100 nodes | explicit Euler | 0.02 | 1 | 1 | 0.005396 | 0.001869 | 0.06262 | – | 50 | 5,000 | 19,800 | 360 relationships; serial, thread pool (4 workers) and partitioned (4 partitions): identical bit for bit; partition cut 11.11 % of communication; against the method's exact steps 6.6e-16 |
| grid, 100 nodes | Runge–Kutta 4 | 0.02 | 1 | 1 | 1.27e-7 | 3.69e-8 | 1.55e-6 | – | 50 | 5,000 | 79,200 | 360 relationships; serial, thread pool (4 workers) and partitioned (4 partitions): identical bit for bit; partition cut 11.11 % of communication; against the method's exact steps 7.4e-16 |
| grid, 400 nodes | explicit Euler | 0.02 | 1 | 1 | 0.005464 | 0.001782 | 0.1368 | – | 50 | 20,000 | 79,800 | 1520 relationships; serial, thread pool (4 workers) and partitioned (4 partitions): identical bit for bit; partition cut 6.32 % of communication; against the method's exact steps 1.5e-15 |
| grid, 400 nodes | Runge–Kutta 4 | 0.02 | 1 | 1 | 1.32e-7 | 3.66e-8 | 6.50e-6 | – | 50 | 20,000 | 3.19e5 | 1520 relationships; serial, thread pool (4 workers) and partitioned (4 partitions): identical bit for bit; partition cut 6.32 % of communication; against the method's exact steps 1.3e-15 |
| random network, 100 nodes | explicit Euler | 0.02 | 1 | 1 | 0.01013 | 0.003075 | 0.03116 | 3.76e-17 | 50 | 5,000 | 20,000 | 400 relationships; serial, thread pool (4 workers) and partitioned (4 partitions): identical bit for bit; partition cut 27.50 % of communication; against the method's exact steps 8.3e-17 |
| random network, 100 nodes | Runge–Kutta 4 | 0.02 | 1 | 1 | 5.04e-7 | 4.86e-8 | 1.28e-6 | 2.51e-17 | 50 | 5,000 | 80,000 | 400 relationships; serial, thread pool (4 workers) and partitioned (4 partitions): identical bit for bit; partition cut 27.50 % of communication; against the method's exact steps 1.1e-16 |
| random network, 400 nodes | explicit Euler | 0.02 | 1 | 1 | – | – | – | 2.71e-17 | 50 | 20,000 | 80,000 | 1600 relationships; serial, thread pool (4 workers) and partitioned (4 partitions): identical bit for bit; partition cut 27.00 % of communication; against the method's exact steps 1.1e-16; no exact solution at this size |
| random network, 400 nodes | Runge–Kutta 4 | 0.02 | 1 | 1 | – | – | – | 1.50e-17 | 50 | 20,000 | 3.20e5 | 1600 relationships; serial, thread pool (4 workers) and partitioned (4 partitions): identical bit for bit; partition cut 27.00 % of communication; against the method's exact steps 1.1e-16; no exact solution at this size |
A large stiff network: Rodas4 and BDF
The scaling benchmark's thermal grid from 16 to 10,000 nodes over a horizon set by its slowest mode, cooling smoothly and heated in jumps every 2 s and every 0.25 s, under Stiff's two solvers, Rosenbrock (Rodas4) and BDF, at the same tolerance: the factorisations, Jacobians and evaluations each takes, its error, its engine time on the machine that ran it (not checked), and the size from which BDF takes less of each.
Directory benchmarks/scaling/stiffNetwork/ · models (shared with the problems it studies)
- Rodas4
- BDF
Data table
| Nodes | Rodas4 | BDF |
|---|---|---|
| 16 | 9.60e-4 | 7.93e-4 |
| 64 | 0.005068 | 0.004182 |
| 256 | 0.01659 | 0.01403 |
| 1,024 | 0.07451 | 0.07276 |
| 4,096 | 0.5281 | 0.4452 |
| 10,000 | 2.093 | 1.84 |
- Rodas4
- BDF
Data table
| Nodes | Rodas4 | BDF |
|---|---|---|
| 256 | 0.1359 | 0.1209 |
| 1,024 | 0.5693 | 0.5342 |
- Rodas4
- BDF
Data table
| Nodes | Rodas4 | BDF |
|---|---|---|
| 256 | 0.2836 | 0.3801 |
| 1,024 | 1.158 | 1.727 |
Checks
| Check | What it measures | Value | Threshold | Result |
|---|---|---|---|---|
smooth16ErrorRodas4 | Thermal grid of 16 nodes, Stiff, Rodas4 (relative tolerance 0.000001): largest error relative to range, against the exact solution | 7.05e-8 | ≤ 2.00e-7 | ✓ Pass |
smooth16ErrorBdf | Thermal grid of 16 nodes, Stiff, BDF (relative tolerance 0.000001): largest error relative to range, against the exact solution | 4.28e-8 | ≤ 9.00e-8 | ✓ Pass |
smooth16FactorisationRatio | Thermal grid of 16 nodes: Rodas4's factorisations for each of BDF's | 1.38 | ≥ 1 | ✓ Pass |
smooth16JacobianRatio | Thermal grid of 16 nodes: Rodas4's Jacobians for each of BDF's | 6.9 | ≥ 5.5 | ✓ Pass |
smooth64ErrorRodas4 | Thermal grid of 64 nodes, Stiff, Rodas4 (relative tolerance 0.000001): largest error relative to range, against the exact solution | 6.27e-8 | ≤ 2.00e-7 | ✓ Pass |
smooth64ErrorBdf | Thermal grid of 64 nodes, Stiff, BDF (relative tolerance 0.000001): largest error relative to range, against the exact solution | 3.67e-8 | ≤ 8.00e-8 | ✓ Pass |
smooth64FactorisationRatio | Thermal grid of 64 nodes: Rodas4's factorisations for each of BDF's | 1.358 | ≥ 1 | ✓ Pass |
smooth64JacobianRatio | Thermal grid of 64 nodes: Rodas4's Jacobians for each of BDF's | 7.1 | ≥ 5.6 | ✓ Pass |
smooth256ErrorRodas4 | Thermal grid of 256 nodes, Stiff, Rodas4 (relative tolerance 0.000001): largest error relative to range, against the exact solution | 4.67e-8 | ≤ 1.00e-7 | ✓ Pass |
smooth256ErrorBdf | Thermal grid of 256 nodes, Stiff, BDF (relative tolerance 0.000001): largest error relative to range, against the exact solution | 3.87e-8 | ≤ 6.00e-8 | ✓ Pass |
smooth256FactorisationRatio | Thermal grid of 256 nodes: Rodas4's factorisations for each of BDF's | 1.194 | ≥ 1 | ✓ Pass |
smooth256JacobianRatio | Thermal grid of 256 nodes: Rodas4's Jacobians for each of BDF's | 7.2 | ≥ 5.7 | ✓ Pass |
smooth1024ErrorRodas4 | Thermal grid of 1024 nodes, Stiff, Rodas4 (relative tolerance 0.000001): largest error relative to range, against the exact solution | 1.28e-8 | ≤ 3.00e-8 | ✓ Pass |
smooth1024ErrorBdf | Thermal grid of 1024 nodes, Stiff, BDF (relative tolerance 0.000001): largest error relative to range, against the exact solution | 9.55e-8 | ≤ 2.00e-7 | ✓ Pass |
smooth1024EvaluationRatioRodas4 | Thermal grid of 1024 nodes, Stiff, Rodas4 (relative tolerance 0.000001): evaluations with the exact Jacobian over those with finite differences | 0.4621 | ≤ 0.55 | ✓ Pass |
smooth1024ErrorRatioRodas4 | Thermal grid of 1024 nodes, Stiff, Rodas4 (relative tolerance 0.000001): error with the exact Jacobian over that with finite differences | 0.9993 | ≤ 1.2 | ✓ Pass |
smooth1024EvaluationRatioBdf | Thermal grid of 1024 nodes, Stiff, BDF (relative tolerance 0.000001): evaluations with the exact Jacobian over those with finite differences | 0.872 | ≤ 0.9 | ✓ Pass |
smooth1024ErrorRatioBdf | Thermal grid of 1024 nodes, Stiff, BDF (relative tolerance 0.000001): error with the exact Jacobian over that with finite differences | 1 | ≤ 1.2 | ✓ Pass |
smooth1024FactorisationRatio | Thermal grid of 1024 nodes: Rodas4's factorisations for each of BDF's | 1.131 | ≥ 1 | ✓ Pass |
smooth1024JacobianRatio | Thermal grid of 1024 nodes: Rodas4's Jacobians for each of BDF's | 6.9 | ≥ 5.5 | ✓ Pass |
smooth4096ErrorRodas4 | Thermal grid of 4096 nodes, Stiff, Rodas4 (relative tolerance 0.000001): largest error relative to range, against the exact solution | 2.80e-9 | ≤ 6.00e-9 | ✓ Pass |
smooth4096ErrorBdf | Thermal grid of 4096 nodes, Stiff, BDF (relative tolerance 0.000001): largest error relative to range, against the exact solution | 6.10e-8 | ≤ 3.00e-7 | ✓ Pass |
smooth4096FactorisationRatio | Thermal grid of 4096 nodes: Rodas4's factorisations for each of BDF's | 1.385 | ≥ 1 | ✓ Pass |
smooth4096JacobianRatio | Thermal grid of 4096 nodes: Rodas4's Jacobians for each of BDF's | 7.2 | ≥ 5.7 | ✓ Pass |
smooth10000ErrorRodas4 | Thermal grid of 10000 nodes, Stiff, Rodas4 (relative tolerance 0.000001): largest error relative to range, against the exact solution | 1.38e-9 | ≤ 3.00e-9 | ✓ Pass |
smooth10000ErrorBdf | Thermal grid of 10000 nodes, Stiff, BDF (relative tolerance 0.000001): largest error relative to range, against the exact solution | 4.43e-8 | ≤ 2.00e-7 | ✓ Pass |
smooth10000FactorisationRatio | Thermal grid of 10000 nodes: Rodas4's factorisations for each of BDF's | 1.352 | ≥ 1 | ✓ Pass |
smooth10000JacobianRatio | Thermal grid of 10000 nodes: Rodas4's Jacobians for each of BDF's | 7.3 | ≥ 5.8 | ✓ Pass |
jumps256ErrorRodas4 | Thermal grid heated in jumps every 2 s of 256 nodes, Stiff, Rodas4 (relative tolerance 0.000001): largest error relative to range, against Rodas4 at a tight tolerance | 5.80e-7 | ≤ 2.00e-6 | ✓ Pass |
jumps256ErrorBdf | Thermal grid heated in jumps every 2 s of 256 nodes, Stiff, BDF (relative tolerance 0.000001): largest error relative to range, against Rodas4 at a tight tolerance | 1.77e-7 | ≤ 4.00e-7 | ✓ Pass |
jumps256FactorisationRatio | Thermal grid heated in jumps every 2 s of 256 nodes: Rodas4's factorisations for each of BDF's | 1.216 | ≥ 1 | ✓ Pass |
jumps256JacobianRatio | Thermal grid heated in jumps every 2 s of 256 nodes: Rodas4's Jacobians for each of BDF's | 53 | ≥ 42.4 | ✓ Pass |
jumps1024ErrorRodas4 | Thermal grid heated in jumps every 2 s of 1024 nodes, Stiff, Rodas4 (relative tolerance 0.000001): largest error relative to range, against Rodas4 at a tight tolerance | 1.63e-5 | ≤ 4.00e-5 | ✓ Pass |
jumps1024ErrorBdf | Thermal grid heated in jumps every 2 s of 1024 nodes, Stiff, BDF (relative tolerance 0.000001): largest error relative to range, against Rodas4 at a tight tolerance | 5.60e-6 | ≤ 2.00e-5 | ✓ Pass |
jumps1024FactorisationRatio | Thermal grid heated in jumps every 2 s of 1024 nodes: Rodas4's factorisations for each of BDF's | 1.146 | ≥ 1 | ✓ Pass |
jumps1024JacobianRatio | Thermal grid heated in jumps every 2 s of 1024 nodes: Rodas4's Jacobians for each of BDF's | 46.5 | ≥ 37.2 | ✓ Pass |
frequentJumps256ErrorRodas4 | Thermal grid heated in jumps every 0.25 s of 256 nodes, Stiff, Rodas4 (relative tolerance 0.000001): largest error relative to range, against Rodas4 at a tight tolerance | 3.40e-6 | ≤ 7.00e-6 | ✓ Pass |
frequentJumps256ErrorBdf | Thermal grid heated in jumps every 0.25 s of 256 nodes, Stiff, BDF (relative tolerance 0.000001): largest error relative to range, against Rodas4 at a tight tolerance | 4.76e-6 | ≤ 2.00e-5 | ✓ Pass |
frequentJumps256FactorisationRatio | Thermal grid heated in jumps every 0.25 s of 256 nodes: Rodas4's factorisations for each of BDF's | 0.6081 | ≥ 0.5 | ✓ Pass |
frequentJumps256JacobianRatio | Thermal grid heated in jumps every 0.25 s of 256 nodes: Rodas4's Jacobians for each of BDF's | 105.3 | ≥ 84.2 | ✓ Pass |
frequentJumps1024ErrorRodas4 | Thermal grid heated in jumps every 0.25 s of 1024 nodes, Stiff, Rodas4 (relative tolerance 0.000001): largest error relative to range, against Rodas4 at a tight tolerance | 1.21e-5 | ≤ 3.00e-5 | ✓ Pass |
frequentJumps1024ErrorBdf | Thermal grid heated in jumps every 0.25 s of 1024 nodes, Stiff, BDF (relative tolerance 0.000001): largest error relative to range, against Rodas4 at a tight tolerance | 7.30e-6 | ≤ 2.00e-5 | ✓ Pass |
frequentJumps1024FactorisationRatio | Thermal grid heated in jumps every 0.25 s of 1024 nodes: Rodas4's factorisations for each of BDF's | 0.5516 | ≥ 0.4 | ✓ Pass |
frequentJumps1024JacobianRatio | Thermal grid heated in jumps every 0.25 s of 1024 nodes: Rodas4's Jacobians for each of BDF's | 90.1 | ≥ 72 | ✓ Pass |
- Smooth, 16 nodes over 5 s: Rodas4 69 steps, 69 factorisations, 69 Jacobians, 415 evaluations, error 7.1e-8, 0.00 s; BDF 186 steps, 50 factorisations, 10 Jacobians, 385 evaluations, error 4.3e-8, 0.00 s.
- Smooth, 64 nodes over 10 s: Rodas4 71 steps, 72 factorisations, 71 Jacobians, 432 evaluations, error 6.3e-8, 0.01 s; BDF 200 steps, 53 factorisations, 10 Jacobians, 413 evaluations, error 3.7e-8, 0.00 s.
- Smooth, 256 nodes over 20 s: Rodas4 72 steps, 74 factorisations, 72 Jacobians, 443 evaluations, error 4.7e-8, 0.02 s; BDF 211 steps, 62 factorisations, 10 Jacobians, 443 evaluations, error 3.9e-8, 0.01 s.
- Smooth, 1024 nodes over 40 s: Rodas4 69 steps, 69 factorisations, 69 Jacobians, 415 evaluations, error 1.3e-8, 0.07 s; BDF 226 steps, 61 factorisations, 10 Jacobians, 477 evaluations, error 9.5e-8, 0.07 s.
- Smooth, 4096 nodes over 100 s: Rodas4 72 steps, 72 factorisations, 72 Jacobians, 433 evaluations, error 2.8e-9, 0.53 s; BDF 218 steps, 52 factorisations, 10 Jacobians, 449 evaluations, error 6.1e-8, 0.45 s.
- Smooth, 10000 nodes over 200 s: Rodas4 73 steps, 73 factorisations, 73 Jacobians, 439 evaluations, error 1.4e-9, 2.09 s; BDF 223 steps, 54 factorisations, 10 Jacobians, 465 evaluations, error 4.4e-8, 1.84 s.
- Crossover, smooth: BDF takes fewer factorisations from 16 nodes, fewer Jacobians from 16 nodes, fewer evaluations from 16 nodes, and less engine time on this machine from 16 nodes; at the same tolerance its error is 0.6 to 32.1 times Rodas4's.
- Heated in jumps every 2 s, 256 nodes over 40 s: Rodas4 530 steps, 569 factorisations, 530 Jacobians, 3906 evaluations, error 5.8e-7, 0.14 s; BDF 1842 steps, 468 factorisations, 10 Jacobians, 3873 evaluations, error 1.8e-7, 0.12 s.
- Heated in jumps every 2 s, 1024 nodes over 40 s: Rodas4 465 steps, 503 factorisations, 465 Jacobians, 3446 evaluations, error 1.6e-5, 0.57 s; BDF 1701 steps, 439 factorisations, 10 Jacobians, 3583 evaluations, error 5.6e-6, 0.53 s.
- Crossover, heated in jumps every 2 s: BDF takes fewer factorisations from 256 nodes, fewer Jacobians from 256 nodes, fewer evaluations from 256 nodes, and less engine time on this machine from 256 nodes; at the same tolerance its error is 0.3 to 0.3 times Rodas4's.
- Heated in jumps every 0.25 s, 256 nodes over 40 s: Rodas4 1053 steps, 1212 factorisations, 1053 Jacobians, 8167 evaluations, error 3.4e-6, 0.28 s; BDF 5455 steps, 1993 factorisations, 10 Jacobians, 12037 evaluations, error 4.8e-6, 0.38 s.
- Heated in jumps every 0.25 s, 1024 nodes over 40 s: Rodas4 901 steps, 1058 factorisations, 901 Jacobians, 7093 evaluations, error 1.2e-5, 1.16 s; BDF 4942 steps, 1918 factorisations, 10 Jacobians, 11011 evaluations, error 7.3e-6, 1.73 s.
- Crossover, heated in jumps every 0.25 s: BDF takes fewer factorisations at no size measured, fewer Jacobians from 256 nodes, fewer evaluations at no size measured, and less engine time on this machine at no size measured; at the same tolerance its error is 0.6 to 1.4 times Rodas4's.
All 22 result rows
| Case | Method | h (s) | Substeps | Horizon (s) | Max abs error | RMSE | Relative error | Steps | Substeps run | Evaluations | Note |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Thermal grid, 16 nodes | Stiff, Rodas4 (relative tolerance 0.000001) | 0.5 | 1 | 5 | 2.92e-8 | 9.98e-9 | 7.05e-8 | 10 | 1,104 | 24,900 | 69 steps, 0 rejected, 69 Jacobians, 69 factorisations, 415 evaluations of the model; 0.00 s of engine compute on this machine (not checked) |
| Thermal grid, 16 nodes | Stiff, BDF (relative tolerance 0.000001) | 0.5 | 1 | 5 | 2.45e-8 | 6.41e-9 | 4.28e-8 | 10 | 2,976 | 23,100 | 186 steps, 1 rejected, 10 Jacobians, 50 factorisations, 385 evaluations of the model, history started again 0 times; 0.00 s of engine compute on this machine (not checked) |
| Thermal grid, 64 nodes | Stiff, Rodas4 (relative tolerance 0.000001) | 1 | 1 | 10 | 2.12e-8 | 8.52e-9 | 6.27e-8 | 10 | 4,544 | 1.09e5 | 71 steps, 1 rejected, 71 Jacobians, 72 factorisations, 432 evaluations of the model; 0.01 s of engine compute on this machine (not checked) |
| Thermal grid, 64 nodes | Stiff, BDF (relative tolerance 0.000001) | 1 | 1 | 10 | 1.52e-8 | 3.39e-9 | 3.67e-8 | 10 | 12,800 | 1.04e5 | 200 steps, 1 rejected, 10 Jacobians, 53 factorisations, 413 evaluations of the model, history started again 0 times; 0.00 s of engine compute on this machine (not checked) |
| Thermal grid, 256 nodes | Stiff, Rodas4 (relative tolerance 0.000001) | 2 | 1 | 20 | 2.36e-8 | 8.68e-9 | 4.67e-8 | 10 | 18,430 | 4.52e5 | 72 steps, 2 rejected, 72 Jacobians, 74 factorisations, 443 evaluations of the model; 0.02 s of engine compute on this machine (not checked) |
| Thermal grid, 256 nodes | Stiff, BDF (relative tolerance 0.000001) | 2 | 1 | 20 | 2.37e-8 | 7.97e-9 | 3.87e-8 | 10 | 54,020 | 4.52e5 | 211 steps, 5 rejected, 10 Jacobians, 62 factorisations, 443 evaluations of the model, history started again 0 times; 0.01 s of engine compute on this machine (not checked) |
| Thermal grid, 1024 nodes | Stiff, Rodas4 (relative tolerance 0.000001) | 4 | 1 | 40 | 5.68e-9 | 1.86e-9 | 1.28e-8 | 10 | 70,660 | 1.70e6 | 69 steps, 0 rejected, 69 Jacobians, 69 factorisations, 415 evaluations of the model; 0.07 s of engine compute on this machine (not checked) |
| Thermal grid, 1024 nodes | Stiff, BDF (relative tolerance 0.000001) | 4 | 1 | 40 | 4.24e-8 | 1.41e-8 | 9.55e-8 | 10 | 2.31e5 | 1.95e6 | 226 steps, 7 rejected, 10 Jacobians, 61 factorisations, 477 evaluations of the model, history started again 0 times; 0.07 s of engine compute on this machine (not checked) |
| Thermal grid, 1024 nodes: the exact Jacobian against finite differences | Stiff, Rodas4 (relative tolerance 0.000001, finite-difference Jacobian) | 4 | 1 | 40 | 5.68e-9 | 1.86e-9 | 1.28e-8 | 10 | 70,660 | 3.67e6 | 69 steps, 69 Jacobians, 898 evaluations, 0.10 s, against 69, 69, 415 and 0.07 s with the exact Jacobian, whose error is 1.28e-8 (engine times on this machine, not checked) |
| Thermal grid, 1024 nodes: the exact Jacobian against finite differences | Stiff, BDF (relative tolerance 0.000001, finite-difference Jacobian) | 4 | 1 | 40 | 4.24e-8 | 1.41e-8 | 9.55e-8 | 10 | 2.31e5 | 2.24e6 | 226 steps, 10 Jacobians, 547 evaluations, 0.08 s, against 226, 10, 477 and 0.07 s with the exact Jacobian, whose error is 9.55e-8 (engine times on this machine, not checked) |
| Thermal grid, 4096 nodes | Stiff, Rodas4 (relative tolerance 0.000001) | 10 | 1 | 100 | 9.16e-10 | 2.90e-10 | 2.80e-9 | 10 | 2.95e5 | 7.09e6 | 72 steps, 0 rejected, 72 Jacobians, 72 factorisations, 433 evaluations of the model; 0.53 s of engine compute on this machine (not checked) |
| Thermal grid, 4096 nodes | Stiff, BDF (relative tolerance 0.000001) | 10 | 1 | 100 | 2.00e-8 | 7.05e-9 | 6.10e-8 | 10 | 8.93e5 | 7.35e6 | 218 steps, 1 rejected, 10 Jacobians, 52 factorisations, 449 evaluations of the model, history started again 0 times; 0.45 s of engine compute on this machine (not checked) |
| Thermal grid, 10000 nodes | Stiff, Rodas4 (relative tolerance 0.000001) | 20 | 1 | 200 | 3.90e-10 | 1.21e-10 | 1.38e-9 | 10 | 7.30e5 | 1.76e7 | 73 steps, 0 rejected, 73 Jacobians, 73 factorisations, 439 evaluations of the model; 2.09 s of engine compute on this machine (not checked) |
| Thermal grid, 10000 nodes | Stiff, BDF (relative tolerance 0.000001) | 20 | 1 | 200 | 1.25e-8 | 4.72e-9 | 4.43e-8 | 10 | 2.23e6 | 1.86e7 | 223 steps, 4 rejected, 10 Jacobians, 54 factorisations, 465 evaluations of the model, history started again 0 times; 1.84 s of engine compute on this machine (not checked) |
| Thermal grid, heated in jumps every 2 s, 256 nodes | Stiff, Rodas4 (relative tolerance 0.000001) | 4 | 1 | 40 | 9.99e-8 | 6.29e-9 | 5.80e-7 | 10 | 1.36e5 | 3.99e6 | 530 steps, 39 rejected, 530 Jacobians, 569 factorisations, 3906 evaluations of the model; 0.14 s of engine compute on this machine (not checked) |
| Thermal grid, heated in jumps every 2 s, 256 nodes | Stiff, BDF (relative tolerance 0.000001) | 4 | 1 | 40 | 4.19e-8 | 2.40e-9 | 1.77e-7 | 10 | 4.72e5 | 3.95e6 | 1842 steps, 84 rejected, 10 Jacobians, 468 factorisations, 3873 evaluations of the model, history started again 19 times; 0.12 s of engine compute on this machine (not checked) |
| Thermal grid, heated in jumps every 2 s, 1024 nodes | Stiff, Rodas4 (relative tolerance 0.000001) | 4 | 1 | 40 | 1.66e-7 | 5.80e-9 | 1.63e-5 | 10 | 4.76e5 | 1.41e7 | 465 steps, 38 rejected, 465 Jacobians, 503 factorisations, 3446 evaluations of the model; 0.57 s of engine compute on this machine (not checked) |
| Thermal grid, heated in jumps every 2 s, 1024 nodes | Stiff, BDF (relative tolerance 0.000001) | 4 | 1 | 40 | 6.84e-8 | 2.24e-9 | 5.60e-6 | 10 | 1.74e6 | 1.47e7 | 1701 steps, 80 rejected, 10 Jacobians, 439 factorisations, 3583 evaluations of the model, history started again 19 times; 0.53 s of engine compute on this machine (not checked) |
| Thermal grid, heated in jumps every 0.25 s, 256 nodes | Stiff, Rodas4 (relative tolerance 0.000001) | 4 | 1 | 40 | 2.28e-7 | 1.87e-8 | 3.40e-6 | 10 | 2.70e5 | 8.34e6 | 1053 steps, 159 rejected, 1053 Jacobians, 1212 factorisations, 8167 evaluations of the model; 0.28 s of engine compute on this machine (not checked) |
| Thermal grid, heated in jumps every 0.25 s, 256 nodes | Stiff, BDF (relative tolerance 0.000001) | 4 | 1 | 40 | 3.19e-7 | 1.94e-8 | 4.76e-6 | 10 | 1.40e6 | 1.23e7 | 5455 steps, 483 rejected, 10 Jacobians, 1993 factorisations, 12037 evaluations of the model, history started again 159 times; 0.38 s of engine compute on this machine (not checked) |
| Thermal grid, heated in jumps every 0.25 s, 1024 nodes | Stiff, Rodas4 (relative tolerance 0.000001) | 4 | 1 | 40 | 4.65e-7 | 1.92e-8 | 1.21e-5 | 10 | 9.23e5 | 2.90e7 | 901 steps, 157 rejected, 901 Jacobians, 1058 factorisations, 7093 evaluations of the model; 1.16 s of engine compute on this machine (not checked) |
| Thermal grid, heated in jumps every 0.25 s, 1024 nodes | Stiff, BDF (relative tolerance 0.000001) | 4 | 1 | 40 | 2.81e-7 | 8.74e-9 | 7.30e-6 | 10 | 5.06e6 | 4.51e7 | 4942 steps, 483 rejected, 10 Jacobians, 1918 factorisations, 11011 evaluations of the model, history started again 159 times; 1.73 s of engine compute on this machine (not checked) |
Causal reconstruction: finding known graphs and equations again
Synthetic time series generated from known graphs and equations (chains, forks, colliders, a feedback loop, random sparse graphs of 10 and 20 variables; noise from σ = 0.5 to 32; quadratic and source-target product terms; a delay of two rows, an effect within one row, a hidden common cause, a near-noiseless copy; and a continuous-time system sampled from every 0.1 s to every 2 s), the graph hidden, and Konjugate's causal inference asked to find it: edge precision, recall and F1, direction, and the error of the recovered equations, including where it fails.
Directory benchmarks/causal/reconstruction/ · models (shared with the problems it studies)
- precision
- recall
- F1
- direction
Data table
| Downstream noise σ | precision | recall | F1 | direction |
|---|---|---|---|---|
| 0.5 | 0.6667 | 1 | 0.8 | 0.5 |
| 2 | 1 | 1 | 1 | 1 |
| 8 | 1 | 0.75 | 0.8571 | 1 |
| 32 | 1 | 0.5 | 0.6667 | 1 |
- precision
- recall
- F1
- direction
Data table
| Rows | precision | recall | F1 | direction |
|---|---|---|---|---|
| 250 | 0.3704 | 1 | 0.5405 | 0.5 |
| 500 | 0.625 | 1 | 0.7692 | 0.8 |
| 1,000 | 1 | 1 | 1 | 1 |
| 1,500 | 1 | 1 | 1 | 1 |
- equation error, every edge
- equation error, found edges
- own-rate error
Data table
| Sampling interval Δt (s) | equation error, every edge | equation error, found edges | own-rate error |
|---|---|---|---|
| 0.1 | 1 | – | 1 |
| 0.5 | 0.4228 | 0.4228 | 0.2212 |
| 1 | 0.594 | 0.594 | 0.3787 |
| 2 | 0.809 | 0.809 | 0.5653 |
Checks
| Check | What it measures | Value | Threshold | Result |
|---|---|---|---|---|
chain.f1 | Chain x1 → x2 → x3: directed-edge F1 (harmonic mean of precision and recall over edges with a direction) | 1 | ≥ 0.95 | ✓ Pass |
fork.f1 | Fork (common cause) x1 → x2, x1 → x3: directed-edge F1 (harmonic mean of precision and recall over edges with a direction) | 1 | ≥ 0.95 | ✓ Pass |
collider.f1 | Collider x1 → x3 ← x2: directed-edge F1 (harmonic mean of precision and recall over edges with a direction) | 1 | ≥ 0.95 | ✓ Pass |
diamond.f1 | Diamond x1 → x2, x3 → x4: directed-edge F1 (harmonic mean of precision and recall over edges with a direction) | 0.8 | ≥ 0.75 | ✓ Pass |
feedback.f1 | Feedback loop x1 → x2 → x3 → x1: directed-edge F1 (harmonic mean of precision and recall over edges with a direction) | 1 | ≥ 0.95 | ✓ Pass |
randomDag10.f1 | Random sparse graph, 10 variables: directed-edge F1 (harmonic mean of precision and recall over edges with a direction) | 1 | ≥ 0.95 | ✓ Pass |
randomDag20.f1 | Random sparse graph, 20 variables: directed-edge F1 (harmonic mean of precision and recall over edges with a direction) | 0.913 | ≥ 0.86 | ✓ Pass |
diamondNoise2.f1 | Diamond, downstream noise σ = 2: directed-edge F1 (harmonic mean of precision and recall over edges with a direction) | 1 | ≥ 0.95 | ✓ Pass |
quadratic.f1 | Quadratic term x2 = 0.6 x1 + 0.4 x1² + …: directed-edge F1 (harmonic mean of precision and recall over edges with a direction) | 1 | ≥ 0.95 | ✓ Pass |
bilinear.f1 | Source-target product x2 += 0.3 x1 x2 (with a linear path): directed-edge F1 (harmonic mean of precision and recall over edges with a direction) | 1 | ≥ 0.95 | ✓ Pass |
odeChainDt0p5.f1 | Linear ODE chain x1 → x2 → x3 → x4, sampled every 0.5 s: directed-edge F1 (harmonic mean of precision and recall over edges with a direction) | 1 | ≥ 0.95 | ✓ Pass |
odeChainDt1.f1 | Linear ODE chain x1 → x2 → x3 → x4, sampled every 1 s: directed-edge F1 (harmonic mean of precision and recall over edges with a direction) | 1 | ≥ 0.95 | ✓ Pass |
odeChainDt0p5.equationError | Linear ODE chain x1 → x2 → x3 → x4, sampled every 0.5 s: equation error: ‖estimated - true rates‖ / ‖true rates‖ over every true or proposed edge, a missing edge counting as zero | 0.4228 | 0.34 to 0.53 | ✓ Pass |
odeChainDt1.equationError | Linear ODE chain x1 → x2 → x3 → x4, sampled every 1 s: equation error: ‖estimated - true rates‖ / ‖true rates‖ over every true or proposed edge, a missing edge counting as zero | 0.594 | 0.48 to 0.74 | ✓ Pass |
diamondNoise8.recall | Diamond, downstream noise σ = 8: share of the true edges found with their direction (known limit: The root x1 explains too little of x2 and x3 against their own noise for the skeleton to keep the pairs; the edges into x4, whose causes now vary widely, are still found.) | 0.75 | 0.7 to 0.8 | ✓ Pass |
diamondNoise32.recall | Diamond, downstream noise σ = 32: share of the true edges found with their direction (known limit: The root x1 explains too little of x2 and x3 against their own noise for the skeleton to keep the pairs; the edges into x4, whose causes now vary widely, are still found.) | 0.5 | 0.45 to 0.55 | ✓ Pass |
pureQuadratic.recall | Purely quadratic term x2 = 0.8 x1² + …: share of the true edges found with their direction (known limit: x1 is symmetric about zero, so x1² has no linear correlation with x1; the skeleton (stage 1) is linear and prunes the pair before any power is fitted.) | 0 | 0 to 0 | ✓ Pass |
lag2.foundEquationError | Delay of two rows x1(t-2) → x2(t): equation error over the true edges that were found (known limit: infer fits lag 1 only (a lag of 2 has no single-Euler-step equation); x1's own persistence lets x1(t-1) stand in for x1(t-2), so the edge is found but its rate is wrong.) | 0.5279 | 0.42 to 0.66 | ✓ Pass |
instantaneous.directionAccuracy | Effect within one row x2(t) = 0.8 x1(t) + …: share of the true edges found at all whose direction is reported exactly (known limit: The effect is faster than the sampling, so there is no lagged evidence of its direction; at best the pair is found as correlation without a direction.) | 0 | 0 to 0 | ✓ Pass |
hiddenConfounder.falseEdges | Hidden common cause z → x1, z → x2 (z not in the CSV): edges proposed that are not in the true graph (known limit: Nothing can tell a hidden common cause from a direct link using the observed columns alone; x1 and x2 truly share no edge, so any edge found between them is false.) | 2 | 2 to 2 | ✓ Pass |
nearDeterministic.recall | Near-noiseless copy x1 → x2, x3(t) = x2(t) + 0.01 ε: share of the true edges found with their direction (known limit: The skeleton conditions on every other current and lagged column at once; x3 is an almost exact copy of x2 in the same row, so conditioned on it x2 has nothing left to correlate with x1 (the collider-bias limitation docs/causalInference.md describes). The copy itself, within one row, is outside the lag-1 model.) | 0 | 0 to 0 | ✓ Pass |
odeChainDt0p1.recall | Linear ODE chain x1 → x2 → x3 → x4, sampled every 0.1 s: share of the true edges found with their direction (known limit: Sampled finely, each variable changes little in one row; conditioned on the source's current value, its previous one adds only about Δt/2 of the coupling, below the skeleton's fixed threshold of 0.1 in partial correlation. More rows do not help (6,000 rows give the same), since the threshold is on the size of the correlation, not its significance.) | 0 | 0 to 0 | ✓ Pass |
odeChainDt2.equationError | Linear ODE chain x1 → x2 → x3 → x4, sampled every 2 s: equation error: ‖estimated - true rates‖ / ‖true rates‖ over every true or proposed edge, a missing edge counting as zero (known limit: Sampled coarsely, Φ = exp(A Δt) is far from I + A Δt, and (Φ - I)/Δt, the rate infer reports, is far from A: the structure is still found, but every rate is badly biased towards zero.) | 0.809 | 0.65 to 1 | ✓ Pass |
pooled.directionAccuracy | Every dataset expected to be recovered: share of the true edges found at all whose direction is reported exactly, weighted by true edges | 0.9298 | ≥ 0.9 | ✓ Pass |
pooled.foundEquationError | Every discrete-time dataset expected to be recovered (the model class infer fits): largest equation error over the true edges that were found | 0.0466 | ≤ 0.058 | ✓ Pass |
sampleSize.f1Gain | Random sparse graph, 10 variables: F1 with all 1500 rows less F1 with the first 250 | 0.4595 | 0.4 to 0.52 | ✓ Pass |
- infer fits one-row-lagged, additive models (with optional powers of a source and a source-target product) by ridge regression, after a skeleton of lag-1 partial correlations with a fixed threshold of 0.1 (docs/causalInference.md). Datasets inside that model class are recovered well; the ones outside it are included to show where it fails, and say why in their rows.
- False edges in the recoverable datasets are reverse edges with small rates (the shrinkage effect docs/causalInference.md describes): each row gives the largest false edge's rate beside the smallest true rate. Less noise does not always help: the diamond with the least downstream noise (σ = 0.5) has two (x2 → x1, x3 → x1), because x2 and x3 then follow x1 closely enough to predict it, and it scores below the same diamond at σ = 2. A hidden common cause is the exception: its false edges are as strong as true ones, and nothing in the data can tell them apart.
- A variable with no cause found gets no equation at all, by design (docs/causalInference.md, 'Replaying recorded values for input columns'); the own-rate error is measured only over variables with a true cause.
- Rates are compared in the engine's own units, per second of the CSV's time column: an edge's terms, and a variable's own rate (its self-lag coefficient less one, over Δt). For the continuous-time datasets the true rates are the system matrix A; infer reports (Φ - I)/Δt for the sampled transition Φ = exp(A Δt), which equals A only as A Δt → 0, while at fine sampling the skeleton finds nothing: there is no sampling interval at which both the structure and the rates are right.
All 25 result rows
| Case | Method | Relative error | Note |
|---|---|---|---|
| Chain x1 → x2 → x3 | infer | 0.00725 | 1500 rows; edges true 2, proposed 2, right 2; precision 1.00, recall 1.00, F1 1.00; skeleton F1 1.00; direction 1.00; equation error 0.0073 (on found edges 0.0073), own-rate error 0.023 |
| Fork (common cause) x1 → x2, x1 → x3 | infer | 0.01977 | 1500 rows; edges true 2, proposed 2, right 2; precision 1.00, recall 1.00, F1 1.00; skeleton F1 1.00; direction 1.00; equation error 0.020 (on found edges 0.020), own-rate error 0.025 |
| Collider x1 → x3 ← x2 | infer | 0.01637 | 1500 rows; edges true 2, proposed 2, right 2; precision 1.00, recall 1.00, F1 1.00; skeleton F1 1.00; direction 1.00; equation error 0.016 (on found edges 0.016), own-rate error 0.017 |
| Diamond x1 → x2, x3 → x4 | infer | 0.08704 | 1500 rows; edges true 4, proposed 6, right 4; precision 0.67, recall 1.00, F1 0.80; skeleton F1 1.00; direction 0.50; largest false edge's rate 0.076 (smallest true rate 0.50); equation error 0.087 (on found edges 0.039), own-rate error 0.012 |
| Feedback loop x1 → x2 → x3 → x1 | infer | 0.03641 | 1500 rows; edges true 3, proposed 3, right 3; precision 1.00, recall 1.00, F1 1.00; skeleton F1 1.00; direction 1.00; equation error 0.036 (on found edges 0.036), own-rate error 0.034 |
| Random sparse graph, 10 variables | infer | 0.03612 | 1500 rows; edges true 10, proposed 10, right 10; precision 1.00, recall 1.00, F1 1.00; skeleton F1 1.00; direction 1.00; equation error 0.036 (on found edges 0.036), own-rate error 0.046 |
| Random sparse graph, 20 variables | infer | 0.06526 | 1000 rows; edges true 21, proposed 25, right 21; precision 0.84, recall 1.00, F1 0.91; skeleton F1 0.98; direction 0.90; largest false edge's rate 0.10 (smallest true rate 0.40); equation error 0.065 (on found edges 0.047), own-rate error 0.040 |
| Diamond, downstream noise σ = 2 | infer | 0.02869 | 1500 rows; edges true 4, proposed 4, right 4; precision 1.00, recall 1.00, F1 1.00; skeleton F1 1.00; direction 1.00; equation error 0.029 (on found edges 0.029), own-rate error 0.013 |
| Diamond, downstream noise σ = 8 | infer | 0.4551 | 1500 rows; edges true 4, proposed 3, right 3; precision 1.00, recall 0.75, F1 0.86; skeleton F1 0.86; direction 1.00; equation error 0.46 (on found edges 0.016), own-rate error 0.061; known limit: The root x1 explains too little of x2 and x3 against their own noise for the skeleton to keep the pairs; the edges into x4, whose causes now vary widely, are still found. |
| Diamond, downstream noise σ = 32 | infer | 0.7589 | 1500 rows; edges true 4, proposed 2, right 2; precision 1.00, recall 0.50, F1 0.67; skeleton F1 0.67; direction 1.00; equation error 0.76 (on found edges 0.053), own-rate error 0.032; known limit: The root x1 explains too little of x2 and x3 against their own noise for the skeleton to keep the pairs; the edges into x4, whose causes now vary widely, are still found. |
| Quadratic term x2 = 0.6 x1 + 0.4 x1² + … | infer --degrees 1,2 | 0.01369 | 1500 rows; edges true 2, proposed 2, right 2; precision 1.00, recall 1.00, F1 1.00; skeleton F1 1.00; direction 1.00; equation error 0.014 (on found edges 0.014), own-rate error 0.016 |
| Purely quadratic term x2 = 0.8 x1² + … | infer --degrees 1,2 | 1 | 1500 rows; edges true 1, proposed 0, right 0; precision –, recall 0.00, F1 –; skeleton F1 –; direction –; equation error 1.0 (on found edges –), own-rate error 1.0; known limit: x1 is symmetric about zero, so x1² has no linear correlation with x1; the skeleton (stage 1) is linear and prunes the pair before any power is fitted. |
| Source-target product x2 += 0.3 x1 x2 (with a linear path) | infer --include-interaction-terms true | 0.01987 | 1500 rows; edges true 1, proposed 1, right 1; precision 1.00, recall 1.00, F1 1.00; skeleton F1 1.00; direction 1.00; equation error 0.020 (on found edges 0.020), own-rate error 0.0088 |
| Delay of two rows x1(t-2) → x2(t) | infer | 0.5316 | 1500 rows; edges true 1, proposed 2, right 1; precision 0.50, recall 1.00, F1 0.67; skeleton F1 1.00; direction 0.00; largest false edge's rate 0.050 (smallest true rate 0.80); equation error 0.53 (on found edges 0.53), own-rate error 0.38; known limit: infer fits lag 1 only (a lag of 2 has no single-Euler-step equation); x1's own persistence lets x1(t-1) stand in for x1(t-2), so the edge is found but its rate is wrong. |
| Effect within one row x2(t) = 0.8 x1(t) + … | infer | 0.5327 | 1500 rows; edges true 1, proposed 2, right 1; precision 0.50, recall 1.00, F1 0.67; skeleton F1 1.00; direction 0.00; largest false edge's rate 0.077 (smallest true rate 0.80); equation error 0.53 (on found edges 0.52), own-rate error 0.012; known limit: The effect is faster than the sampling, so there is no lagged evidence of its direction; at best the pair is found as correlation without a direction. |
| Hidden common cause z → x1, z → x2 (z not in the CSV) | infer | – | 1500 rows; edges true 0, proposed 2, right 0; precision 0.00, recall –, F1 –; skeleton F1 –; direction –; largest false edge's rate 0.31 (smallest true rate Infinity); equation error – (on found edges –), own-rate error –; known limit: Nothing can tell a hidden common cause from a direct link using the observed columns alone; x1 and x2 truly share no edge, so any edge found between them is false. |
| Near-noiseless copy x1 → x2, x3(t) = x2(t) + 0.01 ε | infer | 1 | 1500 rows; edges true 2, proposed 0, right 0; precision –, recall 0.00, F1 –; skeleton F1 –; direction –; equation error 1.0 (on found edges –), own-rate error 1.0; known limit: The skeleton conditions on every other current and lagged column at once; x3 is an almost exact copy of x2 in the same row, so conditioned on it x2 has nothing left to correlate with x1 (the collider-bias limitation docs/causalInference.md describes). The copy itself, within one row, is outside the lag-1 model. |
| Linear ODE chain x1 → x2 → x3 → x4, sampled every 0.1 s | infer | 1 | 1500 rows; edges true 3, proposed 0, right 0; precision –, recall 0.00, F1 –; skeleton F1 –; direction –; equation error 1.0 (on found edges –), own-rate error 1.0; known limit: Sampled finely, each variable changes little in one row; conditioned on the source's current value, its previous one adds only about Δt/2 of the coupling, below the skeleton's fixed threshold of 0.1 in partial correlation. More rows do not help (6,000 rows give the same), since the threshold is on the size of the correlation, not its significance. |
| Linear ODE chain x1 → x2 → x3 → x4, sampled every 0.5 s | infer | 0.4228 | 1500 rows; edges true 3, proposed 3, right 3; precision 1.00, recall 1.00, F1 1.00; skeleton F1 1.00; direction 1.00; equation error 0.42 (on found edges 0.42), own-rate error 0.22 |
| Linear ODE chain x1 → x2 → x3 → x4, sampled every 1 s | infer | 0.594 | 1500 rows; edges true 3, proposed 3, right 3; precision 1.00, recall 1.00, F1 1.00; skeleton F1 1.00; direction 1.00; equation error 0.59 (on found edges 0.59), own-rate error 0.38 |
| Linear ODE chain x1 → x2 → x3 → x4, sampled every 2 s | infer | 0.809 | 1500 rows; edges true 3, proposed 3, right 3; precision 1.00, recall 1.00, F1 1.00; skeleton F1 1.00; direction 1.00; equation error 0.81 (on found edges 0.81), own-rate error 0.57; known limit: Sampled coarsely, Φ = exp(A Δt) is far from I + A Δt, and (Φ - I)/Δt, the rate infer reports, is far from A: the structure is still found, but every rate is badly biased towards zero. |
| Random sparse graph, 10 variables, first 250 rows | infer | 0.2108 | 250 rows; edges true 10, proposed 27, right 10; precision 0.37, recall 1.00, F1 0.54; skeleton F1 0.67 (1 pair correlation only); direction 0.50; largest false edge's rate 0.14 (smallest true rate 0.41); equation error 0.21 (on found edges 0.11), own-rate error 0.084 |
| Random sparse graph, 10 variables, first 500 rows | infer | 0.1107 | 500 rows; edges true 10, proposed 16, right 10; precision 0.63, recall 1.00, F1 0.77; skeleton F1 0.83 (1 pair correlation only); direction 0.80; largest false edge's rate 0.084 (smallest true rate 0.41); equation error 0.11 (on found edges 0.082), own-rate error 0.038 |
| Random sparse graph, 10 variables, first 1000 rows | infer | 0.04304 | 1000 rows; edges true 10, proposed 10, right 10; precision 1.00, recall 1.00, F1 1.00; skeleton F1 1.00; direction 1.00; equation error 0.043 (on found edges 0.043), own-rate error 0.050 |
| Random sparse graph, 10 variables, first 1500 rows | infer | 0.03612 | 1500 rows; edges true 10, proposed 10, right 10; precision 1.00, recall 1.00, F1 1.00; skeleton F1 1.00; direction 1.00; equation error 0.036 (on found edges 0.036), own-rate error 0.046 |
Van der Pol oscillator
The Van der Pol oscillator from x = 2, y = 0, one node, at μ = 1 (smooth) and μ = 10 (relaxation): trajectory error against a SciPy Radau reference, the limit cycle's period and amplitude, the phase portrait and the observed order, for explicit and semi-implicit Euler and Runge–Kutta 4, and Adaptive's error, period and amplitude against its tolerance with the work it took. and μ = 1000 (stiff) with Stiff (Rodas4) and BDF: its trajectory, limit cycle, error against tolerance and work, beside Adaptive over the cycle's first 160 s.
Directory benchmarks/oscillators/vanDerPol/ · models mu1.kjt, mu10.kjt, mu1000.kjt · numerical reference reference.json: solve_ivp Radau with the exact Jacobian; DOP853 as a check for mu = 1 and 10; event location for the period and amplitude (SciPy 1.13.1, NumPy 2.0.2, rtol 1e-12)
- SciPy Radau reference
- Konjugate, explicit Euler, h = 2^-10 s
- Konjugate, semi-implicit Euler, h = 2^-10 s
- Konjugate, Runge–Kutta 4, h = 2^-6 s
Data table (every 17th point; all 641 are in plots/vanDerPol1Phase.csv)
| SciPy Radau reference: x | y = dx/dt | Konjugate, explicit Euler, h = 2^-10 s: x | y = dx/dt | Konjugate, semi-implicit Euler, h = 2^-10 s: x | y = dx/dt | Konjugate, Runge–Kutta 4, h = 2^-6 s: x | y = dx/dt |
|---|---|---|---|---|---|---|---|
| 2 | 0 | 2 | 0 | 2 | 0 | 2 | 0 |
| 1.458 | -0.8132 | 1.459 | -0.8132 | 1.458 | -0.8136 | 1.458 | -0.8132 |
| 0.07824 | -2.092 | 0.0796 | -2.091 | 0.07813 | -2.093 | 0.07824 | -2.092 |
| -1.988 | -0.3265 | -1.99 | -0.3272 | -1.988 | -0.3239 | -1.988 | -0.3265 |
| -1.571 | 0.7413 | -1.573 | 0.7407 | -1.57 | 0.7425 | -1.571 | 0.7413 |
| -0.3579 | 1.797 | -0.3631 | 1.791 | -0.3545 | 1.801 | -0.3579 | 1.797 |
| 1.907 | 0.8352 | 1.906 | 0.8474 | 1.908 | 0.8248 | 1.907 | 0.8352 |
| 1.673 | -0.6739 | 1.677 | -0.6724 | 1.671 | -0.6757 | 1.673 | -0.6739 |
| 0.598 | -1.543 | 0.6061 | -1.535 | 0.5922 | -1.55 | 0.598 | -1.543 |
| -1.741 | -1.486 | -1.734 | -1.513 | -1.746 | -1.466 | -1.741 | -1.486 |
| -1.765 | 0.6065 | -1.77 | 0.6041 | -1.762 | 0.6093 | -1.765 | 0.6065 |
| -0.8051 | 1.337 | -0.8152 | 1.328 | -0.7976 | 1.345 | -0.8051 | 1.337 |
| 1.478 | 2.138 | 1.462 | 2.172 | 1.49 | 2.113 | 1.478 | 2.138 |
| 1.848 | -0.5321 | 1.853 | -0.5283 | 1.844 | -0.5362 | 1.848 | -0.5321 |
| 0.9855 | -1.173 | 0.9971 | -1.163 | 0.9769 | -1.181 | 0.9855 | -1.173 |
| -1.135 | -2.573 | -1.109 | -2.594 | -1.154 | -2.558 | -1.135 | -2.573 |
| -1.918 | 0.4396 | -1.924 | 0.4329 | -1.914 | 0.4461 | -1.918 | 0.4396 |
| -1.145 | 1.041 | -1.157 | 1.031 | -1.135 | 1.049 | -1.145 | 1.041 |
| 0.7529 | 2.672 | 0.7192 | 2.667 | 0.7773 | 2.675 | 0.7529 | 2.672 |
| 1.973 | -0.3113 | 1.978 | -0.2989 | 1.969 | -0.3223 | 1.973 | -0.3113 |
| 1.287 | -0.9335 | 1.3 | -0.9241 | 1.276 | -0.9413 | 1.287 | -0.9335 |
| -0.3775 | -2.503 | -0.3402 | -2.476 | -0.4051 | -2.522 | -0.3775 | -2.503 |
| -2.005 | 0.1188 | -2.008 | 0.09523 | -2.003 | 0.1383 | -2.005 | 0.1188 |
| -1.415 | 0.8443 | -1.429 | 0.8351 | -1.404 | 0.852 | -1.415 | 0.8443 |
| 0.03723 | 2.21 | -7.28e-4 | 2.172 | 0.06578 | 2.238 | 0.03723 | 2.21 |
| 2.002 | 0.1788 | 2 | 0.2224 | 2.003 | 0.1447 | 2.002 | 0.1788 |
| 1.531 | -0.7676 | 1.546 | -0.7586 | 1.519 | -0.7753 | 1.531 | -0.7676 |
| 0.2589 | -1.903 | 0.2959 | -1.863 | 0.2307 | -1.934 | 0.2589 | -1.903 |
| -1.946 | -0.6264 | -1.935 | -0.7001 | -1.954 | -0.5705 | -1.946 | -0.6264 |
| -1.636 | 0.6986 | -1.652 | 0.6893 | -1.625 | 0.7064 | -1.636 | 0.6986 |
| -0.5131 | 1.632 | -0.5485 | 1.595 | -0.4859 | 1.661 | -0.5131 | 1.632 |
| 1.813 | 1.234 | 1.787 | 1.338 | 1.833 | 1.155 | 1.813 | 1.234 |
| 1.732 | -0.6319 | 1.748 | -0.6217 | 1.721 | -0.6406 | 1.732 | -0.6319 |
| 0.7316 | -1.409 | 0.7654 | -1.376 | 0.7056 | -1.435 | 0.7316 | -1.409 |
| -1.587 | -1.91 | -1.539 | -2.02 | -1.621 | -1.824 | -1.587 | -1.91 |
| -1.818 | 0.5612 | -1.833 | 0.5486 | -1.807 | 0.5716 | -1.818 | 0.5612 |
| -0.9213 | 1.23 | -0.9536 | 1.201 | -0.8963 | 1.253 | -0.9213 | 1.23 |
| 1.269 | 2.449 | 1.203 | 2.52 | 1.318 | 2.388 | 1.269 | 2.449 |
- SciPy Radau reference
- Konjugate, explicit Euler, h = 2^-10 s
- Konjugate, semi-implicit Euler, h = 2^-10 s
- Konjugate, Runge–Kutta 4, h = 2^-6 s
Data table (every 17th point; all 641 are in plots/vanDerPol1Trajectory.csv)
| Time (s) | SciPy Radau reference | Konjugate, explicit Euler, h = 2^-10 s | Konjugate, semi-implicit Euler, h = 2^-10 s | Konjugate, Runge–Kutta 4, h = 2^-6 s |
|---|---|---|---|---|
| 0 | 2 | 2 | 2 | 2 |
| 1.063 | 1.458 | 1.459 | 1.458 | 1.458 |
| 2.125 | 0.07824 | 0.0796 | 0.07813 | 0.07824 |
| 3.188 | -1.988 | -1.99 | -1.988 | -1.988 |
| 4.25 | -1.571 | -1.573 | -1.57 | -1.571 |
| 5.313 | -0.3579 | -0.3631 | -0.3545 | -0.3579 |
| 6.375 | 1.907 | 1.906 | 1.908 | 1.907 |
| 7.438 | 1.673 | 1.677 | 1.671 | 1.673 |
| 8.5 | 0.598 | 0.6061 | 0.5922 | 0.598 |
| 9.563 | -1.741 | -1.734 | -1.746 | -1.741 |
| 10.63 | -1.765 | -1.77 | -1.762 | -1.765 |
| 11.69 | -0.8051 | -0.8152 | -0.7976 | -0.8051 |
| 12.75 | 1.478 | 1.462 | 1.49 | 1.478 |
| 13.81 | 1.848 | 1.853 | 1.844 | 1.848 |
| 14.88 | 0.9855 | 0.9971 | 0.9769 | 0.9855 |
| 15.94 | -1.135 | -1.109 | -1.154 | -1.135 |
| 17 | -1.918 | -1.924 | -1.914 | -1.918 |
| 18.06 | -1.145 | -1.157 | -1.135 | -1.145 |
| 19.13 | 0.7529 | 0.7192 | 0.7773 | 0.7529 |
| 20.19 | 1.973 | 1.978 | 1.969 | 1.973 |
| 21.25 | 1.287 | 1.3 | 1.276 | 1.287 |
| 22.31 | -0.3775 | -0.3402 | -0.4051 | -0.3775 |
| 23.38 | -2.005 | -2.008 | -2.003 | -2.005 |
| 24.44 | -1.415 | -1.429 | -1.404 | -1.415 |
| 25.5 | 0.03723 | -7.28e-4 | 0.06578 | 0.03723 |
| 26.56 | 2.002 | 2 | 2.003 | 2.002 |
| 27.63 | 1.531 | 1.546 | 1.519 | 1.531 |
| 28.69 | 0.2589 | 0.2959 | 0.2307 | 0.2589 |
| 29.75 | -1.946 | -1.935 | -1.954 | -1.946 |
| 30.81 | -1.636 | -1.652 | -1.625 | -1.636 |
| 31.88 | -0.5131 | -0.5485 | -0.4859 | -0.5131 |
| 32.94 | 1.813 | 1.787 | 1.833 | 1.813 |
| 34 | 1.732 | 1.748 | 1.721 | 1.732 |
| 35.06 | 0.7316 | 0.7654 | 0.7056 | 0.7316 |
| 36.13 | -1.587 | -1.539 | -1.621 | -1.587 |
| 37.19 | -1.818 | -1.833 | -1.807 | -1.818 |
| 38.25 | -0.9213 | -0.9536 | -0.8963 | -0.9213 |
| 39.31 | 1.269 | 1.203 | 1.318 | 1.269 |
- Konjugate, explicit Euler
- Konjugate, semi-implicit Euler
- Konjugate, Runge–Kutta 4
Data table
| Konjugate, explicit Euler: Global step h (s) | Relative error | Konjugate, semi-implicit Euler: Global step h (s) | Relative error | Konjugate, Runge–Kutta 4: Global step h (s) | Relative error |
|---|---|---|---|---|---|
| 0.007813 | 0.02452 | 0.007813 | 0.01739 | 0.0625 | 8.34e-6 |
| 0.003906 | 0.01213 | 0.003906 | 0.0087 | 0.03125 | 5.28e-7 |
| 0.001953 | 0.006033 | 0.001953 | 0.004351 | 0.01563 | 3.32e-8 |
| 9.77e-4 | 0.003008 | 9.77e-4 | 0.002176 | 0.007813 | 2.08e-9 |
| 4.88e-4 | 0.001502 | 4.88e-4 | 0.001088 | 0.003906 | 1.30e-10 |
| 2.44e-4 | 7.50e-4 | 2.44e-4 | 5.44e-4 | 0.001953 | 8.05e-12 |
- Konjugate, Adaptive, Dormand–Prince 5(4)
- Proportional (slope 1)
Data table
| Relative tolerance | Konjugate, Adaptive, Dormand–Prince 5(4) | Proportional (slope 1) |
|---|---|---|
| 1.00e-4 | 0.001369 | 0.001369 |
| 1.00e-5 | 8.91e-5 | 1.37e-4 |
| 1.00e-6 | 4.91e-6 | 1.37e-5 |
| 1.00e-7 | 3.91e-7 | 1.37e-6 |
| 1.00e-8 | 3.63e-8 | 1.37e-7 |
| 1.00e-9 | 3.35e-9 | 1.37e-8 |
| 1.00e-10 | 3.00e-10 | 1.37e-9 |
- SciPy Radau reference
- Konjugate, explicit Euler, h = 2^-10 s
- Konjugate, semi-implicit Euler, h = 2^-10 s
- Konjugate, Runge–Kutta 4, h = 2^-8 s
Data table (every 52th point; all 2049 are in plots/vanDerPol10Phase.csv)
| SciPy Radau reference: x | y = dx/dt | Konjugate, explicit Euler, h = 2^-10 s: x | y = dx/dt | Konjugate, semi-implicit Euler, h = 2^-10 s: x | y = dx/dt | Konjugate, Runge–Kutta 4, h = 2^-8 s: x | y = dx/dt |
|---|---|---|---|---|---|---|---|
| 2 | 0 | 2 | 0 | 2 | 0 | 2 | 0 |
| 1.889 | -0.07336 | 1.889 | -0.07336 | 1.889 | -0.07336 | 1.889 | -0.07336 |
| 1.762 | -0.08334 | 1.762 | -0.08334 | 1.762 | -0.08335 | 1.762 | -0.08334 |
| 1.615 | -0.09962 | 1.615 | -0.09962 | 1.615 | -0.09964 | 1.615 | -0.09962 |
| 1.429 | -0.1338 | 1.429 | -0.1338 | 1.429 | -0.1338 | 1.429 | -0.1338 |
| 1.126 | -0.2999 | 1.126 | -0.2997 | 1.126 | -0.3004 | 1.126 | -0.2999 |
| -1.988 | 0.06721 | -1.995 | 0.06684 | -1.982 | 0.06756 | -1.988 | 0.06721 |
| -1.873 | 0.07444 | -1.881 | 0.07393 | -1.866 | 0.07494 | -1.873 | 0.07444 |
| -1.744 | 0.08499 | -1.753 | 0.08421 | -1.737 | 0.08575 | -1.744 | 0.08499 |
| -1.593 | 0.1026 | -1.603 | 0.1012 | -1.584 | 0.104 | -1.593 | 0.1026 |
| -1.4 | 0.1415 | -1.414 | 0.1378 | -1.387 | 0.1455 | -1.4 | 0.1415 |
| -1.054 | 0.3943 | -1.09 | 0.3425 | -1.014 | 0.4637 | -1.054 | 0.3943 |
| 1.974 | -0.06802 | 1.987 | -0.06726 | 1.961 | -0.06876 | 1.974 | -0.06802 |
| 1.858 | -0.07558 | 1.872 | -0.07452 | 1.843 | -0.07663 | 1.858 | -0.07558 |
| 1.726 | -0.08674 | 1.743 | -0.08511 | 1.71 | -0.08839 | 1.726 | -0.08674 |
| 1.571 | -0.1058 | 1.592 | -0.1028 | 1.552 | -0.109 | 1.571 | -0.1058 |
| 1.37 | -0.1508 | 1.398 | -0.1421 | 1.341 | -0.1608 | 1.37 | -0.1508 |
| 0.9523 | -0.5994 | 1.048 | -0.4033 | 0.8029 | -1.106 | 0.9523 | -0.5994 |
| -1.959 | 0.06886 | -1.979 | 0.0677 | -1.94 | 0.07004 | -1.959 | 0.06886 |
| -1.841 | 0.07677 | -1.864 | 0.07513 | -1.82 | 0.07845 | -1.841 | 0.07677 |
| -1.708 | 0.08862 | -1.733 | 0.08604 | -1.683 | 0.09131 | -1.708 | 0.08862 |
| -1.549 | 0.1094 | -1.58 | 0.1045 | -1.518 | 0.1149 | -1.549 | 0.1094 |
| -1.337 | 0.1623 | -1.382 | 0.147 | -1.289 | 0.1822 | -1.337 | 0.1623 |
| -0.7736 | 1.235 | -0.9978 | 0.4953 | 0.2529 | 10.03 | -0.7736 | 1.235 |
| 1.945 | -0.06974 | 1.972 | -0.06814 | 1.919 | -0.07139 | 1.945 | -0.06974 |
| 1.825 | -0.07803 | 1.855 | -0.07575 | 1.796 | -0.08041 | 1.825 | -0.07803 |
| 1.689 | -0.09063 | 1.724 | -0.08701 | 1.655 | -0.09457 | 1.689 | -0.09063 |
| 1.525 | -0.1135 | 1.568 | -0.1063 | 1.482 | -0.1218 | 1.525 | -0.1135 |
| 1.301 | -0.1767 | 1.365 | -0.1523 | 1.229 | -0.2145 | 1.301 | -0.1767 |
| 0.2391 | -5.202 | 0.934 | -0.6469 | -2.008 | 0.02618 | 0.2391 | -5.202 |
| -1.93 | 0.07066 | -1.964 | 0.06859 | -1.897 | 0.07283 | -1.93 | 0.07066 |
| -1.809 | 0.07935 | -1.847 | 0.07638 | -1.771 | 0.08255 | -1.809 | 0.07935 |
| -1.67 | 0.0928 | -1.714 | 0.08801 | -1.625 | 0.09822 | -1.67 | 0.0928 |
| -1.501 | 0.118 | -1.556 | 0.1082 | -1.444 | 0.1303 | -1.501 | 0.118 |
| -1.262 | 0.1956 | -1.347 | 0.1583 | -1.157 | 0.2698 | -1.262 | 0.1956 |
| 1.86 | 4.548 | -0.847 | 0.9269 | 1.989 | -0.06715 | 1.86 | 4.548 |
| 1.915 | -0.07162 | 1.956 | -0.06905 | 1.875 | -0.07436 | 1.915 | -0.07162 |
| 1.792 | -0.08076 | 1.838 | -0.07704 | 1.746 | -0.08487 | 1.792 | -0.08076 |
| 1.65 | -0.09514 | 1.704 | -0.08905 | 1.595 | -0.1024 | 1.65 | -0.09514 |
| 1.476 | -0.1231 | 1.544 | -0.1103 | 1.403 | -0.141 | 1.476 | -0.1231 |
- SciPy Radau reference
- Konjugate, explicit Euler, h = 2^-10 s
- Konjugate, semi-implicit Euler, h = 2^-10 s
- Konjugate, Runge–Kutta 4, h = 2^-8 s
Data table (every 52th point; all 2049 are in plots/vanDerPol10Trajectory.csv)
| Time (s) | SciPy Radau reference | Konjugate, explicit Euler, h = 2^-10 s | Konjugate, semi-implicit Euler, h = 2^-10 s | Konjugate, Runge–Kutta 4, h = 2^-8 s |
|---|---|---|---|---|
| 0 | 2 | 2 | 2 | 2 |
| 1.625 | 1.889 | 1.889 | 1.889 | 1.889 |
| 3.25 | 1.762 | 1.762 | 1.762 | 1.762 |
| 4.875 | 1.615 | 1.615 | 1.615 | 1.615 |
| 6.5 | 1.429 | 1.429 | 1.429 | 1.429 |
| 8.125 | 1.126 | 1.126 | 1.126 | 1.126 |
| 9.75 | -1.988 | -1.995 | -1.982 | -1.988 |
| 11.38 | -1.873 | -1.881 | -1.866 | -1.873 |
| 13 | -1.744 | -1.753 | -1.737 | -1.744 |
| 14.63 | -1.593 | -1.603 | -1.584 | -1.593 |
| 16.25 | -1.4 | -1.414 | -1.387 | -1.4 |
| 17.88 | -1.054 | -1.09 | -1.014 | -1.054 |
| 19.5 | 1.974 | 1.987 | 1.961 | 1.974 |
| 21.13 | 1.858 | 1.872 | 1.843 | 1.858 |
| 22.75 | 1.726 | 1.743 | 1.71 | 1.726 |
| 24.38 | 1.571 | 1.592 | 1.552 | 1.571 |
| 26 | 1.37 | 1.398 | 1.341 | 1.37 |
| 27.63 | 0.9523 | 1.048 | 0.8029 | 0.9523 |
| 29.25 | -1.959 | -1.979 | -1.94 | -1.959 |
| 30.88 | -1.841 | -1.864 | -1.82 | -1.841 |
| 32.5 | -1.708 | -1.733 | -1.683 | -1.708 |
| 34.13 | -1.549 | -1.58 | -1.518 | -1.549 |
| 35.75 | -1.337 | -1.382 | -1.289 | -1.337 |
| 37.38 | -0.7736 | -0.9978 | 0.2529 | -0.7736 |
| 39 | 1.945 | 1.972 | 1.919 | 1.945 |
| 40.63 | 1.825 | 1.855 | 1.796 | 1.825 |
| 42.25 | 1.689 | 1.724 | 1.655 | 1.689 |
| 43.88 | 1.525 | 1.568 | 1.482 | 1.525 |
| 45.5 | 1.301 | 1.365 | 1.229 | 1.301 |
| 47.13 | 0.2391 | 0.934 | -2.008 | 0.2391 |
| 48.75 | -1.93 | -1.964 | -1.897 | -1.93 |
| 50.38 | -1.809 | -1.847 | -1.771 | -1.809 |
| 52 | -1.67 | -1.714 | -1.625 | -1.67 |
| 53.63 | -1.501 | -1.556 | -1.444 | -1.501 |
| 55.25 | -1.262 | -1.347 | -1.157 | -1.262 |
| 56.88 | 1.86 | -0.847 | 1.989 | 1.86 |
| 58.5 | 1.915 | 1.956 | 1.875 | 1.915 |
| 60.13 | 1.792 | 1.838 | 1.746 | 1.792 |
| 61.75 | 1.65 | 1.704 | 1.595 | 1.65 |
| 63.38 | 1.476 | 1.544 | 1.403 | 1.476 |
- Konjugate, explicit Euler
- Konjugate, semi-implicit Euler
- Konjugate, Runge–Kutta 4
Data table
| Konjugate, explicit Euler: Global step h (s) | Relative error | Konjugate, semi-implicit Euler: Global step h (s) | Relative error | Konjugate, Runge–Kutta 4: Global step h (s) | Relative error |
|---|---|---|---|---|---|
| 0.007813 | 0.3189 | 0.007813 | 0.05563 | 0.01563 | 4.74e-5 |
| 0.003906 | 0.1541 | 0.003906 | 0.02765 | 0.007813 | 2.64e-6 |
| 0.001953 | 0.07387 | 0.001953 | 0.01379 | 0.003906 | 1.58e-7 |
| 9.77e-4 | 0.03601 | 9.77e-4 | 0.006884 | 0.001953 | 9.86e-9 |
| 4.88e-4 | 0.01776 | 4.88e-4 | 0.00344 | 9.77e-4 | 6.08e-10 |
| 2.44e-4 | 0.008819 | 2.44e-4 | 0.001719 | – | – |
- Konjugate, Adaptive, Dormand–Prince 5(4)
- Proportional (slope 1)
Data table
| Relative tolerance | Konjugate, Adaptive, Dormand–Prince 5(4) | Proportional (slope 1) |
|---|---|---|
| 1.00e-4 | 0.001391 | 0.001391 |
| 1.00e-5 | 1.27e-4 | 1.39e-4 |
| 1.00e-6 | 9.83e-6 | 1.39e-5 |
| 1.00e-7 | 1.61e-6 | 1.39e-6 |
| 1.00e-8 | 1.77e-7 | 1.39e-7 |
| 1.00e-9 | 1.25e-8 | 1.39e-8 |
| 1.00e-10 | 1.34e-9 | 1.39e-9 |
- Konjugate, Stiff, Rodas4
- Error equal to the tolerance
Data table
| Relative tolerance | Konjugate, Stiff, Rodas4 | Error equal to the tolerance |
|---|---|---|
| 1.00e-4 | 0.001955 | 1.00e-4 |
| 1.00e-5 | 7.81e-4 | 1.00e-5 |
| 1.00e-6 | 1.14e-4 | 1.00e-6 |
| 1.00e-7 | 1.87e-5 | 1.00e-7 |
| 1.00e-8 | 2.48e-6 | 1.00e-8 |
| 1.00e-9 | 3.23e-7 | 1.00e-9 |
- SciPy Radau reference
- Konjugate, Stiff, Rodas4 (relative tolerance 1e-8), h = 2^-1 s
- Konjugate, Stiff, BDF (relative tolerance 1e-8), h = 2^-1 s
Data table (every 161th point; all 6401 are in plots/vanDerPol1000Phase.csv)
| SciPy Radau reference: x | y = dx/dt | Konjugate, Stiff, Rodas4 (relative tolerance 1e-8), h = 2^-1 s: x | y = dx/dt | Konjugate, Stiff, BDF (relative tolerance 1e-8), h = 2^-1 s: x | y = dx/dt |
|---|---|---|---|---|---|
| 2 | 0 | 2 | 0 | 2 | 0 |
| 1.945 | -6.99e-4 | 1.945 | -6.99e-4 | 1.945 | -6.99e-4 |
| 1.887 | -7.37e-4 | 1.887 | -7.37e-4 | 1.887 | -7.37e-4 |
| 1.826 | -7.82e-4 | 1.826 | -7.82e-4 | 1.826 | -7.82e-4 |
| 1.761 | -8.38e-4 | 1.761 | -8.38e-4 | 1.761 | -8.38e-4 |
| 1.691 | -9.09e-4 | 1.691 | -9.09e-4 | 1.691 | -9.09e-4 |
| 1.614 | -0.001006 | 1.614 | -0.001006 | 1.614 | -0.001006 |
| 1.528 | -0.001145 | 1.528 | -0.001145 | 1.528 | -0.001145 |
| 1.427 | -0.001376 | 1.427 | -0.001376 | 1.427 | -0.001376 |
| 1.299 | -0.001887 | 1.299 | -0.001887 | 1.299 | -0.001887 |
| 1.043 | -0.01171 | 1.043 | -0.01171 | 1.043 | -0.01171 |
| -1.947 | 6.98e-4 | -1.947 | 6.98e-4 | -1.947 | 6.98e-4 |
| -1.889 | 7.36e-4 | -1.889 | 7.36e-4 | -1.889 | 7.36e-4 |
| -1.828 | 7.81e-4 | -1.828 | 7.81e-4 | -1.828 | 7.81e-4 |
| -1.763 | 8.36e-4 | -1.763 | 8.36e-4 | -1.763 | 8.36e-4 |
| -1.693 | 9.07e-4 | -1.693 | 9.07e-4 | -1.693 | 9.07e-4 |
| -1.616 | 0.001002 | -1.616 | 0.001002 | -1.616 | 0.001002 |
| -1.53 | 0.00114 | -1.53 | 0.00114 | -1.53 | 0.00114 |
| -1.43 | 0.001367 | -1.43 | 0.001367 | -1.43 | 0.001367 |
| -1.304 | 0.001864 | -1.304 | 0.001864 | -1.304 | 0.001864 |
| -1.064 | 0.008001 | -1.064 | 0.008001 | -1.064 | 0.008001 |
| 1.948 | -6.97e-4 | 1.948 | -6.97e-4 | 1.948 | -6.97e-4 |
| 1.891 | -7.34e-4 | 1.891 | -7.34e-4 | 1.891 | -7.34e-4 |
| 1.83 | -7.79e-4 | 1.83 | -7.79e-4 | 1.83 | -7.79e-4 |
| 1.765 | -8.35e-4 | 1.765 | -8.35e-4 | 1.765 | -8.35e-4 |
| 1.695 | -9.05e-4 | 1.695 | -9.05e-4 | 1.695 | -9.05e-4 |
| 1.618 | -9.99e-4 | 1.618 | -9.99e-4 | 1.618 | -9.99e-4 |
| 1.533 | -0.001136 | 1.533 | -0.001136 | 1.533 | -0.001136 |
| 1.433 | -0.001359 | 1.433 | -0.001359 | 1.433 | -0.001359 |
| 1.308 | -0.001842 | 1.308 | -0.001842 | 1.308 | -0.001842 |
| 1.08 | -0.006477 | 1.08 | -0.006477 | 1.08 | -0.006477 |
| -1.95 | 6.96e-4 | -1.95 | 6.96e-4 | -1.95 | 6.96e-4 |
| -1.892 | 7.33e-4 | -1.892 | 7.33e-4 | -1.892 | 7.33e-4 |
| -1.831 | 7.78e-4 | -1.831 | 7.78e-4 | -1.831 | 7.78e-4 |
| -1.767 | 8.33e-4 | -1.767 | 8.33e-4 | -1.767 | 8.33e-4 |
| -1.697 | 9.03e-4 | -1.697 | 9.03e-4 | -1.697 | 9.03e-4 |
| -1.621 | 9.96e-4 | -1.621 | 9.96e-4 | -1.621 | 9.96e-4 |
| -1.535 | 0.001131 | -1.535 | 0.001131 | -1.535 | 0.001131 |
| -1.436 | 0.001351 | -1.436 | 0.001351 | -1.436 | 0.001351 |
| -1.312 | 0.00182 | -1.312 | 0.00182 | -1.312 | 0.00182 |
- SciPy Radau reference
- Konjugate, Stiff, Rodas4 (relative tolerance 1e-8), h = 2^-1 s
- Konjugate, Stiff, BDF (relative tolerance 1e-8), h = 2^-1 s
Data table (every 161th point; all 6401 are in plots/vanDerPol1000Trajectory.csv)
| Time (s) | SciPy Radau reference | Konjugate, Stiff, Rodas4 (relative tolerance 1e-8), h = 2^-1 s | Konjugate, Stiff, BDF (relative tolerance 1e-8), h = 2^-1 s |
|---|---|---|---|
| 0 | 2 | 2 | 2 |
| 80.5 | 1.945 | 1.945 | 1.945 |
| 161 | 1.887 | 1.887 | 1.887 |
| 241.5 | 1.826 | 1.826 | 1.826 |
| 322 | 1.761 | 1.761 | 1.761 |
| 402.5 | 1.691 | 1.691 | 1.691 |
| 483 | 1.614 | 1.614 | 1.614 |
| 563.5 | 1.528 | 1.528 | 1.528 |
| 644 | 1.427 | 1.427 | 1.427 |
| 724.5 | 1.299 | 1.299 | 1.299 |
| 805 | 1.043 | 1.043 | 1.043 |
| 885.5 | -1.947 | -1.947 | -1.947 |
| 966 | -1.889 | -1.889 | -1.889 |
| 1,047 | -1.828 | -1.828 | -1.828 |
| 1,127 | -1.763 | -1.763 | -1.763 |
| 1,208 | -1.693 | -1.693 | -1.693 |
| 1,288 | -1.616 | -1.616 | -1.616 |
| 1,369 | -1.53 | -1.53 | -1.53 |
| 1,449 | -1.43 | -1.43 | -1.43 |
| 1,530 | -1.304 | -1.304 | -1.304 |
| 1,610 | -1.064 | -1.064 | -1.064 |
| 1,691 | 1.948 | 1.948 | 1.948 |
| 1,771 | 1.891 | 1.891 | 1.891 |
| 1,852 | 1.83 | 1.83 | 1.83 |
| 1,932 | 1.765 | 1.765 | 1.765 |
| 2,013 | 1.695 | 1.695 | 1.695 |
| 2,093 | 1.618 | 1.618 | 1.618 |
| 2,174 | 1.533 | 1.533 | 1.533 |
| 2,254 | 1.433 | 1.433 | 1.433 |
| 2,335 | 1.308 | 1.308 | 1.308 |
| 2,415 | 1.08 | 1.08 | 1.08 |
| 2,496 | -1.95 | -1.95 | -1.95 |
| 2,576 | -1.892 | -1.892 | -1.892 |
| 2,657 | -1.831 | -1.831 | -1.831 |
| 2,737 | -1.767 | -1.767 | -1.767 |
| 2,818 | -1.697 | -1.697 | -1.697 |
| 2,898 | -1.621 | -1.621 | -1.621 |
| 2,979 | -1.535 | -1.535 | -1.535 |
| 3,059 | -1.436 | -1.436 | -1.436 |
| 3,140 | -1.312 | -1.312 | -1.312 |
Checks
| Check | What it measures | Value | Threshold | Result |
|---|---|---|---|---|
mu1RelativeErrorExplicit | Van der Pol, μ = 1: largest error relative to range over 40 s, explicit Euler, h = 2^-10 s | 0.02413 | ≤ 0.031 | ✓ Pass |
mu1PeriodErrorExplicit | Van der Pol, μ = 1: limit-cycle period, relative error, explicit Euler, h = 2^-10 s | 7.16e-4 | ≤ 9.00e-4 | ✓ Pass |
mu1AmplitudeErrorExplicit | Van der Pol, μ = 1: limit-cycle amplitude, relative error, explicit Euler, h = 2^-10 s | 9.26e-4 | ≤ 0.0012 | ✓ Pass |
mu1RelativeErrorSemiImplicit | Van der Pol, μ = 1: largest error relative to range over 40 s, semi-implicit Euler, h = 2^-10 s | 0.01831 | ≤ 0.023 | ✓ Pass |
mu1PeriodErrorSemiImplicit | Van der Pol, μ = 1: limit-cycle period, relative error, semi-implicit Euler, h = 2^-10 s | 5.50e-4 | ≤ 6.90e-4 | ✓ Pass |
mu1AmplitudeErrorSemiImplicit | Van der Pol, μ = 1: limit-cycle amplitude, relative error, semi-implicit Euler, h = 2^-10 s | 3.10e-4 | ≤ 3.90e-4 | ✓ Pass |
mu1RelativeErrorRungeKutta4 | Van der Pol, μ = 1: largest error relative to range over 40 s, Runge–Kutta 4, h = 2^-6 s | 2.63e-7 | ≤ 3.30e-7 | ✓ Pass |
mu1PeriodErrorRungeKutta4 | Van der Pol, μ = 1: limit-cycle period, relative error, Runge–Kutta 4, h = 2^-6 s | 1.28e-8 | ≤ 1.60e-8 | ✓ Pass |
mu1AmplitudeErrorRungeKutta4 | Van der Pol, μ = 1: limit-cycle amplitude, relative error, Runge–Kutta 4, h = 2^-6 s | 1.84e-7 | ≤ 2.40e-7 | ✓ Pass |
mu1OrderExplicit | Van der Pol, μ = 1, explicit Euler: observed order, least-squares over 6 step sizes, 8 s | 1.006 | 0.95 to 1.1 | ✓ Pass |
mu1FinestOrderExplicit | Van der Pol, μ = 1, explicit Euler: observed order from the finest halving | 1.001 | 0.97 to 1.03 | ✓ Pass |
mu1OrderSemiImplicit | Van der Pol, μ = 1, semi-implicit Euler: observed order, least-squares over 6 step sizes, 8 s | 0.9998 | 0.95 to 1.1 | ✓ Pass |
mu1FinestOrderSemiImplicit | Van der Pol, μ = 1, semi-implicit Euler: observed order from the finest halving | 1 | 0.97 to 1.03 | ✓ Pass |
mu1OrderRungeKutta4 | Van der Pol, μ = 1, Runge–Kutta 4: observed order, least-squares over 6 step sizes, 8 s | 3.996 | 3.9 to 4.1 | ✓ Pass |
mu1FinestOrderRungeKutta4 | Van der Pol, μ = 1, Runge–Kutta 4: observed order from the finest halving | 4.013 | 3.9 to 4.1 | ✓ Pass |
mu1PeriodErrorAdaptive | Van der Pol, μ = 1: limit-cycle period, relative error, Adaptive at relative tolerance 1e-8 | 4.18e-9 | ≤ 1.00e-8 | ✓ Pass |
mu1AmplitudeErrorAdaptive | Van der Pol, μ = 1: limit-cycle amplitude, relative error, Adaptive at relative tolerance 1e-8 (the sampling's floor) | 1.81e-7 | ≤ 2.40e-7 | ✓ Pass |
mu1ToleranceSlopeAdaptive | Van der Pol, μ = 1, Adaptive: slope of log error against log tolerance over 7 tolerances from 0.0001 to 1e-10 | 1.106 | 0.85 to 1.2 | ✓ Pass |
mu1ToleranceFactorAdaptive | Van der Pol, μ = 1, Adaptive: largest trajectory error over its relative tolerance | 13.69 | ≤ 25 | ✓ Pass |
mu1ReferenceAgreement | Van der Pol, μ = 1: the Radau reference against DOP853 at the same tolerances, relative to each column's magnitude | 3.90e-12 | ≤ 1.00e-10 | ✓ Pass |
mu1ReferencePeriodAgreement | Van der Pol, μ = 1: the reference period, Radau against DOP853, relative | 7.86e-15 | ≤ 1.00e-11 | ✓ Pass |
mu10RelativeErrorExplicit | Van der Pol, μ = 10: largest error relative to range over 64 s, explicit Euler, h = 2^-10 s | 0.6893 | ≤ 0.87 | ✓ Pass |
mu10PeriodErrorExplicit | Van der Pol, μ = 10: limit-cycle period, relative error, explicit Euler, h = 2^-10 s | 0.01025 | ≤ 0.013 | ✓ Pass |
mu10AmplitudeErrorExplicit | Van der Pol, μ = 10: limit-cycle amplitude, relative error, explicit Euler, h = 2^-10 s | 0.003201 | ≤ 0.0041 | ✓ Pass |
mu10RelativeErrorSemiImplicit | Van der Pol, μ = 10: largest error relative to range over 64 s, semi-implicit Euler, h = 2^-10 s | 0.6799 | ≤ 0.85 | ✓ Pass |
mu10PeriodErrorSemiImplicit | Van der Pol, μ = 10: limit-cycle period, relative error, semi-implicit Euler, h = 2^-10 s | 0.0097 | ≤ 0.013 | ✓ Pass |
mu10AmplitudeErrorSemiImplicit | Van der Pol, μ = 10: limit-cycle amplitude, relative error, semi-implicit Euler, h = 2^-10 s | 0.002977 | ≤ 0.0038 | ✓ Pass |
mu10RelativeErrorRungeKutta4 | Van der Pol, μ = 10: largest error relative to range over 64 s, Runge–Kutta 4, h = 2^-8 s | 2.52e-5 | ≤ 3.20e-5 | ✓ Pass |
mu10PeriodErrorRungeKutta4 | Van der Pol, μ = 10: limit-cycle period, relative error, Runge–Kutta 4, h = 2^-8 s | 1.04e-7 | ≤ 1.40e-7 | ✓ Pass |
mu10AmplitudeErrorRungeKutta4 | Van der Pol, μ = 10: limit-cycle amplitude, relative error, Runge–Kutta 4, h = 2^-8 s | 1.14e-6 | ≤ 1.50e-6 | ✓ Pass |
mu10OrderExplicit | Van der Pol, μ = 10, explicit Euler: observed order, least-squares over 6 step sizes, 12 s | 1.036 | 0.95 to 1.1 | ✓ Pass |
mu10FinestOrderExplicit | Van der Pol, μ = 10, explicit Euler: observed order from the finest halving | 1.01 | 0.97 to 1.03 | ✓ Pass |
mu10OrderSemiImplicit | Van der Pol, μ = 10, semi-implicit Euler: observed order, least-squares over 6 step sizes, 12 s | 1.003 | 0.95 to 1.1 | ✓ Pass |
mu10FinestOrderSemiImplicit | Van der Pol, μ = 10, semi-implicit Euler: observed order from the finest halving | 1 | 0.97 to 1.03 | ✓ Pass |
mu10OrderRungeKutta4 | Van der Pol, μ = 10, Runge–Kutta 4: observed order, least-squares over 5 step sizes, 12 s | 4.056 | 3.9 to 4.1 | ✓ Pass |
mu10FinestOrderRungeKutta4 | Van der Pol, μ = 10, Runge–Kutta 4: observed order from the finest halving | 4.019 | 3.9 to 4.1 | ✓ Pass |
mu10PeriodErrorAdaptive | Van der Pol, μ = 10: limit-cycle period, relative error, Adaptive at relative tolerance 1e-8 | 6.65e-9 | ≤ 2.00e-8 | ✓ Pass |
mu10AmplitudeErrorAdaptive | Van der Pol, μ = 10: limit-cycle amplitude, relative error, Adaptive at relative tolerance 1e-8 (the sampling's floor) | 1.11e-6 | ≤ 1.50e-6 | ✓ Pass |
mu10ToleranceSlopeAdaptive | Van der Pol, μ = 10, Adaptive: slope of log error against log tolerance over 7 tolerances from 0.0001 to 1e-10 | 0.9932 | 0.85 to 1.2 | ✓ Pass |
mu10ToleranceFactorAdaptive | Van der Pol, μ = 10, Adaptive: largest trajectory error over its relative tolerance | 17.7 | ≤ 25 | ✓ Pass |
mu10ReferenceAgreement | Van der Pol, μ = 10: the Radau reference against DOP853 at the same tolerances, relative to each column's magnitude | 7.33e-11 | ≤ 1.00e-9 | ✓ Pass |
mu10ReferencePeriodAgreement | Van der Pol, μ = 10: the reference period, Radau against DOP853, relative | 1.12e-13 | ≤ 1.00e-11 | ✓ Pass |
mu1000StepsRodas4 | Van der Pol, μ = 1000: steps taken over 3200 s at relative tolerance 0.000001, Stiff, Rodas4 | 1,043 | ≤ 1,500 | ✓ Pass |
mu1000EvaluationRatioRodas4 | Van der Pol, μ = 1000, Stiff, Rodas4: evaluations with the exact Jacobian over those with finite differences, at relative tolerance 0.000001 | 0.7553 | ≤ 0.85 | ✓ Pass |
mu1000ErrorRatioRodas4 | Van der Pol, μ = 1000, Stiff, Rodas4: error with the exact Jacobian over that with finite differences, at relative tolerance 0.000001 | 1 | ≤ 1.2 | ✓ Pass |
mu1000ToleranceSlopeRodas4 | Van der Pol, μ = 1000: slope of log error against log tolerance, Stiff, Rodas4, over 6 tolerances | 0.7768 | 0.65 to 1.15 | ✓ Pass |
mu1000ExplicitStepRatio | Van der Pol, μ = 1000: steps Adaptive takes over the first 160 s for each step Stiff takes, at the same tolerance | 6,415 | ≥ 1,000 | ✓ Pass |
mu1000RelativeErrorRodas4 | Van der Pol, μ = 1000: largest error relative to range over 3200 s, Stiff, Rodas4 (relative tolerance 1e-8), h = 2^-1 s | 6.16e-6 | ≤ 1.00e-5 | ✓ Pass |
mu1000PeriodErrorRodas4 | Van der Pol, μ = 1000: limit-cycle period, relative error, Stiff, Rodas4 (relative tolerance 1e-8), h = 2^-1 s | 4.19e-5 | ≤ 1.00e-4 | ✓ Pass |
mu1000AmplitudeErrorRodas4 | Van der Pol, μ = 1000: limit-cycle amplitude, relative error, Stiff, Rodas4 (relative tolerance 1e-8), h = 2^-1 s | 0.01226 | ≤ 0.015 | ✓ Pass |
mu1000RelativeErrorBdf | Van der Pol, μ = 1000: largest error relative to range over 3200 s, Stiff, BDF (relative tolerance 1e-8), h = 2^-1 s | 4.93e-5 | ≤ 1.50e-4 | ✓ Pass |
mu1000PeriodErrorBdf | Van der Pol, μ = 1000: limit-cycle period, relative error, Stiff, BDF (relative tolerance 1e-8), h = 2^-1 s | 4.19e-5 | ≤ 1.00e-4 | ✓ Pass |
mu1000AmplitudeErrorBdf | Van der Pol, μ = 1000: limit-cycle amplitude, relative error, Stiff, BDF (relative tolerance 1e-8), h = 2^-1 s | 0.01226 | ≤ 0.015 | ✓ Pass |
- μ = 1000, first 160 s at the same tolerance: Adaptive took 134,716 steps, Stiff 21; on the slow flank Adaptive's steps are held near 3.3/μ by stability, whatever its tolerance.
- μ = 1000: the amplitude is read from samples 0.5 s apart, which cannot resolve the peak just after each jump (the jump lasts about 1/μ s), so its error (1.23e-2) is the sampling's, not the method's; the trajectory's error at the samples is 6.16e-6 of the range.
- μ = 1000: the amplitude is read from samples 0.5 s apart, which cannot resolve the peak just after each jump (the jump lasts about 1/μ s), so its error (1.23e-2) is the sampling's, not the method's; the trajectory's error at the samples is 4.93e-5 of the range.
All 88 result rows
| Case | Method | h (s) | Substeps | Horizon (s) | Max abs error | RMSE | Relative error | Observed order | Steps | Substeps run | Evaluations | Note |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Van der Pol, μ = 1: trajectory | explicit Euler | 9.77e-4 | 1 | 40 | 0.1292 | 0.02804 | 0.02413 | – | 40,960 | 40,960 | 81,920 | errors against SciPy Radau over 40 s |
| Van der Pol, μ = 1: limit cycle | explicit Euler | 9.77e-4 | 1 | 120 | – | – | 9.26e-4 | – | 1.23e5 | 1.23e5 | 2.46e5 | period 6.668056 s (reference 6.663287 s, error 7.16e-4); amplitude 2.010480 (reference 2.008620, error 9.26e-4) |
| Van der Pol, μ = 1: trajectory | semi-implicit Euler | 9.77e-4 | 1 | 40 | 0.09806 | 0.02146 | 0.01831 | – | 40,960 | 40,960 | 81,920 | errors against SciPy Radau over 40 s |
| Van der Pol, μ = 1: limit cycle | semi-implicit Euler | 9.77e-4 | 1 | 120 | – | – | 5.50e-4 | – | 1.23e5 | 1.23e5 | 2.46e5 | period 6.659625 s (reference 6.663287 s, error 5.50e-4); amplitude 2.007998 (reference 2.008620, error 3.10e-4) |
| Van der Pol, μ = 1: trajectory | Runge–Kutta 4 | 0.01563 | 1 | 40 | 1.41e-6 | 3.11e-7 | 2.63e-7 | – | 2,560 | 2,560 | 20,480 | errors against SciPy Radau over 40 s |
| Van der Pol, μ = 1: limit cycle | Runge–Kutta 4 | 0.01563 | 1 | 120 | – | – | 1.84e-7 | – | 7,680 | 7,680 | 61,440 | period 6.663287 s (reference 6.663287 s, error 1.28e-8); amplitude 2.008620 (reference 2.008620, error 1.84e-7) |
| Van der Pol, μ = 1: convergence | explicit Euler | 0.007813 | 1 | 8 | 0.1313 | 0.03041 | 0.02452 | – | 1,024 | 1,024 | 2,048 | |
| Van der Pol, μ = 1: convergence | explicit Euler | 0.003906 | 1 | 8 | 0.06497 | 0.01509 | 0.01213 | – | 2,048 | 2,048 | 4,096 | |
| Van der Pol, μ = 1: convergence | explicit Euler | 0.001953 | 1 | 8 | 0.0323 | 0.007513 | 0.006033 | – | 4,096 | 4,096 | 8,192 | |
| Van der Pol, μ = 1: convergence | explicit Euler | 9.77e-4 | 1 | 8 | 0.0161 | 0.003749 | 0.003008 | – | 8,192 | 8,192 | 16,380 | |
| Van der Pol, μ = 1: convergence | explicit Euler | 4.88e-4 | 1 | 8 | 0.00804 | 0.001873 | 0.001502 | – | 16,380 | 16,380 | 32,770 | |
| Van der Pol, μ = 1: convergence | explicit Euler | 2.44e-4 | 1 | 8 | 0.004017 | 9.36e-4 | 7.50e-4 | 1.006 | 32,770 | 32,770 | 65,540 | observed order: fitted 1.006; per halving 1.015, 1.008, 1.004, 1.002, 1.001 |
| Van der Pol, μ = 1: convergence | semi-implicit Euler | 0.007813 | 1 | 8 | 0.09311 | 0.0225 | 0.01739 | – | 1,024 | 1,024 | 2,048 | |
| Van der Pol, μ = 1: convergence | semi-implicit Euler | 0.003906 | 1 | 8 | 0.04658 | 0.01124 | 0.0087 | – | 2,048 | 2,048 | 4,096 | |
| Van der Pol, μ = 1: convergence | semi-implicit Euler | 0.001953 | 1 | 8 | 0.0233 | 0.005619 | 0.004351 | – | 4,096 | 4,096 | 8,192 | |
| Van der Pol, μ = 1: convergence | semi-implicit Euler | 9.77e-4 | 1 | 8 | 0.01165 | 0.002809 | 0.002176 | – | 8,192 | 8,192 | 16,380 | |
| Van der Pol, μ = 1: convergence | semi-implicit Euler | 4.88e-4 | 1 | 8 | 0.005825 | 0.001404 | 0.001088 | – | 16,380 | 16,380 | 32,770 | |
| Van der Pol, μ = 1: convergence | semi-implicit Euler | 2.44e-4 | 1 | 8 | 0.002912 | 7.02e-4 | 5.44e-4 | 0.9998 | 32,770 | 32,770 | 65,540 | observed order: fitted 1.000; per halving 0.999, 1.000, 1.000, 1.000, 1.000 |
| Van der Pol, μ = 1: convergence | Runge–Kutta 4 | 0.0625 | 1 | 8 | 4.47e-5 | 1.14e-5 | 8.34e-6 | – | 128 | 128 | 1,024 | |
| Van der Pol, μ = 1: convergence | Runge–Kutta 4 | 0.03125 | 1 | 8 | 2.83e-6 | 7.19e-7 | 5.28e-7 | – | 256 | 256 | 2,048 | |
| Van der Pol, μ = 1: convergence | Runge–Kutta 4 | 0.01563 | 1 | 8 | 1.78e-7 | 4.50e-8 | 3.32e-8 | – | 512 | 512 | 4,096 | |
| Van der Pol, μ = 1: convergence | Runge–Kutta 4 | 0.007813 | 1 | 8 | 1.11e-8 | 2.81e-9 | 2.08e-9 | – | 1,024 | 1,024 | 8,192 | |
| Van der Pol, μ = 1: convergence | Runge–Kutta 4 | 0.003906 | 1 | 8 | 6.96e-10 | 1.76e-10 | 1.30e-10 | – | 2,048 | 2,048 | 16,380 | |
| Van der Pol, μ = 1: convergence | Runge–Kutta 4 | 0.001953 | 1 | 8 | 4.31e-11 | 1.09e-11 | 8.05e-12 | 3.996 | 4,096 | 4,096 | 32,770 | observed order: fitted 3.996; per halving 3.981, 3.992, 3.997, 3.999, 4.013 |
| Van der Pol, μ = 1: trajectory against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.0001) | 0.5 | 1 | 40 | 0.007329 | 0.001514 | 0.001369 | – | 80 | 191 | 2,838 | error 13.7 times the tolerance; 191 steps, 32 rejected, 1419 evaluations of the model |
| Van der Pol, μ = 1: limit cycle against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.0001) | 0.0625 | 1 | 120 | – | – | 1.69e-7 | – | 1,920 | 1,923 | 26,920 | period error 1.62e-8, amplitude error 1.69e-7; 1923 steps, 0 rejected, 13459 evaluations of the model |
| Van der Pol, μ = 1: trajectory against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.00001) | 0.5 | 1 | 40 | 4.77e-4 | 1.05e-4 | 8.91e-5 | – | 80 | 275 | 3,954 | error 8.9 times the tolerance; 275 steps, 41 rejected, 1977 evaluations of the model |
| Van der Pol, μ = 1: limit cycle against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.00001) | 0.0625 | 1 | 120 | – | – | 1.69e-7 | – | 1,920 | 1,924 | 26,930 | period error 1.62e-8, amplitude error 1.69e-7; 1924 steps, 0 rejected, 13465 evaluations of the model |
| Van der Pol, μ = 1: trajectory against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.000001) | 0.5 | 1 | 40 | 2.63e-5 | 5.91e-6 | 4.91e-6 | – | 80 | 419 | 5,838 | error 4.9 times the tolerance; 419 steps, 54 rejected, 2919 evaluations of the model |
| Van der Pol, μ = 1: limit cycle against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.000001) | 0.0625 | 1 | 120 | – | – | 1.69e-7 | – | 1,920 | 2,172 | 30,050 | period error 1.27e-8, amplitude error 1.69e-7; 2172 steps, 12 rejected, 15025 evaluations of the model |
| Van der Pol, μ = 1: trajectory against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-7) | 0.5 | 1 | 40 | 2.09e-6 | 4.63e-7 | 3.91e-7 | – | 80 | 611 | 8,418 | error 3.9 times the tolerance; 611 steps, 77 rejected, 4209 evaluations of the model |
| Van der Pol, μ = 1: limit cycle against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-7) | 0.0625 | 1 | 120 | – | – | 1.76e-7 | – | 1,920 | 3,024 | 40,350 | period error 7.19e-10, amplitude error 1.76e-7; 3024 steps, 18 rejected, 20173 evaluations of the model |
| Van der Pol, μ = 1: trajectory against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-8) | 0.5 | 1 | 40 | 1.95e-7 | 4.25e-8 | 3.63e-8 | – | 80 | 946 | 12,470 | error 3.6 times the tolerance; 946 steps, 80 rejected, 6237 evaluations of the model |
| Van der Pol, μ = 1: limit cycle against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-8) | 0.0625 | 1 | 120 | – | – | 1.81e-7 | – | 1,920 | 3,678 | 49,410 | period error 4.18e-9, amplitude error 1.81e-7; 3678 steps, 119 rejected, 24703 evaluations of the model |
| Van der Pol, μ = 1: trajectory against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-9) | 0.5 | 1 | 40 | 1.79e-8 | 3.90e-9 | 3.35e-9 | – | 80 | 1,450 | 18,410 | error 3.3 times the tolerance; 1450 steps, 71 rejected, 9207 evaluations of the model |
| Van der Pol, μ = 1: limit cycle against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-9) | 0.0625 | 1 | 120 | – | – | 1.82e-7 | – | 1,920 | 5,520 | 71,130 | period error 4.89e-9, amplitude error 1.82e-7; 5520 steps, 87 rejected, 35563 evaluations of the model |
| Van der Pol, μ = 1: trajectory against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-10) | 0.5 | 1 | 40 | 1.61e-9 | 3.52e-10 | 3.00e-10 | – | 80 | 2,256 | 27,740 | error 3.0 times the tolerance; 2256 steps, 42 rejected, 13869 evaluations of the model; error against tolerance: fitted slope 1.106 |
| Van der Pol, μ = 1: limit cycle against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-10) | 0.0625 | 1 | 120 | – | – | 1.82e-7 | – | 1,920 | 7,864 | 99,110 | period error 4.95e-9, amplitude error 1.82e-7; 7864 steps, 75 rejected, 49555 evaluations of the model |
| Van der Pol, μ = 10: trajectory | explicit Euler | 9.77e-4 | 1 | 64 | 14.3 | 1.231 | 0.6893 | – | 65,540 | 65,540 | 1.31e5 | errors against SciPy Radau over 64 s |
| Van der Pol, μ = 10: limit cycle | explicit Euler | 9.77e-4 | 1 | 200 | – | – | 0.01025 | – | 2.05e5 | 2.05e5 | 4.10e5 | period 19.273896 s (reference 19.078370 s, error 1.02e-2); amplitude 2.020732 (reference 2.014285, error 3.20e-3) |
| Van der Pol, μ = 10: trajectory | semi-implicit Euler | 9.77e-4 | 1 | 64 | 14.24 | 1.208 | 0.6799 | – | 65,540 | 65,540 | 1.31e5 | errors against SciPy Radau over 64 s |
| Van der Pol, μ = 10: limit cycle | semi-implicit Euler | 9.77e-4 | 1 | 200 | – | – | 0.0097 | – | 2.05e5 | 2.05e5 | 4.10e5 | period 18.893313 s (reference 19.078370 s, error 9.70e-3); amplitude 2.008290 (reference 2.014285, error 2.98e-3) |
| Van der Pol, μ = 10: trajectory | Runge–Kutta 4 | 0.003906 | 1 | 64 | 7.13e-4 | 2.92e-5 | 2.52e-5 | – | 16,380 | 16,380 | 1.31e5 | errors against SciPy Radau over 64 s |
| Van der Pol, μ = 10: limit cycle | Runge–Kutta 4 | 0.003906 | 1 | 200 | – | – | 1.14e-6 | – | 51,200 | 51,200 | 4.10e5 | period 19.078372 s (reference 19.078370 s, error 1.04e-7); amplitude 2.014288 (reference 2.014285, error 1.14e-6) |
| Van der Pol, μ = 10: convergence | explicit Euler | 0.007813 | 1 | 12 | 4.546 | 0.2605 | 0.3189 | – | 1,536 | 1,536 | 3,072 | |
| Van der Pol, μ = 10: convergence | explicit Euler | 0.003906 | 1 | 12 | 2.197 | 0.1297 | 0.1541 | – | 3,072 | 3,072 | 6,144 | |
| Van der Pol, μ = 10: convergence | explicit Euler | 0.001953 | 1 | 12 | 1.053 | 0.06453 | 0.07387 | – | 6,144 | 6,144 | 12,290 | |
| Van der Pol, μ = 10: convergence | explicit Euler | 9.77e-4 | 1 | 12 | 0.5134 | 0.03216 | 0.03601 | – | 12,290 | 12,290 | 24,580 | |
| Van der Pol, μ = 10: convergence | explicit Euler | 4.88e-4 | 1 | 12 | 0.2532 | 0.01605 | 0.01776 | – | 24,580 | 24,580 | 49,150 | |
| Van der Pol, μ = 10: convergence | explicit Euler | 2.44e-4 | 1 | 12 | 0.1257 | 0.008017 | 0.008819 | 1.036 | 49,150 | 49,150 | 98,300 | observed order: fitted 1.036; per halving 1.049, 1.061, 1.037, 1.020, 1.010 |
| Van der Pol, μ = 10: convergence | semi-implicit Euler | 0.007813 | 1 | 12 | 0.7932 | 0.05445 | 0.05563 | – | 1,536 | 1,536 | 3,072 | |
| Van der Pol, μ = 10: convergence | semi-implicit Euler | 0.003906 | 1 | 12 | 0.3942 | 0.02725 | 0.02765 | – | 3,072 | 3,072 | 6,144 | |
| Van der Pol, μ = 10: convergence | semi-implicit Euler | 0.001953 | 1 | 12 | 0.1965 | 0.01363 | 0.01379 | – | 6,144 | 6,144 | 12,290 | |
| Van der Pol, μ = 10: convergence | semi-implicit Euler | 9.77e-4 | 1 | 12 | 0.09815 | 0.006819 | 0.006884 | – | 12,290 | 12,290 | 24,580 | |
| Van der Pol, μ = 10: convergence | semi-implicit Euler | 4.88e-4 | 1 | 12 | 0.04904 | 0.00341 | 0.00344 | – | 24,580 | 24,580 | 49,150 | |
| Van der Pol, μ = 10: convergence | semi-implicit Euler | 2.44e-4 | 1 | 12 | 0.02451 | 0.001705 | 0.001719 | 1.003 | 49,150 | 49,150 | 98,300 | observed order: fitted 1.003; per halving 1.009, 1.004, 1.002, 1.001, 1.000 |
| Van der Pol, μ = 10: convergence | Runge–Kutta 4 | 0.01563 | 1 | 12 | 6.75e-4 | 4.73e-5 | 4.74e-5 | – | 768 | 768 | 6,144 | |
| Van der Pol, μ = 10: convergence | Runge–Kutta 4 | 0.007813 | 1 | 12 | 3.76e-5 | 2.78e-6 | 2.64e-6 | – | 1,536 | 1,536 | 12,290 | |
| Van der Pol, μ = 10: convergence | Runge–Kutta 4 | 0.003906 | 1 | 12 | 2.25e-6 | 1.69e-7 | 1.58e-7 | – | 3,072 | 3,072 | 24,580 | |
| Van der Pol, μ = 10: convergence | Runge–Kutta 4 | 0.001953 | 1 | 12 | 1.41e-7 | 1.04e-8 | 9.86e-9 | – | 6,144 | 6,144 | 49,150 | |
| Van der Pol, μ = 10: convergence | Runge–Kutta 4 | 9.77e-4 | 1 | 12 | 8.67e-9 | 6.38e-10 | 6.08e-10 | 4.056 | 12,290 | 12,290 | 98,300 | observed order: fitted 4.056; per halving 4.165, 4.063, 4.002, 4.019 |
| Van der Pol, μ = 10: trajectory against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.0001) | 0.5 | 1 | 64 | 0.01662 | 0.001257 | 0.001391 | – | 128 | 630 | 8,454 | error 13.9 times the tolerance; 630 steps, 53 rejected, 4227 evaluations of the model |
| Van der Pol, μ = 10: limit cycle against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.0001) | 0.03125 | 1 | 200 | – | – | 2.08e-5 | – | 6,400 | 6,658 | 92,910 | period error 2.08e-5, amplitude error 7.99e-6; 6658 steps, 18 rejected, 46457 evaluations of the model |
| Van der Pol, μ = 10: trajectory against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.00001) | 0.5 | 1 | 64 | 0.001515 | 1.42e-4 | 1.27e-4 | – | 128 | 849 | 11,070 | error 12.7 times the tolerance; 849 steps, 52 rejected, 5535 evaluations of the model |
| Van der Pol, μ = 10: limit cycle against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.00001) | 0.03125 | 1 | 200 | – | – | 2.41e-6 | – | 6,400 | 6,939 | 96,550 | period error 2.41e-6, amplitude error 1.53e-6; 6939 steps, 40 rejected, 48275 evaluations of the model |
| Van der Pol, μ = 10: trajectory against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.000001) | 0.5 | 1 | 64 | 1.17e-4 | 1.43e-5 | 9.83e-6 | – | 128 | 1,223 | 15,550 | error 9.8 times the tolerance; 1223 steps, 51 rejected, 7773 evaluations of the model |
| Van der Pol, μ = 10: limit cycle against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.000001) | 0.03125 | 1 | 200 | – | – | 1.07e-6 | – | 6,400 | 7,454 | 1.03e5 | period error 5.77e-8, amplitude error 1.07e-6; 7454 steps, 57 rejected, 51467 evaluations of the model |
| Van der Pol, μ = 10: trajectory against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-7) | 0.5 | 1 | 64 | 1.92e-5 | 2.36e-6 | 1.61e-6 | – | 128 | 1,836 | 22,780 | error 16.1 times the tolerance; 1836 steps, 41 rejected, 11391 evaluations of the model |
| Van der Pol, μ = 10: limit cycle against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-7) | 0.03125 | 1 | 200 | – | – | 1.10e-6 | – | 6,400 | 8,221 | 1.12e5 | period error 1.43e-8, amplitude error 1.10e-6; 8221 steps, 41 rejected, 55973 evaluations of the model |
| Van der Pol, μ = 10: trajectory against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-8) | 0.5 | 1 | 64 | 2.11e-6 | 2.46e-7 | 1.77e-7 | – | 128 | 2,785 | 33,890 | error 17.7 times the tolerance; 2785 steps, 18 rejected, 16947 evaluations of the model |
| Van der Pol, μ = 10: limit cycle against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-8) | 0.03125 | 1 | 200 | – | – | 1.11e-6 | – | 6,400 | 15,100 | 1.94e5 | period error 6.65e-9, amplitude error 1.11e-6; 15102 steps, 36 rejected, 97229 evaluations of the model |
| Van der Pol, μ = 10: trajectory against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-9) | 0.5 | 1 | 64 | 1.50e-7 | 1.87e-8 | 1.25e-8 | – | 128 | 4,316 | 52,280 | error 12.5 times the tolerance; 4316 steps, 19 rejected, 26139 evaluations of the model |
| Van der Pol, μ = 10: limit cycle against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-9) | 0.03125 | 1 | 200 | – | – | 1.11e-6 | – | 6,400 | 17,040 | 2.18e5 | period error 8.63e-9, amplitude error 1.11e-6; 17036 steps, 32 rejected, 108809 evaluations of the model |
| Van der Pol, μ = 10: trajectory against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-10) | 0.5 | 1 | 64 | 1.60e-8 | 1.98e-9 | 1.34e-9 | – | 128 | 6,723 | 81,100 | error 13.4 times the tolerance; 6723 steps, 14 rejected, 40551 evaluations of the model; error against tolerance: fitted slope 0.993 |
| Van der Pol, μ = 10: limit cycle against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-10) | 0.03125 | 1 | 200 | – | – | 1.11e-6 | – | 6,400 | 25,790 | 3.23e5 | period error 8.86e-9, amplitude error 1.11e-6; 25788 steps, 41 rejected, 161375 evaluations of the model |
| Van der Pol, μ = 1000: tolerance | Stiff, Rodas4 (relative tolerance 0.0001) | 16 | 1 | 3,200 | 3.60e-4 | 3.45e-5 | 0.001955 | – | 200 | 475 | 5,932 | 475 steps, 23 rejected, 2966 evaluations of the model, 475 Jacobians |
| Van der Pol, μ = 1000: tolerance | Stiff, Rodas4 (relative tolerance 0.00001) | 16 | 1 | 3,200 | 9.80e-5 | 9.62e-6 | 7.81e-4 | – | 200 | 676 | 8,404 | 676 steps, 29 rejected, 4202 evaluations of the model, 676 Jacobians |
| Van der Pol, μ = 1000: tolerance | Stiff, Rodas4 (relative tolerance 0.000001) | 16 | 1 | 3,200 | 1.46e-5 | 1.47e-6 | 1.14e-4 | – | 200 | 1,043 | 12,880 | 1043 steps, 36 rejected, 6439 evaluations of the model, 1043 Jacobians |
| Van der Pol, μ = 1000: the exact Jacobian against finite differences | Stiff, Rodas4 (relative tolerance 0.000001, finite-difference Jacobian) | 16 | 1 | 3,200 | 1.46e-5 | 1.47e-6 | 1.14e-4 | – | 200 | 1,043 | 17,050 | 1043 steps and 8525 evaluations, against 1043 and 6439 with the exact Jacobian, whose error is 1.14e-4 |
| Van der Pol, μ = 1000: tolerance | Stiff, Rodas4 (relative tolerance 1e-7) | 16 | 1 | 3,200 | 2.36e-6 | 2.47e-7 | 1.87e-5 | – | 200 | 1,731 | 21,020 | 1731 steps, 25 rejected, 10512 evaluations of the model, 1731 Jacobians |
| Van der Pol, μ = 1000: tolerance | Stiff, Rodas4 (relative tolerance 1e-8) | 16 | 1 | 3,200 | 3.28e-7 | 3.57e-8 | 2.48e-6 | – | 200 | 3,087 | 37,160 | 3087 steps, 11 rejected, 18578 evaluations of the model, 3087 Jacobians |
| Van der Pol, μ = 1000: tolerance | Stiff, Rodas4 (relative tolerance 1e-9) | 16 | 1 | 3,200 | 4.01e-8 | 4.52e-9 | 3.23e-7 | – | 200 | 5,816 | 69,900 | 5816 steps, 11 rejected, 34952 evaluations of the model, 5816 Jacobians |
| Van der Pol, μ = 1000: first 160 s | Stiff, Rodas4 (relative tolerance 0.000001) | 16 | 1 | 160 | 2.21e-10 | 8.02e-11 | 1.97e-9 | – | 10 | 21 | 284 | 21 steps, 3 rejected, 142 evaluations of the model |
| Van der Pol, μ = 1000: first 160 s | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.000001) | 16 | 1 | 160 | 4.93e-7 | 2.27e-7 | 6.69e-4 | – | 10 | 1.35e5 | 1.62e6 | 134716 steps, 8 rejected, 808355 evaluations of the model |
| Van der Pol, μ = 1000: trajectory | Stiff, Rodas4 (relative tolerance 1e-8) | 0.5 | 1 | 3,200 | 1.46e-6 | 1.29e-8 | 6.16e-6 | – | 6,400 | 9,017 | 1.08e5 | errors against SciPy Radau over 3200 s |
| Van der Pol, μ = 1000: limit cycle | Stiff, Rodas4 (relative tolerance 1e-8) | 0.5 | 1 | 8,000 | – | – | 0.01226 | – | 16,000 | 23,800 | 2.86e5 | period 1614.333559 s (reference 1614.401126 s, error 4.19e-5); amplitude 1.975558 (reference 2.000073, error 1.23e-2) |
| Van der Pol, μ = 1000: trajectory | Stiff, BDF (relative tolerance 1e-8) | 0.5 | 1 | 3,200 | 1.17e-5 | 1.04e-7 | 4.93e-5 | – | 6,400 | 11,260 | 67,590 | errors against SciPy Radau over 3200 s |
| Van der Pol, μ = 1000: limit cycle | Stiff, BDF (relative tolerance 1e-8) | 0.5 | 1 | 8,000 | – | – | 0.01226 | – | 16,000 | 30,300 | 1.83e5 | period 1614.333559 s (reference 1614.401126 s, error 4.19e-5); amplitude 1.975559 (reference 2.000073, error 1.23e-2) |
Robertson chemical kinetics
Robertson's stiff kinetics from A = 1 to 1e11 s, as one node and as two, under Stiff (Rodas4), Rodas5P and BDF with an absolute tolerance per species: the concentrations at Hairer and Wanner's checkpoints against a SciPy Radau reference, the total A + B + C kept at 1, no concentration below zero, the steps it takes, the two-node model against the one-node model, and Adaptive over the first 40 s beside it.
Directory benchmarks/chemistry/robertson/ · models oneNode.kjt, twoNodes.kjt · numerical reference reference.json: solve_ivp Radau with the exact Jacobian; BDF as a check; the IVP test set's published values at 1e11 (SciPy 1.13.1, NumPy 2.0.2, rtol 1e-12)
- SciPy Radau, A
- SciPy Radau, 1e4 B
- SciPy Radau, C
- Konjugate, Stiff, Rodas4 (relative tolerance 1e-8), A
- Konjugate, Stiff, Rodas4 (relative tolerance 1e-8), 1e4 B
- Konjugate, Stiff, Rodas4 (relative tolerance 1e-8), C
Data table
| Time (s) | SciPy Radau, A | SciPy Radau, 1e4 B | SciPy Radau, C | Konjugate, Stiff, Rodas4 (relative tolerance 1e-8), A | Konjugate, Stiff, Rodas4 (relative tolerance 1e-8), 1e4 B | Konjugate, Stiff, Rodas4 (relative tolerance 1e-8), C |
|---|---|---|---|---|---|---|
| 0.4 | 0.9852 | 0.3386 | 0.01479 | 0.9852 | 0.3386 | 0.01479 |
| 4 | 0.9055 | 0.224 | 0.09446 | 0.9055 | 0.224 | 0.09446 |
| 40 | 0.7158 | 0.09186 | 0.2842 | 0.7158 | 0.09186 | 0.2842 |
| 400 | 0.4505 | 0.03223 | 0.5495 | 0.4505 | 0.03223 | 0.5495 |
| 4,000 | 0.1832 | 0.008942 | 0.8168 | 0.1832 | 0.008942 | 0.8168 |
| 40,000 | 0.03898 | 0.001622 | 0.961 | 0.03898 | 0.001622 | 0.961 |
| 4.00e5 | 0.004938 | 1.98e-4 | 0.9951 | 0.004938 | 1.98e-4 | 0.9951 |
| 4.00e6 | 5.17e-4 | 2.07e-5 | 0.9995 | 5.17e-4 | 2.07e-5 | 0.9995 |
| 4.00e7 | 5.20e-5 | 2.08e-6 | 0.9999 | 5.20e-5 | 2.08e-6 | 0.9999 |
| 4.00e8 | 5.21e-6 | 2.08e-7 | 1 | 5.21e-6 | 2.08e-7 | 1 |
| 4.00e9 | 5.21e-7 | 2.08e-8 | 1 | 5.21e-7 | 2.08e-8 | 1 |
| 1.00e11 | 2.08e-8 | 8.33e-10 | 1 | 2.08e-8 | 8.33e-10 | 1 |
Checks
| Check | What it measures | Value | Threshold | Result |
|---|---|---|---|---|
relativeErrorAOneNode | Robertson, one node, Stiff: largest relative error of A at the checkpoints 0.4 s to 1e11 s | 4.80e-7 | ≤ 2.00e-6 | ✓ Pass |
relativeErrorBOneNode | Robertson, one node, Stiff: largest relative error of B at the checkpoints 0.4 s to 1e11 s | 4.80e-7 | ≤ 2.00e-6 | ✓ Pass |
relativeErrorCOneNode | Robertson, one node, Stiff: largest relative error of C at the checkpoints 0.4 s to 1e11 s | 1.12e-9 | ≤ 1.00e-8 | ✓ Pass |
conservationOneNode | Robertson, one node, Stiff: largest |A + B + C - 1| at the checkpoints and every 1e9 s to 1e11 s | 3.55e-15 | ≤ 1.00e-13 | ✓ Pass |
lowestConcentrationOneNode | Robertson, one node, Stiff: the lowest concentration reached (negative would be unphysical) | 0 | ≥ -1.00e-18 | ✓ Pass |
stepsOneNode | Robertson, one node, Stiff: steps taken from 0 to 1e11 s | 1,311 | ≤ 2,000 | ✓ Pass |
relativeErrorATwoNodes | Robertson, two nodes, Stiff: largest relative error of A at the checkpoints 0.4 s to 1e11 s | 4.80e-7 | ≤ 2.00e-6 | ✓ Pass |
relativeErrorBTwoNodes | Robertson, two nodes, Stiff: largest relative error of B at the checkpoints 0.4 s to 1e11 s | 4.80e-7 | ≤ 2.00e-6 | ✓ Pass |
relativeErrorCTwoNodes | Robertson, two nodes, Stiff: largest relative error of C at the checkpoints 0.4 s to 1e11 s | 1.12e-9 | ≤ 1.00e-8 | ✓ Pass |
conservationTwoNodes | Robertson, two nodes, Stiff: largest |A + B + C - 1| at the checkpoints and every 1e9 s to 1e11 s | 3.11e-15 | ≤ 1.00e-13 | ✓ Pass |
lowestConcentrationTwoNodes | Robertson, two nodes, Stiff: the lowest concentration reached (negative would be unphysical) | 0 | ≥ -1.00e-18 | ✓ Pass |
stepsTwoNodes | Robertson, two nodes, Stiff: steps taken from 0 to 1e11 s | 1,311 | ≤ 2,000 | ✓ Pass |
relativeErrorAOneNodeBdf | Robertson, one node, BDF: largest relative error of A at the checkpoints 0.4 s to 1e11 s | 7.40e-7 | ≤ 2.00e-6 | ✓ Pass |
relativeErrorBOneNodeBdf | Robertson, one node, BDF: largest relative error of B at the checkpoints 0.4 s to 1e11 s | 7.40e-7 | ≤ 2.00e-6 | ✓ Pass |
relativeErrorCOneNodeBdf | Robertson, one node, BDF: largest relative error of C at the checkpoints 0.4 s to 1e11 s | 1.05e-9 | ≤ 1.00e-8 | ✓ Pass |
conservationOneNodeBdf | Robertson, one node, BDF: largest |A + B + C - 1| at the checkpoints and every 1e9 s to 1e11 s | 8.88e-16 | ≤ 1.00e-13 | ✓ Pass |
lowestConcentrationOneNodeBdf | Robertson, one node, BDF: the lowest concentration reached (negative would be unphysical) | 0 | ≥ -1.00e-18 | ✓ Pass |
stepsOneNodeBdf | Robertson, one node, BDF: steps taken from 0 to 1e11 s | 2,754 | ≤ 3,500 | ✓ Pass |
relativeErrorATwoNodesBdf | Robertson, two nodes, BDF: largest relative error of A at the checkpoints 0.4 s to 1e11 s | 6.99e-7 | ≤ 2.00e-6 | ✓ Pass |
relativeErrorBTwoNodesBdf | Robertson, two nodes, BDF: largest relative error of B at the checkpoints 0.4 s to 1e11 s | 6.99e-7 | ≤ 2.00e-6 | ✓ Pass |
relativeErrorCTwoNodesBdf | Robertson, two nodes, BDF: largest relative error of C at the checkpoints 0.4 s to 1e11 s | 1.05e-9 | ≤ 1.00e-8 | ✓ Pass |
conservationTwoNodesBdf | Robertson, two nodes, BDF: largest |A + B + C - 1| at the checkpoints and every 1e9 s to 1e11 s | 2.66e-15 | ≤ 1.00e-13 | ✓ Pass |
lowestConcentrationTwoNodesBdf | Robertson, two nodes, BDF: the lowest concentration reached (negative would be unphysical) | 0 | ≥ -1.00e-18 | ✓ Pass |
stepsTwoNodesBdf | Robertson, two nodes, BDF: steps taken from 0 to 1e11 s | 2,754 | ≤ 3,500 | ✓ Pass |
relativeErrorAOneNodeRodas5p | Robertson, one node, Rodas5P: largest relative error of A at the checkpoints 0.4 s to 1e11 s | 8.24e-7 | ≤ 2.00e-6 | ✓ Pass |
relativeErrorBOneNodeRodas5p | Robertson, one node, Rodas5P: largest relative error of B at the checkpoints 0.4 s to 1e11 s | 8.24e-7 | ≤ 2.00e-6 | ✓ Pass |
relativeErrorCOneNodeRodas5p | Robertson, one node, Rodas5P: largest relative error of C at the checkpoints 0.4 s to 1e11 s | 1.85e-9 | ≤ 1.00e-8 | ✓ Pass |
conservationOneNodeRodas5p | Robertson, one node, Rodas5P: largest |A + B + C - 1| at the checkpoints and every 1e9 s to 1e11 s | 1.78e-15 | ≤ 1.00e-13 | ✓ Pass |
lowestConcentrationOneNodeRodas5p | Robertson, one node, Rodas5P: the lowest concentration reached (negative would be unphysical) | 0 | ≥ -1.00e-18 | ✓ Pass |
stepsOneNodeRodas5p | Robertson, one node, Rodas5P: steps taken from 0 to 1e11 s | 611 | ≤ 1,000 | ✓ Pass |
relativeErrorATwoNodesRodas5p | Robertson, two nodes, Rodas5P: largest relative error of A at the checkpoints 0.4 s to 1e11 s | 8.24e-7 | ≤ 2.00e-6 | ✓ Pass |
relativeErrorBTwoNodesRodas5p | Robertson, two nodes, Rodas5P: largest relative error of B at the checkpoints 0.4 s to 1e11 s | 8.24e-7 | ≤ 2.00e-6 | ✓ Pass |
relativeErrorCTwoNodesRodas5p | Robertson, two nodes, Rodas5P: largest relative error of C at the checkpoints 0.4 s to 1e11 s | 1.85e-9 | ≤ 1.00e-8 | ✓ Pass |
conservationTwoNodesRodas5p | Robertson, two nodes, Rodas5P: largest |A + B + C - 1| at the checkpoints and every 1e9 s to 1e11 s | 2.44e-15 | ≤ 1.00e-13 | ✓ Pass |
lowestConcentrationTwoNodesRodas5p | Robertson, two nodes, Rodas5P: the lowest concentration reached (negative would be unphysical) | 0 | ≥ -1.00e-18 | ✓ Pass |
stepsTwoNodesRodas5p | Robertson, two nodes, Rodas5P: steps taken from 0 to 1e11 s | 611 | ≤ 1,000 | ✓ Pass |
evaluationRatioRodas4 | Robertson, one node, Stiff: evaluations of the model to 1e11 s with the exact Jacobian over those with finite differences | 0.6642 | ≤ 0.75 | ✓ Pass |
errorRatioRodas4 | Robertson, one node, Stiff: the largest error at the checkpoints with the exact Jacobian over that with finite differences | 0.9454 | ≤ 1.2 | ✓ Pass |
evaluationRatioBdf | Robertson, one node, BDF: evaluations of the model to 1e11 s with the exact Jacobian over those with finite differences | 0.9887 | ≤ 1 | ✓ Pass |
errorRatioBdf | Robertson, one node, BDF: the largest error at the checkpoints with the exact Jacobian over that with finite differences | 1.058 | ≤ 1.2 | ✓ Pass |
stepRatioRodas5p | Robertson, one node: steps Rodas4 takes to 1e11 s for each step Rodas5P takes, at the same tolerance | 2.146 | ≥ 1.8 | ✓ Pass |
splitDifference | Robertson, Stiff: the two-node model against the one-node model at every checkpoint, relative to the reference, largest over species | 4.91e-11 | ≤ 1.00e-6 | ✓ Pass |
splitDifferenceBdf | Robertson, BDF: the two-node model against the one-node model at every checkpoint, relative to the reference, largest over species | 4.08e-8 | ≤ 1.00e-6 | ✓ Pass |
explicitStepRatio | Robertson: steps Adaptive takes over the first 40 s for each step Stiff takes, at the same tolerances | 317.4 | ≥ 100 | ✓ Pass |
referenceAgreement | The Radau reference against BDF at the same tolerances, relative, worst species and checkpoint | 8.57e-11 | ≤ 1.00e-9 | ✓ Pass |
testSetAgreement | The Radau reference at 1e11 against the IVP test set's published values, relative, worst species | 6.49e-13 | ≤ 1.00e-10 | ✓ Pass |
- Stiff, one node: 1,311 steps, 7,867 evaluations of the model (each Jacobian one evaluation per colour, three here), 1311 Jacobians and 1311 factorisations, from 0 to 1e11 s at relative tolerance 1e-8.
- Stiff, two nodes: 1,311 steps, 7,867 evaluations of the model (each Jacobian one evaluation per colour, three here), 1311 Jacobians and 1311 factorisations, from 0 to 1e11 s at relative tolerance 1e-8.
- BDF, one node: 2,754 steps, 9,186 evaluations of the model (each Jacobian one evaluation per colour, three here), 37 Jacobians and 502 factorisations, from 0 to 1e11 s at relative tolerance 1e-8.
- BDF, two nodes: 2,754 steps, 9,180 evaluations of the model (each Jacobian one evaluation per colour, three here), 37 Jacobians and 503 factorisations, from 0 to 1e11 s at relative tolerance 1e-8.
- Rodas5P, one node: 611 steps, 4,910 evaluations of the model (each Jacobian one evaluation per colour, three here), 611 Jacobians and 614 factorisations, from 0 to 1e11 s at relative tolerance 1e-8.
- Rodas5P, two nodes: 611 steps, 4,910 evaluations of the model (each Jacobian one evaluation per colour, three here), 611 Jacobians and 614 factorisations, from 0 to 1e11 s at relative tolerance 1e-8.
- First 40 s at the same tolerances: Adaptive took 34,595 steps, Stiff 109. To 1e11 s Adaptive would need about 9e+13 steps, held near 1e-3 s by stability.
All 76 result rows
| Case | Method | h (s) | Substeps | Horizon (s) | Relative error | Conservation error | Steps | Substeps run | Evaluations | Note |
|---|---|---|---|---|---|---|---|---|---|---|
| Robertson, one node: t = 4.0e-1 s | Stiff, Rodas4 (relative tolerance 1e-8) | 0.4 | 1 | 0.4 | 8.56e-10 | 2.22e-15 | 1 | 166 | 2,991 | A 0.9851721139, B 0.00003386395376, C 0.01479402219; 166 steps, 0 rejected |
| Robertson, one node: t = 4.0e+0 s | Stiff, Rodas4 (relative tolerance 1e-8) | 4 | 1 | 4 | 6.60e-10 | 2.22e-15 | 1 | 310 | 5,583 | A 0.9055186786, B 0.00002240475686, C 0.09445891666; 310 steps, 0 rejected |
| Robertson, one node: t = 4.0e+1 s | Stiff, Rodas4 (relative tolerance 1e-8) | 40 | 1 | 40 | 1.51e-9 | 2.44e-15 | 1 | 434 | 7,815 | A 0.7158270684, B 0.000009185534751, C 0.2841637461; 434 steps, 0 rejected |
| Robertson, one node: t = 4.0e+2 s | Stiff, Rodas4 (relative tolerance 1e-8) | 400 | 1 | 400 | 2.27e-9 | 1.78e-15 | 1 | 517 | 9,309 | A 0.4505186679, B 0.000003222901434, C 0.5494781092; 517 steps, 0 rejected |
| Robertson, one node: t = 4.0e+3 s | Stiff, Rodas4 (relative tolerance 1e-8) | 4,000 | 1 | 4,000 | 1.54e-9 | 2.66e-15 | 1 | 614 | 11,060 | A 0.1832022575, B 8.942371239e-7, C 0.8167968482; 614 steps, 0 rejected |
| Robertson, one node: t = 4.0e+4 s | Stiff, Rodas4 (relative tolerance 1e-8) | 40,000 | 1 | 40,000 | 5.40e-10 | 2.66e-15 | 1 | 727 | 13,090 | A 0.03898337707, B 1.621768315e-7, C 0.9610164608; 727 steps, 0 rejected |
| Robertson, one node: t = 4.0e+5 s | Stiff, Rodas4 (relative tolerance 1e-8) | 4.00e5 | 1 | 4.00e5 | 3.28e-10 | 2.66e-15 | 1 | 852 | 15,340 | A 0.004938274523, B 1.984994089e-8, C 0.9950617056; 852 steps, 0 rejected |
| Robertson, one node: t = 4.0e+6 s | Stiff, Rodas4 (relative tolerance 1e-8) | 4.00e6 | 1 | 4.00e6 | 6.52e-10 | 3.55e-15 | 1 | 981 | 17,660 | A 0.0005168096018, B 2.068294493e-9, C 0.9994831883; 981 steps, 0 rejected |
| Robertson, one node: t = 4.0e+7 s | Stiff, Rodas4 (relative tolerance 1e-8) | 4.00e7 | 1 | 4.00e7 | 9.80e-10 | 3.11e-15 | 1 | 1,104 | 19,880 | A 0.00005203071849, B 2.081335734e-10, C 0.9999479691; 1104 steps, 0 rejected |
| Robertson, one node: t = 4.0e+8 s | Stiff, Rodas4 (relative tolerance 1e-8) | 4.00e8 | 1 | 4.00e8 | 3.02e-9 | 1.78e-15 | 1 | 1,202 | 21,640 | A 0.000005207702119, B 2.083091566e-11, C 0.9999947923; 1202 steps, 0 rejected |
| Robertson, one node: t = 4.0e+9 s | Stiff, Rodas4 (relative tolerance 1e-8) | 4.00e9 | 1 | 4.00e9 | 2.21e-8 | 2.22e-15 | 1 | 1,265 | 22,770 | A 5.208276727e-7, B 2.083311763e-12, C 0.9999994792; 1265 steps, 0 rejected |
| Robertson, one node: t = 1.0e+11 s | Stiff, Rodas4 (relative tolerance 1e-8) | 1.00e11 | 1 | 1.00e11 | 4.80e-7 | 3.11e-15 | 1 | 1,311 | 23,600 | A 2.083341151e-8, B 8.333364774e-14, C 0.9999999792; 1311 steps, 0 rejected |
| Robertson, two nodes: t = 4.0e-1 s | Stiff, Rodas4 (relative tolerance 1e-8) | 0.4 | 1 | 0.4 | 8.56e-10 | 2.22e-15 | 1 | 332 | 3,988 | A 0.9851721139, B 0.00003386395376, C 0.01479402219; 166 steps, 0 rejected |
| Robertson, two nodes: t = 4.0e+0 s | Stiff, Rodas4 (relative tolerance 1e-8) | 4 | 1 | 4 | 6.60e-10 | 2.00e-15 | 1 | 620 | 7,444 | A 0.9055186786, B 0.00002240475686, C 0.09445891666; 310 steps, 0 rejected |
| Robertson, two nodes: t = 4.0e+1 s | Stiff, Rodas4 (relative tolerance 1e-8) | 40 | 1 | 40 | 1.51e-9 | 2.22e-15 | 1 | 868 | 10,420 | A 0.7158270684, B 0.000009185534751, C 0.2841637461; 434 steps, 0 rejected |
| Robertson, two nodes: t = 4.0e+2 s | Stiff, Rodas4 (relative tolerance 1e-8) | 400 | 1 | 400 | 2.27e-9 | 2.00e-15 | 1 | 1,034 | 12,410 | A 0.4505186679, B 0.000003222901434, C 0.5494781092; 517 steps, 0 rejected |
| Robertson, two nodes: t = 4.0e+3 s | Stiff, Rodas4 (relative tolerance 1e-8) | 4,000 | 1 | 4,000 | 1.54e-9 | 1.78e-15 | 1 | 1,228 | 14,740 | A 0.1832022575, B 8.942371239e-7, C 0.8167968482; 614 steps, 0 rejected |
| Robertson, two nodes: t = 4.0e+4 s | Stiff, Rodas4 (relative tolerance 1e-8) | 40,000 | 1 | 40,000 | 5.40e-10 | 1.33e-15 | 1 | 1,454 | 17,450 | A 0.03898337707, B 1.621768315e-7, C 0.9610164608; 727 steps, 0 rejected |
| Robertson, two nodes: t = 4.0e+5 s | Stiff, Rodas4 (relative tolerance 1e-8) | 4.00e5 | 1 | 4.00e5 | 3.28e-10 | 1.11e-15 | 1 | 1,704 | 20,450 | A 0.004938274523, B 1.984994089e-8, C 0.9950617056; 852 steps, 0 rejected |
| Robertson, two nodes: t = 4.0e+6 s | Stiff, Rodas4 (relative tolerance 1e-8) | 4.00e6 | 1 | 4.00e6 | 6.52e-10 | 1.55e-15 | 1 | 1,962 | 23,550 | A 0.0005168096018, B 2.068294493e-9, C 0.9994831883; 981 steps, 0 rejected |
| Robertson, two nodes: t = 4.0e+7 s | Stiff, Rodas4 (relative tolerance 1e-8) | 4.00e7 | 1 | 4.00e7 | 9.80e-10 | 1.78e-15 | 1 | 2,208 | 26,500 | A 0.00005203071849, B 2.081335734e-10, C 0.9999479691; 1104 steps, 0 rejected |
| Robertson, two nodes: t = 4.0e+8 s | Stiff, Rodas4 (relative tolerance 1e-8) | 4.00e8 | 1 | 4.00e8 | 3.02e-9 | 2.00e-15 | 1 | 2,404 | 28,850 | A 0.000005207702119, B 2.083091566e-11, C 0.9999947923; 1202 steps, 0 rejected |
| Robertson, two nodes: t = 4.0e+9 s | Stiff, Rodas4 (relative tolerance 1e-8) | 4.00e9 | 1 | 4.00e9 | 2.21e-8 | 1.33e-15 | 1 | 2,530 | 30,360 | A 5.208276727e-7, B 2.083311763e-12, C 0.9999994792; 1265 steps, 0 rejected |
| Robertson, two nodes: t = 1.0e+11 s | Stiff, Rodas4 (relative tolerance 1e-8) | 1.00e11 | 1 | 1.00e11 | 4.80e-7 | 1.33e-15 | 1 | 2,622 | 31,470 | A 2.083341151e-8, B 8.333364774e-14, C 0.9999999792; 1311 steps, 0 rejected |
| Robertson, one node: t = 4.0e-1 s | Stiff, BDF (relative tolerance 1e-8) | 0.4 | 1 | 0.4 | 3.25e-10 | 2.22e-16 | 1 | 332 | 2,898 | A 0.9851721139, B 0.00003386395379, C 0.01479402218; 332 steps, 2 rejected |
| Robertson, one node: t = 4.0e+0 s | Stiff, BDF (relative tolerance 1e-8) | 4 | 1 | 4 | 1.05e-9 | 0 | 1 | 417 | 3,684 | A 0.9055186787, B 0.00002240475689, C 0.09445891656; 417 steps, 2 rejected |
| Robertson, one node: t = 4.0e+1 s | Stiff, BDF (relative tolerance 1e-8) | 40 | 1 | 40 | 9.44e-10 | 6.66e-16 | 1 | 605 | 5,691 | A 0.7158270689, B 0.000009185534773, C 0.2841637455; 605 steps, 2 rejected |
| Robertson, one node: t = 4.0e+2 s | Stiff, BDF (relative tolerance 1e-8) | 400 | 1 | 400 | 1.12e-9 | 1.11e-16 | 1 | 822 | 8,022 | A 0.4505186688, B 0.000003222901445, C 0.5494781083; 822 steps, 2 rejected |
| Robertson, one node: t = 4.0e+3 s | Stiff, BDF (relative tolerance 1e-8) | 4,000 | 1 | 4,000 | 1.79e-9 | 1.11e-16 | 1 | 1,048 | 10,420 | A 0.1832022580, B 8.942371269e-7, C 0.8167968477; 1048 steps, 2 rejected |
| Robertson, one node: t = 4.0e+4 s | Stiff, BDF (relative tolerance 1e-8) | 40,000 | 1 | 40,000 | 2.77e-9 | 8.88e-16 | 1 | 1,299 | 13,000 | A 0.03898337719, B 1.621768320e-7, C 0.9610164606; 1299 steps, 2 rejected |
| Robertson, one node: t = 4.0e+5 s | Stiff, BDF (relative tolerance 1e-8) | 4.00e5 | 1 | 4.00e5 | 3.30e-9 | 2.22e-16 | 1 | 1,589 | 16,310 | A 0.004938274537, B 1.984994095e-8, C 0.9950617056; 1589 steps, 2 rejected |
| Robertson, one node: t = 4.0e+6 s | Stiff, BDF (relative tolerance 1e-8) | 4.00e6 | 1 | 4.00e6 | 3.65e-9 | 6.66e-16 | 1 | 1,876 | 19,060 | A 0.0005168096034, B 2.068294499e-9, C 0.9994831883; 1876 steps, 2 rejected |
| Robertson, one node: t = 4.0e+7 s | Stiff, BDF (relative tolerance 1e-8) | 4.00e7 | 1 | 4.00e7 | 4.87e-9 | 0 | 1 | 2,155 | 21,690 | A 0.00005203071869, B 2.081335742e-10, C 0.9999479691; 2155 steps, 2 rejected |
| Robertson, one node: t = 4.0e+8 s | Stiff, BDF (relative tolerance 1e-8) | 4.00e8 | 1 | 4.00e8 | 1.12e-8 | 0 | 1 | 2,399 | 24,040 | A 0.000005207702162, B 2.083091583e-11, C 0.9999947923; 2399 steps, 2 rejected |
| Robertson, one node: t = 4.0e+9 s | Stiff, BDF (relative tolerance 1e-8) | 4.00e9 | 1 | 4.00e9 | 5.04e-8 | 1.11e-16 | 1 | 2,584 | 25,890 | A 5.208276874e-7, B 2.083311822e-12, C 0.9999994792; 2584 steps, 2 rejected |
| Robertson, one node: t = 1.0e+11 s | Stiff, BDF (relative tolerance 1e-8) | 1.00e11 | 1 | 1.00e11 | 7.40e-7 | 4.44e-16 | 1 | 2,754 | 27,560 | A 2.083341690e-8, B 8.333366933e-14, C 0.9999999792; 2754 steps, 2 rejected |
| Robertson, two nodes: t = 4.0e-1 s | Stiff, BDF (relative tolerance 1e-8) | 0.4 | 1 | 0.4 | 3.25e-10 | 2.22e-16 | 1 | 664 | 3,864 | A 0.9851721139, B 0.00003386395379, C 0.01479402218; 332 steps, 2 rejected |
| Robertson, two nodes: t = 4.0e+0 s | Stiff, BDF (relative tolerance 1e-8) | 4 | 1 | 4 | 1.05e-9 | 0 | 1 | 834 | 4,912 | A 0.9055186787, B 0.00002240475689, C 0.09445891656; 417 steps, 2 rejected |
| Robertson, two nodes: t = 4.0e+1 s | Stiff, BDF (relative tolerance 1e-8) | 40 | 1 | 40 | 9.44e-10 | 2.22e-16 | 1 | 1,210 | 7,588 | A 0.7158270689, B 0.000009185534773, C 0.2841637455; 605 steps, 2 rejected |
| Robertson, two nodes: t = 4.0e+2 s | Stiff, BDF (relative tolerance 1e-8) | 400 | 1 | 400 | 1.12e-9 | 0 | 1 | 1,644 | 10,700 | A 0.4505186688, B 0.000003222901445, C 0.5494781083; 822 steps, 2 rejected |
| Robertson, two nodes: t = 4.0e+3 s | Stiff, BDF (relative tolerance 1e-8) | 4,000 | 1 | 4,000 | 1.79e-9 | 0 | 1 | 2,096 | 13,890 | A 0.1832022580, B 8.942371269e-7, C 0.8167968477; 1048 steps, 2 rejected |
| Robertson, two nodes: t = 4.0e+4 s | Stiff, BDF (relative tolerance 1e-8) | 40,000 | 1 | 40,000 | 2.82e-9 | 8.88e-16 | 1 | 2,596 | 17,320 | A 0.03898337719, B 1.621768320e-7, C 0.9610164606; 1298 steps, 2 rejected |
| Robertson, two nodes: t = 4.0e+5 s | Stiff, BDF (relative tolerance 1e-8) | 4.00e5 | 1 | 4.00e5 | 3.40e-9 | 1.55e-15 | 1 | 3,176 | 21,730 | A 0.004938274538, B 1.984994095e-8, C 0.9950617056; 1588 steps, 2 rejected |
| Robertson, two nodes: t = 4.0e+6 s | Stiff, BDF (relative tolerance 1e-8) | 4.00e6 | 1 | 4.00e6 | 3.63e-9 | 2.66e-15 | 1 | 3,752 | 25,400 | A 0.0005168096034, B 2.068294499e-9, C 0.9994831883; 1876 steps, 2 rejected |
| Robertson, two nodes: t = 4.0e+7 s | Stiff, BDF (relative tolerance 1e-8) | 4.00e7 | 1 | 4.00e7 | 4.82e-9 | 2.00e-15 | 1 | 4,310 | 28,900 | A 0.00005203071869, B 2.081335742e-10, C 0.9999479691; 2155 steps, 2 rejected |
| Robertson, two nodes: t = 4.0e+8 s | Stiff, BDF (relative tolerance 1e-8) | 4.00e8 | 1 | 4.00e8 | 1.14e-8 | 2.00e-15 | 1 | 4,796 | 32,040 | A 0.000005207702163, B 2.083091583e-11, C 0.9999947923; 2398 steps, 2 rejected |
| Robertson, two nodes: t = 4.0e+9 s | Stiff, BDF (relative tolerance 1e-8) | 4.00e9 | 1 | 4.00e9 | 5.10e-8 | 1.33e-15 | 1 | 5,166 | 34,510 | A 5.208276877e-7, B 2.083311823e-12, C 0.9999994792; 2583 steps, 2 rejected |
| Robertson, two nodes: t = 1.0e+11 s | Stiff, BDF (relative tolerance 1e-8) | 1.00e11 | 1 | 1.00e11 | 6.99e-7 | 1.11e-15 | 1 | 5,508 | 36,720 | A 2.083341605e-8, B 8.333366593e-14, C 0.9999999792; 2754 steps, 2 rejected |
| Robertson, one node: t = 4.0e-1 s | Stiff, Rodas5P (relative tolerance 1e-8) | 0.4 | 1 | 0.4 | 3.19e-10 | 4.44e-16 | 1 | 67 | 1,674 | A 0.9851721139, B 0.00003386395378, C 0.01479402219; 67 steps, 3 rejected |
| Robertson, one node: t = 4.0e+0 s | Stiff, Rodas5P (relative tolerance 1e-8) | 4 | 1 | 4 | 1.61e-9 | 2.22e-16 | 1 | 103 | 2,538 | A 0.9055186786, B 0.00002240475691, C 0.09445891666; 103 steps, 3 rejected |
| Robertson, one node: t = 4.0e+1 s | Stiff, Rodas5P (relative tolerance 1e-8) | 40 | 1 | 40 | 1.85e-9 | 4.44e-16 | 1 | 151 | 3,690 | A 0.7158270682, B 0.000009185534752, C 0.2841637463; 151 steps, 3 rejected |
| Robertson, one node: t = 4.0e+2 s | Stiff, Rodas5P (relative tolerance 1e-8) | 400 | 1 | 400 | 1.26e-9 | 1.33e-15 | 1 | 202 | 4,914 | A 0.4505186681, B 0.000003222901438, C 0.5494781090; 202 steps, 3 rejected |
| Robertson, one node: t = 4.0e+3 s | Stiff, Rodas5P (relative tolerance 1e-8) | 4,000 | 1 | 4,000 | 6.80e-9 | 1.11e-15 | 1 | 245 | 5,946 | A 0.1832022568, B 8.942371192e-7, C 0.8167968490; 245 steps, 3 rejected |
| Robertson, one node: t = 4.0e+4 s | Stiff, Rodas5P (relative tolerance 1e-8) | 40,000 | 1 | 40,000 | 5.36e-9 | 1.33e-15 | 1 | 294 | 7,122 | A 0.03898337688, B 1.621768307e-7, C 0.9610164609; 294 steps, 3 rejected |
| Robertson, one node: t = 4.0e+5 s | Stiff, Rodas5P (relative tolerance 1e-8) | 4.00e5 | 1 | 4.00e5 | 3.28e-9 | 1.55e-15 | 1 | 355 | 8,586 | A 0.004938274505, B 1.984994081e-8, C 0.9950617056; 355 steps, 3 rejected |
| Robertson, one node: t = 4.0e+6 s | Stiff, Rodas5P (relative tolerance 1e-8) | 4.00e6 | 1 | 4.00e6 | 2.91e-9 | 1.55e-15 | 1 | 421 | 10,170 | A 0.0005168096000, B 2.068294485e-9, C 0.9994831883; 421 steps, 3 rejected |
| Robertson, one node: t = 4.0e+7 s | Stiff, Rodas5P (relative tolerance 1e-8) | 4.00e7 | 1 | 4.00e7 | 3.79e-9 | 1.78e-15 | 1 | 485 | 11,710 | A 0.00005203071824, B 2.081335724e-10, C 0.9999479691; 485 steps, 3 rejected |
| Robertson, one node: t = 4.0e+8 s | Stiff, Rodas5P (relative tolerance 1e-8) | 4.00e8 | 1 | 4.00e8 | 1.03e-8 | 4.44e-16 | 1 | 539 | 13,000 | A 0.000005207702050, B 2.083091538e-11, C 0.9999947923; 539 steps, 3 rejected |
| Robertson, one node: t = 4.0e+9 s | Stiff, Rodas5P (relative tolerance 1e-8) | 4.00e9 | 1 | 4.00e9 | 6.23e-8 | 6.66e-16 | 1 | 578 | 13,940 | A 5.208276287e-7, B 2.083311587e-12, C 0.9999994792; 578 steps, 3 rejected |
| Robertson, one node: t = 1.0e+11 s | Stiff, Rodas5P (relative tolerance 1e-8) | 1.00e11 | 1 | 1.00e11 | 8.24e-7 | 8.88e-16 | 1 | 611 | 14,730 | A 2.083338432e-8, B 8.333353901e-14, C 0.9999999792; 611 steps, 3 rejected |
| Robertson, two nodes: t = 4.0e-1 s | Stiff, Rodas5P (relative tolerance 1e-8) | 0.4 | 1 | 0.4 | 3.19e-10 | 2.22e-16 | 1 | 134 | 2,232 | A 0.9851721139, B 0.00003386395378, C 0.01479402219; 67 steps, 3 rejected |
| Robertson, two nodes: t = 4.0e+0 s | Stiff, Rodas5P (relative tolerance 1e-8) | 4 | 1 | 4 | 1.61e-9 | 2.22e-16 | 1 | 206 | 3,384 | A 0.9055186786, B 0.00002240475691, C 0.09445891666; 103 steps, 3 rejected |
| Robertson, two nodes: t = 4.0e+1 s | Stiff, Rodas5P (relative tolerance 1e-8) | 40 | 1 | 40 | 1.85e-9 | 2.22e-16 | 1 | 302 | 4,920 | A 0.7158270682, B 0.000009185534752, C 0.2841637463; 151 steps, 3 rejected |
| Robertson, two nodes: t = 4.0e+2 s | Stiff, Rodas5P (relative tolerance 1e-8) | 400 | 1 | 400 | 1.26e-9 | 8.88e-16 | 1 | 404 | 6,552 | A 0.4505186681, B 0.000003222901438, C 0.5494781090; 202 steps, 3 rejected |
| Robertson, two nodes: t = 4.0e+3 s | Stiff, Rodas5P (relative tolerance 1e-8) | 4,000 | 1 | 4,000 | 6.80e-9 | 8.88e-16 | 1 | 490 | 7,928 | A 0.1832022568, B 8.942371192e-7, C 0.8167968490; 245 steps, 3 rejected |
| Robertson, two nodes: t = 4.0e+4 s | Stiff, Rodas5P (relative tolerance 1e-8) | 40,000 | 1 | 40,000 | 5.36e-9 | 6.66e-16 | 1 | 588 | 9,496 | A 0.03898337688, B 1.621768307e-7, C 0.9610164609; 294 steps, 3 rejected |
| Robertson, two nodes: t = 4.0e+5 s | Stiff, Rodas5P (relative tolerance 1e-8) | 4.00e5 | 1 | 4.00e5 | 3.28e-9 | 2.22e-16 | 1 | 710 | 11,450 | A 0.004938274505, B 1.984994081e-8, C 0.9950617056; 355 steps, 3 rejected |
| Robertson, two nodes: t = 4.0e+6 s | Stiff, Rodas5P (relative tolerance 1e-8) | 4.00e6 | 1 | 4.00e6 | 2.91e-9 | 4.44e-16 | 1 | 842 | 13,560 | A 0.0005168096000, B 2.068294485e-9, C 0.9994831883; 421 steps, 3 rejected |
| Robertson, two nodes: t = 4.0e+7 s | Stiff, Rodas5P (relative tolerance 1e-8) | 4.00e7 | 1 | 4.00e7 | 3.79e-9 | 8.88e-16 | 1 | 970 | 15,610 | A 0.00005203071824, B 2.081335724e-10, C 0.9999479691; 485 steps, 3 rejected |
| Robertson, two nodes: t = 4.0e+8 s | Stiff, Rodas5P (relative tolerance 1e-8) | 4.00e8 | 1 | 4.00e8 | 1.03e-8 | 4.44e-16 | 1 | 1,078 | 17,340 | A 0.000005207702050, B 2.083091538e-11, C 0.9999947923; 539 steps, 3 rejected |
| Robertson, two nodes: t = 4.0e+9 s | Stiff, Rodas5P (relative tolerance 1e-8) | 4.00e9 | 1 | 4.00e9 | 6.23e-8 | 5.55e-16 | 1 | 1,156 | 18,580 | A 5.208276287e-7, B 2.083311587e-12, C 0.9999994792; 578 steps, 3 rejected |
| Robertson, two nodes: t = 1.0e+11 s | Stiff, Rodas5P (relative tolerance 1e-8) | 1.00e11 | 1 | 1.00e11 | 8.24e-7 | 3.33e-16 | 1 | 1,222 | 19,640 | A 2.083338432e-8, B 8.333353901e-14, C 0.9999999792; 611 steps, 3 rejected |
| Robertson, one node: the exact Jacobian against finite differences | Stiff, Rodas4 (relative tolerance 1e-8, finite-difference Jacobian) | – | 1 | – | 5.08e-7 | – | 1 | 1,316 | 35,540 | 1,316 steps and 11,845 evaluations to 1e11 s, against 1,311 and 7,867 with the exact Jacobian, whose largest error is 4.80e-7 |
| Robertson, one node: the exact Jacobian against finite differences | Stiff, BDF (relative tolerance 1e-8, finite-difference Jacobian) | – | 1 | – | 6.99e-7 | – | 1 | 2,754 | 27,870 | 2,754 steps and 9,291 evaluations to 1e11 s, against 2,754 and 9,186 with the exact Jacobian, whose largest error is 7.40e-7 |
| Robertson, one node: first 40 s | Stiff, Rodas4 (relative tolerance 0.000001) | 40 | 1 | 40 | – | – | 1 | 109 | 1,980 | 109 steps, 1 rejected, 660 evaluations of the model |
| Robertson, one node: first 40 s | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.000001) | 40 | 1 | 40 | – | – | 1 | 34,600 | 6.23e5 | 34595 steps, 1 rejected, 207578 evaluations of the model |
Lorenz system
The Lorenz system (σ = 10, ρ = 28, β = 8/3) from (1, 1, 1), as one node and as two: trajectory error against a 70-digit Taylor reference and the predictability horizon of each method and step, and of Adaptive against its tolerance with the work it took, then what survives chaos: the attractor's statistics and the largest Lyapunov exponent against a SciPy ensemble, for explicit and semi-implicit Euler, Runge–Kutta 4 and Adaptive.
Directory benchmarks/chaos/lorenz/ · models oneNode.kjt, twoNodes.kjt, tangent.kjt · numerical reference reference.json: Taylor series in multiple precision (mpmath): order 40, step 1/256 s, 70 digits; checked against order 30, step 1/128 s, 50 digits. Statistics: an ensemble solved by solve_ivp DOP853 at rtol = atol = 1e-10; the Lyapunov exponent by Benettin's method. (SciPy 1.13.1, NumPy 2.0.2)
- Taylor reference (70 digits)
- Konjugate, explicit Euler, h = 2^-12 s
- Konjugate, semi-implicit Euler, h = 2^-12 s
- Konjugate, Runge–Kutta 4, h = 2^-7 s
Data table (every 65th point; all 2561 are in plots/lorenzTrajectory.csv)
| Taylor reference (70 digits): Time (s) | x | Konjugate, explicit Euler, h = 2^-12 s: Time (s) | x | Konjugate, semi-implicit Euler, h = 2^-12 s: Time (s) | x | Konjugate, Runge–Kutta 4, h = 2^-7 s: Time (s) | x |
|---|---|---|---|---|---|---|---|
| 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 |
| 1.016 | -9.207 | 1.016 | -9.153 | 1.016 | -9.199 | 1.016 | -9.207 |
| 2.031 | -8.622 | 2.031 | -8.643 | 2.031 | -8.632 | 2.031 | -8.622 |
| 3.047 | -6.993 | 3.047 | -7.056 | 3.047 | -6.988 | 3.047 | -6.993 |
| 4.063 | -10.2 | 4.063 | -10.11 | 4.063 | -10.19 | 4.063 | -10.2 |
| 5.078 | -7.298 | 5.078 | -7.404 | 5.078 | -7.314 | 5.078 | -7.298 |
| 6.094 | -7.593 | 6.094 | -7.505 | 6.094 | -7.556 | 6.094 | -7.593 |
| 7.109 | -10.22 | 7.109 | -10.32 | 7.109 | -10.25 | 7.109 | -10.22 |
| 8.125 | -5.521 | 8.125 | -5.503 | 8.125 | -5.493 | 8.125 | -5.521 |
| 9.141 | -11.11 | 9.141 | -11.06 | 9.141 | -11.13 | 9.141 | -11.11 |
| 10.16 | -5.692 | 10.16 | -5.581 | 10.16 | -5.621 | 10.16 | -5.692 |
| 11.17 | -8.942 | 11.17 | -9.238 | 11.17 | -9.093 | 11.17 | -8.942 |
| 12.19 | -4.402 | 12.19 | -3.275 | 12.19 | -4.019 | 12.19 | -4.402 |
| 13.2 | -14.79 | 13.2 | -9.366 | 13.2 | -15.07 | 13.2 | -14.79 |
| 14.22 | 9.741 | 14.22 | 3.805 | 14.22 | 2.829 | 14.22 | 9.735 |
| 15.23 | -5.3 | 15.23 | -1.637 | 15.23 | -0.9848 | 15.23 | -5.299 |
| 16.25 | -11.36 | 16.25 | 11.58 | 16.25 | 12.28 | 16.25 | -11.37 |
| 17.27 | 0.447 | 17.27 | -13.44 | 17.27 | 2.501 | 17.27 | 0.4462 |
| 18.28 | -1.205 | 18.28 | 2.681 | 18.28 | -3.091 | 18.28 | -1.159 |
| 19.3 | 13.12 | 19.3 | 5.129 | 19.3 | -14.09 | 19.3 | 13.09 |
| 20.31 | 1.977 | 20.31 | -6.454 | 20.31 | -2.487 | 20.31 | 2.069 |
| 21.33 | -0.9676 | 21.33 | -0.9278 | 21.33 | -0.194 | 21.33 | -0.06526 |
| 22.34 | 12.65 | 22.34 | 11.11 | 22.34 | 8.176 | 22.34 | 7.103 |
| 23.36 | 2.922 | 23.36 | 3.749 | 23.36 | 5.219 | 23.36 | 6.974 |
| 24.38 | 10.33 | – | – | – | – | – | – |
| 25.39 | -15.82 | – | – | – | – | – | – |
| 26.41 | 2.636 | – | – | – | – | – | – |
| 27.42 | 7.267 | – | – | – | – | – | – |
| 28.44 | -6.572 | – | – | – | – | – | – |
| 29.45 | 1.252 | – | – | – | – | – | – |
| 30.47 | 10.44 | – | – | – | – | – | – |
| 31.48 | 5.799 | – | – | – | – | – | – |
| 32.5 | 1.689 | – | – | – | – | – | – |
| 33.52 | 3.936 | – | – | – | – | – | – |
| 34.53 | -9.139 | – | – | – | – | – | – |
| 35.55 | 0.08416 | – | – | – | – | – | – |
| 36.56 | -6.442 | – | – | – | – | – | – |
| 37.58 | -7.63 | – | – | – | – | – | – |
| 38.59 | -0.8328 | – | – | – | – | – | – |
| 39.61 | 9.679 | – | – | – | – | – | – |
- Konjugate, explicit Euler, h = 2^-12 s
- Konjugate, semi-implicit Euler, h = 2^-12 s
- Konjugate, Runge–Kutta 4, h = 2^-7 s
- SciPy DOP853, rtol 1e-12
- e^(λt) guide
Data table (every 64th point; all 2560 are in plots/lorenzErrorGrowth.csv)
| Konjugate, explicit Euler, h = 2^-12 s: Time (s) | Relative error | Konjugate, semi-implicit Euler, h = 2^-12 s: Time (s) | Relative error | Konjugate, Runge–Kutta 4, h = 2^-7 s: Time (s) | Relative error | SciPy DOP853, rtol 1e-12: Time (s) | Relative error | e^(λt) guide: Time (s) | Relative error |
|---|---|---|---|---|---|---|---|---|---|
| 0.01563 | 1.18e-5 | 0.01563 | 1.15e-5 | 0.01563 | 2.27e-8 | 0.01563 | 3.31e-14 | 0.01563 | 1.01e-16 |
| 1.016 | 0.003542 | 1.016 | 2.93e-4 | 1.016 | 4.37e-7 | 1.016 | 8.73e-14 | 1.016 | 2.51e-16 |
| 2.016 | 0.003676 | 2.016 | 4.65e-4 | 2.016 | 7.63e-7 | 2.016 | 1.51e-13 | 2.016 | 6.21e-16 |
| 3.016 | 0.002349 | 3.016 | 6.36e-4 | 3.016 | 8.73e-7 | 3.016 | 2.25e-13 | 3.016 | 1.54e-15 |
| 4.016 | 0.002977 | 4.016 | 9.79e-4 | 4.016 | 1.27e-6 | 4.016 | 3.77e-13 | 4.016 | 3.80e-15 |
| 5.016 | 0.002686 | 5.016 | 6.61e-4 | 5.016 | 1.33e-6 | 5.016 | 2.92e-13 | 5.016 | 9.40e-15 |
| 6.016 | 0.003467 | 6.016 | 0.001162 | 6.016 | 2.13e-6 | 6.016 | 6.16e-13 | 6.016 | 2.33e-14 |
| 7.016 | 0.003783 | 7.016 | 0.001045 | 7.016 | 2.64e-6 | 7.016 | 5.45e-13 | 7.016 | 5.76e-14 |
| 8.016 | 0.005419 | 8.016 | 0.001337 | 8.016 | 4.42e-6 | 8.016 | 8.01e-13 | 8.016 | 1.42e-13 |
| 9.016 | 0.005743 | 9.016 | 0.001195 | 9.016 | 8.65e-6 | 9.016 | 4.52e-13 | 9.016 | 3.52e-13 |
| 10.02 | 0.004547 | 10.02 | 0.001556 | 10.02 | 6.00e-6 | 10.02 | 6.86e-13 | 10.02 | 8.72e-13 |
| 11.02 | 0.01333 | 11.02 | 0.006331 | 11.02 | 1.82e-5 | 11.02 | 1.88e-12 | 11.02 | 2.16e-12 |
| 12.02 | 0.01579 | 12.02 | 0.0057 | 12.02 | 1.14e-5 | 12.02 | 1.81e-12 | 12.02 | 5.34e-12 |
| 13.02 | 0.1486 | 13.02 | 0.04583 | 13.02 | 3.01e-5 | 13.02 | 1.58e-11 | 13.02 | 1.32e-11 |
| 14.02 | 0.4326 | 14.02 | 0.4073 | 14.02 | 1.95e-4 | 14.02 | 2.29e-10 | 14.02 | 3.27e-11 |
| 15.02 | 0.1537 | 15.02 | 0.06373 | 15.02 | 4.13e-5 | 15.02 | 5.60e-11 | 15.02 | 8.08e-11 |
| 16.02 | 0.3164 | 16.02 | 0.3475 | 16.02 | 1.52e-4 | 16.02 | 1.44e-10 | 16.02 | 2.00e-10 |
| 17.02 | 0.6483 | 17.02 | 0.7835 | 17.02 | 0.001321 | 17.02 | 1.29e-9 | 17.02 | 4.95e-10 |
| 18.02 | 0.2321 | 18.02 | 0.3793 | 18.02 | 2.71e-4 | 18.02 | 2.78e-10 | 18.02 | 1.22e-9 |
| 19.02 | 0.107 | 19.02 | 0.2173 | 19.02 | 0.003266 | 19.02 | 3.25e-9 | 19.02 | 3.03e-9 |
| 20.02 | 0.5928 | 20.02 | 0.6466 | 20.02 | 0.002084 | 20.02 | 1.99e-9 | 20.02 | 7.50e-9 |
| 21.02 | 0.2273 | 21.02 | 0.1845 | 21.02 | 0.008034 | 21.02 | 8.69e-9 | 21.02 | 1.85e-8 |
| 22.02 | 0.0598 | 22.02 | 0.2365 | 22.02 | 0.4585 | 22.02 | 8.87e-8 | 22.02 | 4.59e-8 |
| 23.02 | 0.3853 | 23.02 | 0.2647 | 23.02 | 0.2271 | 23.02 | 7.02e-8 | 23.02 | 1.14e-7 |
| – | – | – | – | – | – | 24.02 | 7.27e-8 | 24.02 | 2.81e-7 |
| – | – | – | – | – | – | 25.02 | 5.34e-7 | 25.02 | 6.95e-7 |
| – | – | – | – | – | – | 26.02 | 1.23e-6 | 26.02 | 1.72e-6 |
| – | – | – | – | – | – | 27.02 | 1.05e-6 | 27.02 | 4.25e-6 |
| – | – | – | – | – | – | 28.02 | 6.27e-6 | 28.02 | 1.05e-5 |
| – | – | – | – | – | – | 29.02 | 1.01e-4 | 29.02 | 2.60e-5 |
| – | – | – | – | – | – | 30.02 | 5.12e-5 | 30.02 | 6.44e-5 |
| – | – | – | – | – | – | 31.02 | 9.24e-5 | 31.02 | 1.59e-4 |
| – | – | – | – | – | – | 32.02 | 7.52e-4 | 32.02 | 3.94e-4 |
| – | – | – | – | – | – | 33.02 | 3.94e-4 | 33.02 | 9.76e-4 |
| – | – | – | – | – | – | 34.02 | 0.003835 | 34.02 | 0.002415 |
| – | – | – | – | – | – | 35.02 | 0.00727 | 35.02 | 0.005975 |
| – | – | – | – | – | – | 36.02 | 0.195 | 36.02 | 0.01478 |
| – | – | – | – | – | – | 37.02 | 0.05696 | 37.02 | 0.03658 |
| – | – | – | – | – | – | 38.02 | 0.09293 | 38.02 | 0.0905 |
| – | – | – | – | – | – | 39.02 | 0.3885 | 39.02 | 0.2239 |
- Konjugate, explicit Euler
- Konjugate, Runge–Kutta 4
Data table
| Konjugate, explicit Euler: Global step h (s) | Predictability horizon (s) | Konjugate, Runge–Kutta 4: Global step h (s) | Predictability horizon (s) |
|---|---|---|---|
| 9.77e-4 | 0.2813 | 0.01563 | 14 |
| 4.88e-4 | 5.781 | 0.007813 | 18.52 |
| 2.44e-4 | 10.86 | 0.003906 | 21.59 |
| 1.22e-4 | 11.55 | 0.001953 | 25.2 |
| – | – | 9.77e-4 | 27.48 |
- Konjugate, explicit Euler
- Konjugate, semi-implicit Euler
- Konjugate, Runge–Kutta 4
Data table
| Konjugate, explicit Euler: Global step h (s) | Relative error | Konjugate, semi-implicit Euler: Global step h (s) | Relative error | Konjugate, Runge–Kutta 4: Global step h (s) | Relative error |
|---|---|---|---|---|---|
| 0.003906 | 0.07897 | 0.003906 | 0.03192 | 0.01563 | 1.22e-4 |
| 0.001953 | 0.03403 | 0.001953 | 0.01598 | 0.007813 | 7.45e-6 |
| 9.77e-4 | 0.01605 | 9.77e-4 | 0.007996 | 0.003906 | 4.55e-7 |
| 4.88e-4 | 0.007974 | 4.88e-4 | 0.003999 | 0.001953 | 2.82e-8 |
| 2.44e-4 | 0.00398 | 2.44e-4 | 0.002 | 9.77e-4 | 1.76e-9 |
| 1.22e-4 | 0.001989 | 1.22e-4 | 1.00e-3 | 4.88e-4 | 1.10e-10 |
Data table
| Relative tolerance | Konjugate, Adaptive, Dormand–Prince 5(4) |
|---|---|
| 1.00e-4 | 12.38 |
| 1.00e-5 | 14 |
| 1.00e-6 | 17 |
| 1.00e-7 | 18.5 |
| 1.00e-8 | 21.5 |
| 1.00e-9 | 24.38 |
| 1.00e-10 | 27.38 |
| 1.00e-11 | 29 |
Data table
| Predictability horizon (s) | Konjugate, Adaptive, Dormand–Prince 5(4) |
|---|---|
| 12.38 | 6,267 |
| 14 | 8,889 |
| 17 | 12,690 |
| 18.5 | 18,780 |
| 21.5 | 28,110 |
| 24.38 | 43,280 |
| 27.38 | 68,130 |
| 29 | 1.07e5 |
Checks
| Check | What it measures | Value | Threshold | Result |
|---|---|---|---|---|
shortRelativeErrorExplicit | Largest error relative to range over the first 8 s, one node, explicit Euler, h = 2^-12 s | 0.007295 | ≤ 0.0092 | ✓ Pass |
horizonExplicit | Predictability horizon (s): the first time the error exceeds 1 % of a state's range, one node, explicit Euler, h = 2^-12 s | 10.86 | 9.7 to 12 | ✓ Pass |
shortRelativeErrorSemiImplicit | Largest error relative to range over the first 8 s, one node, semi-implicit Euler, h = 2^-12 s | 0.002 | ≤ 0.0026 | ✓ Pass |
horizonSemiImplicit | Predictability horizon (s): the first time the error exceeds 1 % of a state's range, one node, semi-implicit Euler, h = 2^-12 s | 11.59 | 10 to 13 | ✓ Pass |
shortRelativeErrorRungeKutta4 | Largest error relative to range over the first 8 s, one node, Runge–Kutta 4, h = 2^-7 s | 7.07e-6 | ≤ 8.90e-6 | ✓ Pass |
horizonRungeKutta4 | Predictability horizon (s): the first time the error exceeds 1 % of a state's range, one node, Runge–Kutta 4, h = 2^-7 s | 18.52 | 16 to 21 | ✓ Pass |
referenceDop853Horizon | SciPy DOP853 at rtol = atol = 1e-12 against the Taylor reference: its own predictability horizon (s), at the same 1 % | 33.64 | 30 to 38 | ✓ Pass |
referenceTaylorSelfAgreement | The Taylor reference against itself at a lower order and precision, largest difference over 40 s: its own error | 5.98e-30 | ≤ 1.00e-20 | ✓ Pass |
horizonExplicitStep1 | Predictability horizon (s) at h = 2^-10 s, run to 16 s, explicit Euler | 0.2813 | 0.25 to 0.31 | ✓ Pass |
horizonExplicitStep2 | Predictability horizon (s) at h = 2^-11 s, run to 16 s, explicit Euler | 5.781 | 5.2 to 6.4 | ✓ Pass |
horizonExplicitStep3 | Predictability horizon (s) at h = 2^-12 s, run to 16 s, explicit Euler | 10.86 | 9.7 to 12 | ✓ Pass |
horizonExplicitStep4 | Predictability horizon (s) at h = 2^-13 s, run to 16 s, explicit Euler | 11.55 | 10 to 13 | ✓ Pass |
horizonRungeKutta4Step1 | Predictability horizon (s) at h = 2^-6 s, run to 32 s, Runge–Kutta 4 | 14 | 12 to 16 | ✓ Pass |
horizonRungeKutta4Step2 | Predictability horizon (s) at h = 2^-7 s, run to 32 s, Runge–Kutta 4 | 18.52 | 16 to 21 | ✓ Pass |
horizonRungeKutta4Step3 | Predictability horizon (s) at h = 2^-8 s, run to 32 s, Runge–Kutta 4 | 21.59 | 19 to 24 | ✓ Pass |
horizonRungeKutta4Step4 | Predictability horizon (s) at h = 2^-9 s, run to 32 s, Runge–Kutta 4 | 25.2 | 22 to 28 | ✓ Pass |
horizonRungeKutta4Step5 | Predictability horizon (s) at h = 2^-10 s, run to 32 s, Runge–Kutta 4 | 27.48 | 24 to 31 | ✓ Pass |
horizonGainPerHalvingRungeKutta4 | Horizon gained per halving of the step, least-squares, as a fraction of p ln 2 / λ (3.06 s for order 4), Runge–Kutta 4 | 1.1 | 0.8 to 1.3 | ✓ Pass |
orderExplicit | Observed order over 6 step sizes, 2 s, explicit Euler | 1.053 | 0.95 to 1.1 | ✓ Pass |
finestOrderExplicit | Observed order from the finest halving, explicit Euler | 1.001 | 0.97 to 1.03 | ✓ Pass |
orderSemiImplicit | Observed order over 6 step sizes, 2 s, semi-implicit Euler | 0.9994 | 0.95 to 1.1 | ✓ Pass |
finestOrderSemiImplicit | Observed order from the finest halving, semi-implicit Euler | 0.9999 | 0.97 to 1.03 | ✓ Pass |
orderRungeKutta4 | Observed order over 6 step sizes, 2 s, Runge–Kutta 4 | 4.017 | 3.9 to 4.1 | ✓ Pass |
finestOrderRungeKutta4 | Observed order from the finest halving, Runge–Kutta 4 | 4.001 | 3.9 to 4.1 | ✓ Pass |
splitDifferenceExplicit | Two nodes against one, explicit Euler: the same steps, summed in another order, largest difference relative to range over the first 8 s | 3.80e-15 | ≤ 1.00e-12 | ✓ Pass |
splitDifferenceSemiImplicit | Two nodes against one, semi-implicit Euler: x is no longer updated before y and z, a first-order difference, relative to range over the first 8 s | 0.004435 | 0.0035 to 0.0056 | ✓ Pass |
splitDifferenceRungeKutta4 | Two nodes against one, Runge–Kutta 4: the same steps, summed in another order, largest difference relative to range over the first 8 s | 1.14e-15 | ≤ 1.00e-12 | ✓ Pass |
meanZScoreExplicit | Mean of z over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, explicit Euler, h = 2^-9 s | 6.517 | 5.2 to 8.2 | ✓ Pass |
standardDeviationZScoreExplicit | Standard deviation of z over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, explicit Euler, h = 2^-9 s | 1.995 | 1.5 to 2.5 | ✓ Pass |
rmsXScoreExplicit | Root mean square of x over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, explicit Euler, h = 2^-9 s | 7.962 | 6.3 to 10 | ✓ Pass |
lyapunovExponentScoreExplicit | Largest Lyapunov exponent over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, explicit Euler, h = 2^-9 s | 3.915 | 3.1 to 4.9 | ✓ Pass |
meanZScoreSemiImplicit | Mean of z over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, semi-implicit Euler, h = 2^-9 s | 1.107 | 0.88 to 1.4 | ✓ Pass |
standardDeviationZScoreSemiImplicit | Standard deviation of z over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, semi-implicit Euler, h = 2^-9 s | 0.2048 | 0.16 to 0.26 | ✓ Pass |
rmsXScoreSemiImplicit | Root mean square of x over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, semi-implicit Euler, h = 2^-9 s | 2.781 | 2.2 to 3.5 | ✓ Pass |
lyapunovExponentScoreSemiImplicit | Largest Lyapunov exponent over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, semi-implicit Euler, h = 2^-9 s | 2.53 | 2 to 3.2 | ✓ Pass |
meanZScoreRungeKutta4Coarse | Mean of z over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, Runge–Kutta 4, h = 2^-7 s | 2.116 | 1.6 to 2.7 | ✓ Pass |
standardDeviationZScoreRungeKutta4Coarse | Standard deviation of z over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, Runge–Kutta 4, h = 2^-7 s | 2.165 | 1.7 to 2.8 | ✓ Pass |
rmsXScoreRungeKutta4Coarse | Root mean square of x over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, Runge–Kutta 4, h = 2^-7 s | 2.043 | 1.6 to 2.6 | ✓ Pass |
lyapunovExponentScoreRungeKutta4Coarse | Largest Lyapunov exponent over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, Runge–Kutta 4, h = 2^-7 s | 2.359 | 1.8 to 3 | ✓ Pass |
meanZScoreRungeKutta4 | Mean of z over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, Runge–Kutta 4, h = 2^-8 s | 0.4966 | ≤ 3 | ✓ Pass |
standardDeviationZScoreRungeKutta4 | Standard deviation of z over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, Runge–Kutta 4, h = 2^-8 s | 0.4142 | ≤ 3 | ✓ Pass |
rmsXScoreRungeKutta4 | Root mean square of x over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, Runge–Kutta 4, h = 2^-8 s | 0.369 | ≤ 3 | ✓ Pass |
lyapunovExponentScoreRungeKutta4 | Largest Lyapunov exponent over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, Runge–Kutta 4, h = 2^-8 s | 0.3158 | ≤ 3 | ✓ Pass |
horizonAdaptiveTolerance1 | Predictability horizon (s) at relative tolerance 0.0001, run to 40 s, Adaptive, Dormand–Prince 5(4) (relative tolerance 0.0001) | 12.38 | 10.9 to 13.9 | ✓ Pass |
horizonAdaptiveTolerance2 | Predictability horizon (s) at relative tolerance 0.00001, run to 40 s, Adaptive, Dormand–Prince 5(4) (relative tolerance 0.00001) | 14 | 12.3 to 15.7 | ✓ Pass |
horizonAdaptiveTolerance3 | Predictability horizon (s) at relative tolerance 0.000001, run to 40 s, Adaptive, Dormand–Prince 5(4) (relative tolerance 0.000001) | 17 | 15 to 19 | ✓ Pass |
horizonAdaptiveTolerance4 | Predictability horizon (s) at relative tolerance 1e-7, run to 40 s, Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-7) | 18.5 | 16.3 to 20.7 | ✓ Pass |
horizonAdaptiveTolerance5 | Predictability horizon (s) at relative tolerance 1e-8, run to 40 s, Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-8) | 21.5 | 18.9 to 24.1 | ✓ Pass |
horizonAdaptiveTolerance6 | Predictability horizon (s) at relative tolerance 1e-9, run to 40 s, Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-9) | 24.38 | 21.4 to 27.3 | ✓ Pass |
horizonAdaptiveTolerance7 | Predictability horizon (s) at relative tolerance 1e-10, run to 40 s, Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-10) | 27.38 | 24.1 to 30.7 | ✓ Pass |
horizonAdaptiveTolerance8 | Predictability horizon (s) at relative tolerance 1e-11, run to 40 s, Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-11) | 29 | 25.5 to 32.5 | ✓ Pass |
horizonGainPerDecadeAdaptive | Horizon gained per decade of tolerance, least-squares, as a fraction of ln 10 / λ (2.54 s), Adaptive | 0.976 | 0.75 to 1.2 | ✓ Pass |
splitDifferenceAdaptive | Two nodes against one under Adaptive at relative tolerance 1e-8: the same steps (the error summed node by node), largest difference relative to range over the first 8 s | 7.30e-15 | ≤ 1.00e-12 | ✓ Pass |
meanZScoreAdaptive | Mean of z over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-8) | 1.571 | ≤ 3 | ✓ Pass |
standardDeviationZScoreAdaptive | Standard deviation of z over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-8) | 1.55 | ≤ 3 | ✓ Pass |
rmsXScoreAdaptive | Root mean square of x over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-8) | 1.593 | ≤ 3 | ✓ Pass |
lyapunovExponentScoreAdaptive | Largest Lyapunov exponent over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-8) | 1.57 | ≤ 3 | ✓ Pass |
referenceLyapunovAgainstLiterature | The reference ensemble's mean Lyapunov exponent against Viswanath's 0.9056, in units of the ensemble mean's standard error | 0.616 | ≤ 3 | ✓ Pass |
- The reference's own error: the 70-digit Taylor solution agrees with its lower-order, 50-digit check to 6.0e-30 over 40 s; SciPy's DOP853 at rtol = atol = 1e-12 departs from it by 1 % of the range at 33.64 s, so a double-precision reference at that tolerance would itself be useless beyond then.
- The attractor's statistics from the reference ensemble (200 runs of 500 s): mean of z 23.5501, standard deviation of z 8.6222, root mean square of x 7.9246, largest Lyapunov exponent 0.9059 /s (Viswanath: 0.9056). One 500 s run scatters about them by 0.038, 0.038, 0.007 and 0.007 /s, so a score within about 2 σ is as close as one run can be expected to come.
- Three nodes, one per variable, cannot be written: a relationship reads only its two ends, and the equations of y and z each read both other variables. The split model is x as one node and y, z as another.
All 41 result rows
| Case | Method | h (s) | Substeps | Horizon (s) | Max abs error | RMSE | Relative error | Observed order | Steps | Substeps run | Evaluations | Note |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Lorenz, one node: first 8 s | explicit Euler | 2.44e-4 | 1 | 8 | 0.3409 | 0.115 | 0.007295 | – | 98,300 | 98,300 | 2.95e5 | errors against the Taylor reference; predictability horizon (error first above 1 % of a state's range) 10.86 s |
| Lorenz, one node: first 8 s | semi-implicit Euler | 2.44e-4 | 1 | 8 | 0.09346 | 0.02955 | 0.002 | – | 98,300 | 98,300 | 2.95e5 | errors against the Taylor reference; predictability horizon (error first above 1 % of a state's range) 11.59 s |
| Lorenz, one node: first 8 s | Runge–Kutta 4 | 0.007813 | 1 | 8 | 2.80e-4 | 6.75e-5 | 7.07e-6 | – | 3,072 | 3,072 | 36,860 | errors against the Taylor reference; predictability horizon (error first above 1 % of a state's range) 18.52 s |
| Lorenz, one node: predictability horizon against step | explicit Euler | 1.22e-4 | 1 | 16 | – | – | – | – | – | – | – | horizons 0.28, 5.78, 10.86, 11.55 s at h = 2^-10, 2^-11, 2^-12, 2^-13 s; least-squares gain per halving 3.89 s (p ln 2 / λ = 0.77 s) |
| Lorenz, one node: predictability horizon against step | Runge–Kutta 4 | 9.77e-4 | 1 | 32 | – | – | – | – | – | – | – | horizons 14.00, 18.52, 21.59, 25.20, 27.48 s at h = 2^-6, 2^-7, 2^-8, 2^-9, 2^-10 s; least-squares gain per halving 3.37 s (p ln 2 / λ = 3.06 s) |
| Lorenz, one node: convergence | explicit Euler | 0.003906 | 1 | 2 | 3.69 | 1.741 | 0.07897 | – | 512 | 512 | 1,536 | |
| Lorenz, one node: convergence | explicit Euler | 0.001953 | 1 | 2 | 1.59 | 0.7879 | 0.03403 | – | 1,024 | 1,024 | 3,072 | |
| Lorenz, one node: convergence | explicit Euler | 9.77e-4 | 1 | 2 | 0.7499 | 0.3777 | 0.01605 | – | 2,048 | 2,048 | 6,144 | |
| Lorenz, one node: convergence | explicit Euler | 4.88e-4 | 1 | 2 | 0.3726 | 0.1853 | 0.007974 | – | 4,096 | 4,096 | 12,290 | |
| Lorenz, one node: convergence | explicit Euler | 2.44e-4 | 1 | 2 | 0.186 | 0.09178 | 0.00398 | – | 8,192 | 8,192 | 24,580 | |
| Lorenz, one node: convergence | explicit Euler | 1.22e-4 | 1 | 2 | 0.09292 | 0.04568 | 0.001989 | 1.053 | 16,380 | 16,380 | 49,150 | observed order: fitted 1.053; per halving 1.215, 1.084, 1.009, 1.002, 1.001 |
| Lorenz, one node: convergence | semi-implicit Euler | 0.003906 | 1 | 2 | 1.492 | 0.2718 | 0.03192 | – | 512 | 512 | 1,536 | |
| Lorenz, one node: convergence | semi-implicit Euler | 0.001953 | 1 | 2 | 0.7468 | 0.1357 | 0.01598 | – | 1,024 | 1,024 | 3,072 | |
| Lorenz, one node: convergence | semi-implicit Euler | 9.77e-4 | 1 | 2 | 0.3736 | 0.06779 | 0.007996 | – | 2,048 | 2,048 | 6,144 | |
| Lorenz, one node: convergence | semi-implicit Euler | 4.88e-4 | 1 | 2 | 0.1869 | 0.03388 | 0.003999 | – | 4,096 | 4,096 | 12,290 | |
| Lorenz, one node: convergence | semi-implicit Euler | 2.44e-4 | 1 | 2 | 0.09345 | 0.01694 | 0.002 | – | 8,192 | 8,192 | 24,580 | |
| Lorenz, one node: convergence | semi-implicit Euler | 1.22e-4 | 1 | 2 | 0.04673 | 0.008469 | 1.00e-3 | 0.9994 | 16,380 | 16,380 | 49,150 | observed order: fitted 0.999; per halving 0.998, 0.999, 1.000, 1.000, 1.000 |
| Lorenz, one node: convergence | Runge–Kutta 4 | 0.01563 | 1 | 2 | 0.00461 | 8.49e-4 | 1.22e-4 | – | 128 | 128 | 1,536 | |
| Lorenz, one node: convergence | Runge–Kutta 4 | 0.007813 | 1 | 2 | 2.80e-4 | 4.37e-5 | 7.45e-6 | – | 256 | 256 | 3,072 | |
| Lorenz, one node: convergence | Runge–Kutta 4 | 0.003906 | 1 | 2 | 1.71e-5 | 2.63e-6 | 4.55e-7 | – | 512 | 512 | 6,144 | |
| Lorenz, one node: convergence | Runge–Kutta 4 | 0.001953 | 1 | 2 | 1.06e-6 | 1.65e-7 | 2.82e-8 | – | 1,024 | 1,024 | 12,290 | |
| Lorenz, one node: convergence | Runge–Kutta 4 | 9.77e-4 | 1 | 2 | 6.62e-8 | 1.04e-8 | 1.76e-9 | – | 2,048 | 2,048 | 24,580 | |
| Lorenz, one node: convergence | Runge–Kutta 4 | 4.88e-4 | 1 | 2 | 4.14e-9 | 6.51e-10 | 1.10e-10 | 4.017 | 4,096 | 4,096 | 49,150 | observed order: fitted 4.017; per halving 4.040, 4.033, 4.011, 4.002, 4.001 |
| Lorenz, two nodes: first 8 s | explicit Euler | 2.44e-4 | 1 | 8 | 0.3409 | 0.115 | 0.007295 | – | 98,300 | 1.97e5 | 5.90e5 | difference from the one-node model over the first 8 s, relative to range: 3.80e-15; predictability horizon 10.86 s |
| Lorenz, two nodes: first 8 s | semi-implicit Euler | 2.44e-4 | 1 | 8 | 0.1433 | 0.04163 | 0.003615 | – | 98,300 | 1.97e5 | 5.90e5 | difference from the one-node model over the first 8 s, relative to range: 4.44e-3; predictability horizon 10.23 s |
| Lorenz, two nodes: first 8 s | Runge–Kutta 4 | 0.007813 | 1 | 8 | 2.80e-4 | 6.75e-5 | 7.07e-6 | – | 3,072 | 6,144 | 73,730 | difference from the one-node model over the first 8 s, relative to range: 1.14e-15; predictability horizon 18.52 s |
| Lorenz, one node: attractor statistics over 500 s | explicit Euler | 0.001953 | 1 | 520 | – | – | – | – | 2.66e5 | 2.66e5 | 1.60e6 | mean of z 23.7989 (reference 23.5501 ± 0.0382, +6.52 σ); standard deviation of z 8.5471 (reference 8.6222 ± 0.0377, -2.00 σ); root mean square of x 7.9780 (reference 7.9246 ± 0.0067, +7.96 σ); largest Lyapunov exponent 0.9342 (reference 0.9059 ± 0.0072, +3.91 σ) |
| Lorenz, one node: attractor statistics over 500 s | semi-implicit Euler | 0.001953 | 1 | 520 | – | – | – | – | 2.66e5 | 2.66e5 | 1.60e6 | mean of z 23.5924 (reference 23.5501 ± 0.0382, +1.11 σ); standard deviation of z 8.6145 (reference 8.6222 ± 0.0377, -0.20 σ); root mean square of x 7.9432 (reference 7.9246 ± 0.0067, +2.78 σ); largest Lyapunov exponent 0.9242 (reference 0.9059 ± 0.0072, +2.53 σ) |
| Lorenz, one node: attractor statistics over 500 s | Runge–Kutta 4 | 0.007813 | 1 | 520 | – | – | – | – | 66,560 | 66,560 | 1.60e6 | mean of z 23.4693 (reference 23.5501 ± 0.0382, -2.12 σ); standard deviation of z 8.7038 (reference 8.6222 ± 0.0377, +2.16 σ); root mean square of x 7.9109 (reference 7.9246 ± 0.0067, -2.04 σ); largest Lyapunov exponent 0.9229 (reference 0.9059 ± 0.0072, +2.36 σ) |
| Lorenz, one node: attractor statistics over 500 s | Runge–Kutta 4 | 0.003906 | 1 | 520 | – | – | – | – | 1.33e5 | 1.33e5 | 3.19e6 | mean of z 23.5691 (reference 23.5501 ± 0.0382, +0.50 σ); standard deviation of z 8.6066 (reference 8.6222 ± 0.0377, -0.41 σ); root mean square of x 7.9270 (reference 7.9246 ± 0.0067, +0.37 σ); largest Lyapunov exponent 0.9036 (reference 0.9059 ± 0.0072, -0.32 σ) |
| Lorenz, one node: predictability horizon against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.0001) | 0.125 | 1 | 40 | – | – | – | – | 320 | 926 | 18,800 | horizon 12.38 s; 926 steps, 65 rejected, 6267 evaluations of the model |
| Lorenz, one node: predictability horizon against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.00001) | 0.125 | 1 | 40 | – | – | – | – | 320 | 1,347 | 26,670 | horizon 14.00 s; 1347 steps, 81 rejected, 8889 evaluations of the model |
| Lorenz, one node: predictability horizon against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.000001) | 0.125 | 1 | 40 | – | – | – | – | 320 | 1,989 | 38,060 | horizon 17.00 s; 1989 steps, 72 rejected, 12687 evaluations of the model |
| Lorenz, one node: predictability horizon against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-7) | 0.125 | 1 | 40 | – | – | – | – | 320 | 3,011 | 56,330 | horizon 18.50 s; 3011 steps, 65 rejected, 18777 evaluations of the model |
| Lorenz, one node: predictability horizon against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-8) | 0.125 | 1 | 40 | – | – | – | – | 320 | 4,594 | 84,320 | horizon 21.50 s; 4594 steps, 37 rejected, 28107 evaluations of the model |
| Lorenz, one node: predictability horizon against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-9) | 0.125 | 1 | 40 | – | – | – | – | 320 | 7,128 | 1.30e5 | horizon 24.38 s; 7128 steps, 32 rejected, 43281 evaluations of the model |
| Lorenz, one node: predictability horizon against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-10) | 0.125 | 1 | 40 | – | – | – | – | 320 | 11,250 | 2.04e5 | horizon 27.38 s; 11249 steps, 52 rejected, 68127 evaluations of the model |
| Lorenz, one node: predictability horizon against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-11) | 0.125 | 1 | 40 | – | – | – | – | 320 | 17,750 | 3.21e5 | horizon 29.00 s; 17750 steps, 54 rejected, 107145 evaluations of the model |
| Lorenz, one node: horizon gained per decade of tolerance | Adaptive, Dormand–Prince 5(4) | – | 1 | – | – | – | – | – | – | – | – | least-squares gain 2.48 s per decade (ln 10 / λ = 2.54 s) |
| Lorenz, two nodes: first 8 s | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-8) | 0.01563 | 1 | 8 | – | – | – | – | 1,536 | 7,050 | 1.36e5 | difference from the one-node model over the first 8 s, relative to range: 7.30e-15 |
| Lorenz, one node: attractor statistics over 500 s | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-8) | 0.0625 | 1 | 520 | – | – | – | – | 8,320 | 83,500 | 3.16e6 | mean of z 23.4902 (-1.57 σ); standard deviation of z 8.6807 (+1.55 σ); root mean square of x 7.9139 (-1.59 σ); largest Lyapunov exponent 0.9172 (+1.57 σ); 83496 steps, 2993 rejected |
Double pendulum
A double pendulum released from rest with both arms horizontal, one node: trajectory error and predictability horizon against a SciPy DOP853 reference, energy over a long run (explicit and semi-implicit Euler against Runge–Kutta 4), sensitivity to a 1e-9 rad change in the starting angle, and the observed order; and Adaptive's horizon and energy drift against its tolerance, with the work it took.
Directory benchmarks/mechanical/doublePendulum/ · models doublePendulum.kjt, perturbed.kjt · numerical reference reference.json: solve_ivp DOP853 at rtol = atol = 1e-13; its own error estimated against 1e-12 (SciPy 1.13.1, NumPy 2.0.2, rtol 1e-13)
- SciPy DOP853 reference
- Konjugate, explicit Euler, h = 2^-11 s
- Konjugate, semi-implicit Euler, h = 2^-11 s
- Konjugate, Runge–Kutta 4, h = 2^-8 s
Data table (every 33th point; all 1281 are in plots/doublePendulumAngle.csv)
| Time (s) | SciPy DOP853 reference | Konjugate, explicit Euler, h = 2^-11 s | Konjugate, semi-implicit Euler, h = 2^-11 s | Konjugate, Runge–Kutta 4, h = 2^-8 s |
|---|---|---|---|---|
| 0 | 2 | 2 | 2 | 2 |
| 0.5156 | 1.717 | 1.718 | 1.717 | 1.717 |
| 1.031 | -1.011 | -1.017 | -1.01 | -1.011 |
| 1.547 | -1.548 | -1.534 | -1.546 | -1.548 |
| 2.063 | -1.919 | -1.852 | -1.918 | -1.919 |
| 2.578 | 0.6292 | 0.5488 | 0.639 | 0.6292 |
| 3.094 | 1.214 | 1.259 | 1.213 | 1.214 |
| 3.609 | 1.007 | 1.217 | 0.9935 | 1.007 |
| 4.125 | 0.8078 | 0.9503 | 0.8194 | 0.8078 |
| 4.641 | -2.129 | -2.166 | -2.152 | -2.129 |
| 5.156 | -4.957 | -3.243 | -4.947 | -4.957 |
| 5.672 | -7.955 | -3.16 | -7.943 | -7.955 |
| 6.188 | -6.461 | -3.728 | -6.601 | -6.461 |
| 6.703 | -5.537 | -5.436 | -5.633 | -5.537 |
| 7.219 | -5.285 | -7.547 | -6.26 | -5.285 |
| 7.734 | -7.997 | -8.687 | -6.312 | -7.997 |
| 8.25 | -10.79 | -8.926 | -9.584 | -10.79 |
| 8.766 | -13.54 | -4.748 | -13.04 | -13.54 |
| 9.281 | -12.89 | -2.044 | -17.14 | -12.89 |
| 9.797 | -10.19 | -0.1559 | -21.54 | -10.19 |
| 10.31 | -12.52 | 1.681 | -22.08 | -12.52 |
| 10.83 | -14.96 | -1.799 | -21.22 | -14.96 |
| 11.34 | -13.01 | -5.458 | -17.03 | -13 |
| 11.86 | -11.88 | -9.665 | -17.04 | -11.88 |
| 12.38 | -12.48 | -13.73 | -18.56 | -12.43 |
| 12.89 | -12.49 | -12.89 | -19.3 | -12.61 |
| 13.41 | -15.98 | -10.88 | -22.55 | -16.18 |
| 13.92 | -19.72 | -8.634 | -25.82 | -19.99 |
| 14.44 | -23.34 | -4.438 | -27.25 | -23.32 |
| 14.95 | -26.63 | -5.477 | -27.85 | -26.21 |
| 15.47 | -25.1 | -8.079 | -31.03 | -25.47 |
| 15.98 | -23.9 | -6.68 | -35.44 | -25.19 |
| 16.5 | -23.57 | -3.016 | -38.57 | -24.83 |
| 17.02 | -26.17 | 1.748 | -38.63 | -23.94 |
| 17.53 | -28.09 | 6.181 | -35.59 | -27.36 |
| 18.05 | -30.96 | 10.07 | -37.18 | -30.8 |
| 18.56 | -31.99 | 14.09 | -39.92 | -34.08 |
| 19.08 | -33.11 | 12.99 | -37.6 | -36.83 |
| 19.59 | -33.14 | 9.908 | -35.28 | -37.61 |
- SciPy DOP853: separation of the two starts
- Konjugate, explicit Euler: separation of the two starts
- Konjugate, semi-implicit Euler: separation of the two starts
- Konjugate, Runge–Kutta 4: separation of the two starts
- Konjugate, Runge–Kutta 4: its error against the reference
Data table (every 32th point; all 1280 are in plots/doublePendulumSensitivity.csv)
| Time (s) | SciPy DOP853: separation of the two starts | Konjugate, explicit Euler: separation of the two starts | Konjugate, semi-implicit Euler: separation of the two starts | Konjugate, Runge–Kutta 4: separation of the two starts | Konjugate, Runge–Kutta 4: its error against the reference |
|---|---|---|---|---|---|
| 0.01563 | 1.00e-9 | 1.00e-9 | 1.00e-9 | 1.00e-9 | 2.04e-13 |
| 0.5156 | 1.13e-9 | 1.13e-9 | 1.13e-9 | 1.13e-9 | 6.15e-10 |
| 1.016 | 5.89e-10 | 5.88e-10 | 5.91e-10 | 5.89e-10 | 1.38e-8 |
| 1.516 | 1.02e-9 | 1.02e-9 | 1.02e-9 | 1.02e-9 | 1.59e-8 |
| 2.016 | 4.41e-9 | 4.59e-9 | 4.36e-9 | 4.41e-9 | 1.34e-7 |
| 2.516 | 1.43e-9 | 1.71e-9 | 1.44e-9 | 1.43e-9 | 1.38e-7 |
| 3.016 | 1.95e-9 | 2.35e-9 | 1.92e-9 | 1.95e-9 | 7.47e-8 |
| 3.516 | 8.20e-9 | 6.83e-9 | 8.06e-9 | 8.20e-9 | 3.47e-7 |
| 4.016 | 3.13e-8 | 2.51e-8 | 3.08e-8 | 3.13e-8 | 9.64e-7 |
| 4.516 | 4.92e-8 | 1.63e-8 | 4.67e-8 | 4.92e-8 | 1.32e-6 |
| 5.016 | 4.15e-8 | 7.79e-8 | 4.17e-8 | 4.15e-8 | 1.57e-6 |
| 5.516 | 2.45e-7 | 2.08e-7 | 2.39e-7 | 2.45e-7 | 8.46e-6 |
| 6.016 | 9.40e-8 | 2.30e-6 | 7.57e-8 | 9.40e-8 | 3.38e-6 |
| 6.516 | 4.02e-7 | 7.37e-6 | 3.05e-7 | 4.02e-7 | 1.40e-5 |
| 7.016 | 1.26e-6 | 4.07e-6 | 1.10e-6 | 1.26e-6 | 4.37e-5 |
| 7.516 | 2.76e-6 | 4.45e-6 | 1.62e-6 | 2.76e-6 | 9.56e-5 |
| 8.016 | 1.63e-6 | 1.03e-6 | 4.81e-6 | 1.63e-6 | 5.62e-5 |
| 8.516 | 4.27e-6 | 5.50e-6 | 1.13e-5 | 4.27e-6 | 1.47e-4 |
| 9.016 | 6.03e-6 | 6.92e-6 | 1.50e-5 | 6.03e-6 | 2.07e-4 |
| 9.516 | 2.16e-6 | 7.68e-5 | 1.49e-5 | 2.16e-6 | 7.51e-5 |
| 10.02 | 7.37e-6 | 6.52e-5 | 7.11e-5 | 7.37e-6 | 2.52e-4 |
| 10.52 | 4.52e-5 | 1.09e-4 | 2.09e-4 | 4.51e-5 | 0.00154 |
| 11.02 | 5.66e-5 | 8.75e-5 | 3.04e-4 | 5.61e-5 | 0.001919 |
| 11.52 | 3.08e-4 | 3.11e-4 | 7.84e-4 | 3.02e-4 | 0.01039 |
| 12.02 | 8.47e-4 | 3.23e-4 | 0.002709 | 8.52e-4 | 0.02894 |
| 12.52 | 0.003814 | 6.47e-4 | 0.003931 | 0.003814 | 0.1308 |
| 13.02 | 0.005386 | 1.92e-4 | 0.005149 | 0.005974 | 0.1944 |
| 13.52 | 0.007507 | 0.002868 | 0.006183 | 0.006857 | 0.245 |
| 14.02 | 0.008458 | 0.0084 | 0.02157 | 0.005773 | 0.2403 |
| 14.52 | 0.009014 | 0.006045 | 0.05351 | 0.005274 | 0.2378 |
| 15.02 | 0.01738 | 0.01455 | 0.1601 | 0.01304 | 0.52 |
| 15.52 | 0.01078 | 0.04004 | 0.5935 | 0.01485 | 0.4964 |
| 16.02 | 0.06161 | 0.1582 | 0.7179 | 0.01747 | 1.276 |
| 16.52 | 0.2273 | 0.3071 | 1.753 | 0.1097 | 2.866 |
| 17.02 | 0.1178 | 1.888 | 5.526 | 0.2139 | 7.935 |
| 17.52 | 0.7405 | 3.76 | 12.32 | 0.2364 | 8.409 |
| 18.02 | 1.297 | 7.739 | 13.47 | 0.2389 | 8.138 |
| 18.52 | 0.6179 | 12 | 12.21 | 0.2085 | 4.001 |
| 19.02 | 0.8394 | 14.3 | 10.68 | 0.4031 | 3.409 |
| 19.52 | 1.302 | 14.03 | 9.973 | 0.3482 | 6.009 |
- Konjugate, explicit Euler, h = 2^-11 s
- Konjugate, semi-implicit Euler, h = 2^-11 s
- Konjugate, Runge–Kutta 4, h = 2^-8 s
Data table (every 24th point; all 960 are in plots/doublePendulumEnergy.csv)
| Time (s) | Konjugate, explicit Euler, h = 2^-11 s | Konjugate, semi-implicit Euler, h = 2^-11 s | Konjugate, Runge–Kutta 4, h = 2^-8 s |
|---|---|---|---|
| 0.0625 | 5.83e-5 | 5.89e-5 | 1.60e-12 |
| 1.563 | 0.00298 | 0.001922 | 3.34e-9 |
| 3.063 | 0.005906 | 0.003397 | 3.34e-9 |
| 4.563 | 0.008979 | 0.007171 | 4.17e-8 |
| 6.063 | 0.0111 | 0.01093 | 1.05e-7 |
| 7.563 | 0.01357 | 0.01371 | 1.05e-7 |
| 9.063 | 0.01788 | 0.01767 | 1.49e-7 |
| 10.56 | 0.02118 | 0.01767 | 1.77e-7 |
| 12.06 | 0.02609 | 0.01767 | 1.77e-7 |
| 13.56 | 0.02891 | 0.01784 | 2.06e-7 |
| 15.06 | 0.03229 | 0.02225 | 4.55e-7 |
| 16.56 | 0.0373 | 0.02283 | 4.55e-7 |
| 18.06 | 0.04477 | 0.02402 | 4.55e-7 |
| 19.56 | 0.04679 | 0.027 | 6.84e-7 |
| 21.06 | 0.05042 | 0.02984 | 6.88e-7 |
| 22.56 | 0.05645 | 0.03283 | 7.57e-7 |
| 24.06 | 0.06039 | 0.03283 | 8.12e-7 |
| 25.56 | 0.06421 | 0.03547 | 8.12e-7 |
| 27.06 | 0.06745 | 0.0357 | 9.99e-7 |
| 28.56 | 0.06984 | 0.03926 | 9.99e-7 |
| 30.06 | 0.07327 | 0.04326 | 1.01e-6 |
| 31.56 | 0.07967 | 0.04425 | 1.01e-6 |
| 33.06 | 0.0828 | 0.04467 | 1.09e-6 |
| 34.56 | 0.0879 | 0.04986 | 1.09e-6 |
| 36.06 | 0.09061 | 0.04986 | 1.11e-6 |
| 37.56 | 0.09442 | 0.05196 | 1.19e-6 |
| 39.06 | 0.0995 | 0.0543 | 1.23e-6 |
| 40.56 | 0.105 | 0.05715 | 1.32e-6 |
| 42.06 | 0.109 | 0.05995 | 1.32e-6 |
| 43.56 | 0.1123 | 0.05995 | 1.36e-6 |
| 45.06 | 0.1176 | 0.06413 | 1.47e-6 |
| 46.56 | 0.1251 | 0.06668 | 1.57e-6 |
| 48.06 | 0.1276 | 0.06911 | 1.57e-6 |
| 49.56 | 0.1319 | 0.07054 | 1.71e-6 |
| 51.06 | 0.1346 | 0.07287 | 1.72e-6 |
| 52.56 | 0.1376 | 0.07581 | 1.72e-6 |
| 54.06 | 0.1401 | 0.07972 | 1.79e-6 |
| 55.56 | 0.1422 | 0.08128 | 1.89e-6 |
| 57.06 | 0.1454 | 0.08179 | 1.91e-6 |
| 58.56 | 0.1515 | 0.08212 | 2.00e-6 |
- Konjugate, Adaptive, Dormand–Prince 5(4)
- Proportional (slope 1)
Data table
| Relative tolerance | Konjugate, Adaptive, Dormand–Prince 5(4) | Proportional (slope 1) |
|---|---|---|
| 1.00e-4 | 0.04147 | 0.04147 |
| 1.00e-5 | 5.40e-4 | 0.004147 |
| 1.00e-6 | 1.49e-5 | 4.15e-4 |
| 1.00e-7 | 4.27e-7 | 4.15e-5 |
| 1.00e-8 | 4.89e-8 | 4.15e-6 |
| 1.00e-9 | 5.52e-9 | 4.15e-7 |
| 1.00e-10 | 4.07e-10 | 4.15e-8 |
Data table
| Relative tolerance | Konjugate, Adaptive, Dormand–Prince 5(4) |
|---|---|
| 1.00e-4 | 6.5 |
| 1.00e-5 | 7.625 |
| 1.00e-6 | 10.5 |
| 1.00e-7 | 11.88 |
| 1.00e-8 | 13 |
| 1.00e-9 | 15.88 |
| 1.00e-10 | 16.88 |
- Konjugate, explicit Euler
- Konjugate, semi-implicit Euler
- Konjugate, Runge–Kutta 4
Data table
| Konjugate, explicit Euler: Global step h (s) | Relative error | Konjugate, semi-implicit Euler: Global step h (s) | Relative error | Konjugate, Runge–Kutta 4: Global step h (s) | Relative error |
|---|---|---|---|---|---|
| 0.003906 | 0.2076 | 0.003906 | 0.01547 | 0.003906 | 4.50e-8 |
| 0.001953 | 0.1058 | 0.001953 | 0.007811 | 0.001953 | 3.04e-9 |
| 9.77e-4 | 0.05014 | 9.77e-4 | 0.003928 | 9.77e-4 | 1.97e-10 |
| 4.88e-4 | 0.0241 | 4.88e-4 | 0.00197 | 4.88e-4 | 1.24e-11 |
| 2.44e-4 | 0.01179 | 2.44e-4 | 9.86e-4 | – | – |
| 1.22e-4 | 0.005823 | 1.22e-4 | 4.93e-4 | – | – |
Checks
| Check | What it measures | Value | Threshold | Result |
|---|---|---|---|---|
shortRelativeErrorExplicit | Largest error relative to range over the first 5 s, explicit Euler, h = 2^-11 s | 0.2476 | ≤ 0.31 | ✓ Pass |
horizonExplicit | Predictability horizon (s): the first time either angle's error exceeds 0.1 rad, up to the 16.98 s the reference is trusted for, explicit Euler, h = 2^-11 s | 3.313 | 2.9 to 3.7 | ✓ Pass |
sensitivityTimeExplicit | Runs 1e-9 rad apart separate by 0.1 rad: Konjugate's time against the reference's 16.20 s, |difference| (s), explicit Euler, h = 2^-11 s | 0.5 | ≤ 0.63 | ✓ Pass |
shortRelativeErrorSemiImplicit | Largest error relative to range over the first 5 s, semi-implicit Euler, h = 2^-11 s | 0.01761 | ≤ 0.023 | ✓ Pass |
horizonSemiImplicit | Predictability horizon (s): the first time either angle's error exceeds 0.1 rad, up to the 16.98 s the reference is trusted for, semi-implicit Euler, h = 2^-11 s | 6.094 | 5.4 to 6.8 | ✓ Pass |
sensitivityTimeSemiImplicit | Runs 1e-9 rad apart separate by 0.1 rad: Konjugate's time against the reference's 16.20 s, |difference| (s), semi-implicit Euler, h = 2^-11 s | 1.375 | ≤ 1.8 | ✓ Pass |
shortRelativeErrorRungeKutta4 | Largest error relative to range over the first 5 s, Runge–Kutta 4, h = 2^-8 s | 6.96e-7 | ≤ 8.80e-7 | ✓ Pass |
horizonRungeKutta4 | Predictability horizon (s): the first time either angle's error exceeds 0.1 rad, up to the 16.98 s the reference is trusted for, Runge–Kutta 4, h = 2^-8 s | 12.48 | 11 to 14 | ✓ Pass |
sensitivityTimeRungeKutta4 | Runs 1e-9 rad apart separate by 0.1 rad: Konjugate's time against the reference's 16.20 s, |difference| (s), Runge–Kutta 4, h = 2^-8 s | 0.2813 | ≤ 0.36 | ✓ Pass |
verletRefusedInWords | Verlet refused, saying which rate reads its own state (1 if so): each angular velocity's rate reads itself, the kinetic energy depending on the angles | 1 | 1 to 1 | ✓ Pass |
referenceTrustedTime | How long the reference is trusted (s): until its own error, DOP853 at 1e-13 against 1e-12, first exceeds 0.001 (1 % of the horizon angle) | 16.98 | 15 to 19 | ✓ Pass |
referenceOwnError | The reference's own error over the first 5 s: DOP853 at 1e-13 against 1e-12, largest difference (rad, rad/s) | 2.76e-10 | ≤ 1.00e-9 | ✓ Pass |
referenceEnergyDrift | The reference's own energy drift over 20 s, relative to the energy above the bottom | 1.03e-12 | ≤ 1.00e-10 | ✓ Pass |
energyDriftExplicit | Largest relative energy drift over 60 s, explicit Euler, h = 2^-11 s | 0.153 | 0.12 to 0.2 | ✓ Pass |
energyDriftSemiImplicit | Largest relative energy drift over 60 s, semi-implicit Euler, h = 2^-11 s | 0.08212 | 0.065 to 0.11 | ✓ Pass |
energyDriftRungeKutta4 | Largest relative energy drift over 60 s, Runge–Kutta 4, h = 2^-8 s | 2.00e-6 | ≤ 2.60e-6 | ✓ Pass |
energyDriftToleranceSlopeAdaptive | Adaptive: slope of log energy drift over 60 s against log tolerance, 7 tolerances from 0.0001 to 1e-10 | 1.303 | 1.1 to 1.5 | ✓ Pass |
energyDriftTightestAdaptive | Adaptive: largest relative energy drift over 60 s at relative tolerance 1e-10 | 4.07e-10 | ≤ 1.00e-9 | ✓ Pass |
horizonLoosestAdaptive | Predictability horizon (s) at relative tolerance 0.0001, Adaptive | 6.5 | 5.7 to 7.3 | ✓ Pass |
horizonTightestAdaptive | Predictability horizon (s) at relative tolerance 1e-10, Adaptive, up to the 16.98 s the reference is trusted for | 16.88 | 15 to 19 | ✓ Pass |
orderExplicit | Observed order over 6 step sizes, 2 s, explicit Euler | 1.038 | 0.95 to 1.1 | ✓ Pass |
finestOrderExplicit | Observed order from the finest halving, explicit Euler | 1.017 | 0.97 to 1.03 | ✓ Pass |
orderSemiImplicit | Observed order over 6 step sizes, 2 s, semi-implicit Euler | 0.9944 | 0.95 to 1.1 | ✓ Pass |
finestOrderSemiImplicit | Observed order from the finest halving, semi-implicit Euler | 0.999 | 0.97 to 1.03 | ✓ Pass |
orderRungeKutta4 | Observed order over 4 step sizes, 2 s, Runge–Kutta 4 | 3.945 | 3.9 to 4.1 | ✓ Pass |
finestOrderRungeKutta4 | Observed order from the finest halving, Runge–Kutta 4 | 3.993 | 3.9 to 4.1 | ✓ Pass |
- The two starts differ by 1e-9 rad in θ1. The reference's runs separate by 0.1 rad at 16.20 s; the reference is trusted, its own error below 0.001 rad, to 16.98 s, and no comparison goes beyond. A method whose own error at a time is larger than the two runs' separation then cannot say which of the two motions is right: for a chaotic system, the method error, not the uncertainty of the starting state, sets how far ahead it can be trusted.
All 29 result rows
| Case | Method | h (s) | Substeps | Horizon (s) | Max abs error | RMSE | Relative error | Conservation error | Observed order | Steps | Substeps run | Evaluations | Note |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Double pendulum: first 5 s | explicit Euler | 4.88e-4 | 1 | 5 | 3.96 | 0.6621 | 0.2476 | 0.009344 | – | 40,960 | 40,960 | 1.64e5 | angle error first above 0.1 rad at 3.31 s; from θ1 + 1e-9 rad its own run separates by 0.1 rad at 15.70 s (reference 16.20 s) |
| Double pendulum: first 5 s | semi-implicit Euler | 4.88e-4 | 1 | 5 | 0.3194 | 0.04847 | 0.01761 | 0.007292 | – | 40,960 | 40,960 | 1.64e5 | angle error first above 0.1 rad at 6.09 s; from θ1 + 1e-9 rad its own run separates by 0.1 rad at 14.83 s (reference 16.20 s) |
| Double pendulum: first 5 s | Runge–Kutta 4 | 0.003906 | 1 | 5 | 1.05e-5 | 1.68e-6 | 6.96e-7 | 4.17e-8 | – | 5,120 | 5,120 | 81,920 | angle error first above 0.1 rad at 12.48 s; from θ1 + 1e-9 rad its own run separates by 0.1 rad at 16.48 s (reference 16.20 s) |
| Double pendulum: long-run energy | explicit Euler | 4.88e-4 | 1 | 60 | – | – | – | 0.153 | – | 1.23e5 | 1.23e5 | 4.92e5 | final relative energy change 1.53e-1 |
| Double pendulum: long-run energy | semi-implicit Euler | 4.88e-4 | 1 | 60 | – | – | – | 0.08212 | – | 1.23e5 | 1.23e5 | 4.92e5 | final relative energy change -8.03e-2 |
| Double pendulum: long-run energy | Runge–Kutta 4 | 0.003906 | 1 | 60 | – | – | – | 2.00e-6 | – | 15,360 | 15,360 | 2.46e5 | final relative energy change -2.00e-6 |
| Double pendulum: against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.0001) | – | 1 | 60 | – | – | – | 0.04147 | – | 960 | 1,310 | 37,400 | angle error first above 0.1 rad at 6.50 s; energy drift over 60 s 4.15e-2; 1310 steps, 88 rejected, 9349 evaluations of the model |
| Double pendulum: against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.00001) | – | 1 | 60 | – | – | – | 5.40e-4 | – | 960 | 1,788 | 49,200 | angle error first above 0.1 rad at 7.63 s; energy drift over 60 s 5.40e-4; 1788 steps, 102 rejected, 12301 evaluations of the model |
| Double pendulum: against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.000001) | – | 1 | 60 | – | – | – | 1.49e-5 | – | 960 | 2,560 | 69,290 | angle error first above 0.1 rad at 10.50 s; energy drift over 60 s 1.49e-5; 2560 steps, 167 rejected, 17323 evaluations of the model |
| Double pendulum: against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-7) | – | 1 | 60 | – | – | – | 4.27e-7 | – | 960 | 3,601 | 95,430 | angle error first above 0.1 rad at 11.88 s; energy drift over 60 s 4.27e-7; 3601 steps, 215 rejected, 23857 evaluations of the model |
| Double pendulum: against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-8) | – | 1 | 60 | – | – | – | 4.89e-8 | – | 960 | 5,138 | 1.33e5 | angle error first above 0.1 rad at 13.00 s; energy drift over 60 s 4.89e-8; 5138 steps, 252 rejected, 33301 evaluations of the model |
| Double pendulum: against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-9) | – | 1 | 60 | – | – | – | 5.52e-9 | – | 960 | 7,979 | 2.00e5 | angle error first above 0.1 rad at 15.88 s; energy drift over 60 s 5.52e-9; 7979 steps, 212 rejected, 50107 evaluations of the model |
| Double pendulum: against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-10) | – | 1 | 60 | – | – | – | 4.07e-10 | – | 960 | 12,650 | 3.12e5 | angle error first above 0.1 rad at 16.88 s; energy drift over 60 s 4.07e-10; 12646 steps, 194 rejected, 78001 evaluations of the model; energy drift against tolerance: fitted slope 1.303 |
| Double pendulum: convergence | explicit Euler | 0.003906 | 1 | 2 | 1.734 | 0.386 | 0.2076 | – | – | 512 | 512 | 2,048 | |
| Double pendulum: convergence | explicit Euler | 0.001953 | 1 | 2 | 0.8834 | 0.202 | 0.1058 | – | – | 1,024 | 1,024 | 4,096 | |
| Double pendulum: convergence | explicit Euler | 9.77e-4 | 1 | 2 | 0.4187 | 0.09733 | 0.05014 | – | – | 2,048 | 2,048 | 8,192 | |
| Double pendulum: convergence | explicit Euler | 4.88e-4 | 1 | 2 | 0.2013 | 0.04708 | 0.0241 | – | – | 4,096 | 4,096 | 16,380 | |
| Double pendulum: convergence | explicit Euler | 2.44e-4 | 1 | 2 | 0.09842 | 0.0231 | 0.01179 | – | – | 8,192 | 8,192 | 32,770 | |
| Double pendulum: convergence | explicit Euler | 1.22e-4 | 1 | 2 | 0.04863 | 0.01144 | 0.005823 | – | 1.038 | 16,380 | 16,380 | 65,540 | observed order: fitted 1.038; per halving 0.973, 1.077, 1.057, 1.032, 1.017 |
| Double pendulum: convergence | semi-implicit Euler | 0.003906 | 1 | 2 | 0.1345 | 0.03246 | 0.01547 | – | – | 512 | 512 | 2,048 | |
| Double pendulum: convergence | semi-implicit Euler | 0.001953 | 1 | 2 | 0.06794 | 0.01633 | 0.007811 | – | – | 1,024 | 1,024 | 4,096 | |
| Double pendulum: convergence | semi-implicit Euler | 9.77e-4 | 1 | 2 | 0.03416 | 0.008189 | 0.003928 | – | – | 2,048 | 2,048 | 8,192 | |
| Double pendulum: convergence | semi-implicit Euler | 4.88e-4 | 1 | 2 | 0.01713 | 0.0041 | 0.00197 | – | – | 4,096 | 4,096 | 16,380 | |
| Double pendulum: convergence | semi-implicit Euler | 2.44e-4 | 1 | 2 | 0.008578 | 0.002052 | 9.86e-4 | – | – | 8,192 | 8,192 | 32,770 | |
| Double pendulum: convergence | semi-implicit Euler | 1.22e-4 | 1 | 2 | 0.004292 | 0.001026 | 4.93e-4 | – | 0.9944 | 16,380 | 16,380 | 65,540 | observed order: fitted 0.994; per halving 0.986, 0.992, 0.996, 0.998, 0.999 |
| Double pendulum: convergence | Runge–Kutta 4 | 0.003906 | 1 | 2 | 3.76e-7 | 9.34e-8 | 4.50e-8 | – | – | 512 | 512 | 8,192 | |
| Double pendulum: convergence | Runge–Kutta 4 | 0.001953 | 1 | 2 | 2.54e-8 | 6.25e-9 | 3.04e-9 | – | – | 1,024 | 1,024 | 16,380 | |
| Double pendulum: convergence | Runge–Kutta 4 | 9.77e-4 | 1 | 2 | 1.64e-9 | 4.03e-10 | 1.97e-10 | – | – | 2,048 | 2,048 | 32,770 | |
| Double pendulum: convergence | Runge–Kutta 4 | 4.88e-4 | 1 | 2 | 1.03e-10 | 2.53e-11 | 1.24e-11 | – | 3.945 | 4,096 | 4,096 | 65,540 | observed order: fitted 3.945; per halving 3.890, 3.949, 3.993 |
Bouncing ball on a stiff floor
A ball dropped onto a floor that is a stiff spring and damper while the ball is below it, one node: the switch is a condition on the height, located and stepped to by Runge–Kutta 4, Adaptive and Stiff; trajectory error and observed order against the exact piecewise solution, each contact's start and end against the exact instants, Adaptive's and Stiff's error against their tolerance with the work they took, and explicit Euler, which does not locate.
Directory benchmarks/mechanical/bouncingBall/ · models bouncingBall.kjt
- Exact
- Konjugate, Runge–Kutta 4
Data table (every 4th point; all 129 are in plots/bouncingBallHeight.csv)
| Time (s) | Exact | Konjugate, Runge–Kutta 4 |
|---|---|---|
| 0 | 1 | 1 |
| 0.0625 | 0.9808 | 0.9808 |
| 0.125 | 0.9234 | 0.9234 |
| 0.1875 | 0.8276 | 0.8276 |
| 0.25 | 0.6934 | 0.6934 |
| 0.3125 | 0.521 | 0.521 |
| 0.375 | 0.3102 | 0.3102 |
| 0.4375 | 0.06115 | 0.06115 |
| 0.5 | 0.05101 | 0.05101 |
| 0.5625 | 0.2215 | 0.2215 |
| 0.625 | 0.3537 | 0.3537 |
| 0.6875 | 0.4476 | 0.4476 |
| 0.75 | 0.5032 | 0.5032 |
| 0.8125 | 0.5204 | 0.5204 |
| 0.875 | 0.4993 | 0.4993 |
| 0.9375 | 0.4399 | 0.4399 |
| 1 | 0.3422 | 0.3422 |
| 1.063 | 0.2062 | 0.2062 |
| 1.125 | 0.0318 | 0.0318 |
| 1.188 | 0.04412 | 0.04412 |
| 1.25 | 0.1561 | 0.1561 |
| 1.313 | 0.2298 | 0.2298 |
| 1.375 | 0.2651 | 0.2651 |
| 1.438 | 0.2622 | 0.2622 |
| 1.5 | 0.2209 | 0.2209 |
| 1.563 | 0.1413 | 0.1413 |
| 1.625 | 0.02332 | 0.02332 |
| 1.688 | 0.0301 | 0.0301 |
| 1.75 | 0.1014 | 0.1014 |
| 1.813 | 0.1344 | 0.1344 |
| 1.875 | 0.129 | 0.129 |
| 1.938 | 0.08534 | 0.08534 |
| 2 | 0.00335 | 0.00335 |
- Konjugate, explicit Euler
- Konjugate, Runge–Kutta 4
- Fourth order (slope 4)
Data table
| Konjugate, explicit Euler: Global step h (s) | Relative error | Konjugate, Runge–Kutta 4: Global step h (s) | Relative error | Fourth order (slope 4): Global step h (s) | Relative error |
|---|---|---|---|---|---|
| 2.44e-4 | 0.6358 | 0.001953 | 2.80e-4 | 0.001953 | 2.80e-4 |
| 1.22e-4 | 0.5189 | 9.77e-4 | 2.43e-5 | 9.77e-4 | 1.75e-5 |
| 6.10e-5 | 0.4138 | 4.88e-4 | 1.71e-6 | 4.88e-4 | 1.10e-6 |
| 3.05e-5 | 0.2012 | 2.44e-4 | 1.14e-7 | 2.44e-4 | 6.84e-8 |
- Konjugate, Adaptive, Dormand–Prince 5(4)
- Konjugate, Stiff, Rodas4
- Proportional (slope 1)
Data table
| Relative tolerance | Konjugate, Adaptive, Dormand–Prince 5(4) | Konjugate, Stiff, Rodas4 | Proportional (slope 1) |
|---|---|---|---|
| 1.00e-4 | 0.001422 | 3.12e-4 | 0.001422 |
| 1.00e-5 | 1.13e-4 | 3.39e-5 | 1.42e-4 |
| 1.00e-6 | 1.01e-5 | 3.40e-6 | 1.42e-5 |
| 1.00e-7 | 8.75e-7 | 3.39e-7 | 1.42e-6 |
| 1.00e-8 | 9.10e-8 | 3.46e-8 | 1.42e-7 |
| 1.00e-9 | 8.92e-9 | 3.47e-9 | 1.42e-8 |
| 1.00e-10 | 8.75e-10 | 3.53e-10 | 1.42e-9 |
Checks
| Check | What it measures | Value | Threshold | Result |
|---|---|---|---|---|
orderExplicit | Observed order over 4 step sizes, explicit Euler | 0.5306 | 0.4 to 0.7 | ✓ Pass |
relativeErrorExplicit | Largest error relative to range over 2 s at h = 2^-15 s, explicit Euler | 0.2012 | ≤ 0.26 | ✓ Pass |
orderRungeKutta4 | Observed order over 4 step sizes, Runge–Kutta 4 | 3.761 | 3.6 to 4 | ✓ Pass |
relativeErrorRungeKutta4 | Largest error relative to range over 2 s at h = 2^-12 s, Runge–Kutta 4 | 1.14e-7 | ≤ 1.50e-7 | ✓ Pass |
switchTimeErrorRungeKutta4 | Largest error in a contact's start or end (s) at h = 2^-12 s, Runge–Kutta 4 | 5.89e-9 | ≤ 7.70e-9 | ✓ Pass |
switchTimeErrorAdaptive | Largest error in a contact's start or end (s), Adaptive at relative tolerance 1e-8 | 4.69e-9 | ≤ 6.10e-9 | ✓ Pass |
toleranceSlopeAdaptive | Adaptive: slope of log error against log tolerance over 7 tolerances | 1.032 | 0.9 to 1.15 | ✓ Pass |
toleranceFactorAdaptive | Adaptive: largest error over its relative tolerance | 14.22 | ≤ 20 | ✓ Pass |
switchTimeErrorRodas4 | Largest error in a contact's start or end (s), Stiff at relative tolerance 1e-8 | 1.79e-9 | ≤ 2.30e-9 | ✓ Pass |
toleranceSlopeRodas4 | Stiff: slope of log error against log tolerance over 7 tolerances | 0.9932 | 0.9 to 1.1 | ✓ Pass |
toleranceFactorRodas4 | Stiff: largest error over its relative tolerance | 3.533 | ≤ 4.5 | ✓ Pass |
exactRestitution | The exact model's first bounce: exit speed over entry speed, from its closed form (about e^(-ζπ/√(1-ζ²))) | 0.7214 | 0.715 to 0.73 | ✓ Pass |
- The exact motion over 2 s has 3 contacts; each returns 0.7214, 0.7183, 0.7139 of its entry speed (a contact that ends where the height crosses zero, not where the force does, so slightly more than e^(-ζπ/√(1-ζ²)) = 0.7292).
All 22 result rows
| Case | Method | h (s) | Substeps | Horizon (s) | Max abs error | RMSE | Relative error | Observed order | Steps | Substeps run | Evaluations | Note |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Bouncing ball: trajectory | explicit Euler | 2.44e-4 | 1 | 2 | 4.756 | 0.6142 | 0.6358 | – | 8,192 | 8,192 | 16,380 | switches not located |
| Bouncing ball: trajectory | explicit Euler | 1.22e-4 | 1 | 2 | 3.881 | 0.4265 | 0.5189 | – | 16,380 | 16,380 | 32,770 | switches not located |
| Bouncing ball: trajectory | explicit Euler | 6.10e-5 | 1 | 2 | 3.095 | 0.2468 | 0.4138 | – | 32,770 | 32,770 | 65,540 | switches not located |
| Bouncing ball: trajectory | explicit Euler | 3.05e-5 | 1 | 2 | 1.505 | 0.1211 | 0.2012 | 0.5306 | 65,540 | 65,540 | 1.31e5 | switches not located; observed order: fitted 0.531; per halving 0.293, 0.327, 1.040 |
| Bouncing ball: trajectory | Runge–Kutta 4 | 0.001953 | 1 | 2 | 0.002097 | 2.18e-4 | 2.80e-4 | – | 1,024 | 1,024 | 8,300 | 6 switches located; largest switch-time error 1.45e-5 s |
| Bouncing ball: trajectory | Runge–Kutta 4 | 9.77e-4 | 1 | 2 | 1.82e-4 | 1.89e-5 | 2.43e-5 | – | 2,048 | 2,048 | 16,490 | 6 switches located; largest switch-time error 1.25e-6 s |
| Bouncing ball: trajectory | Runge–Kutta 4 | 4.88e-4 | 1 | 2 | 1.28e-5 | 1.33e-6 | 1.71e-6 | – | 4,096 | 4,096 | 32,880 | 6 switches located; largest switch-time error 8.83e-8 s |
| Bouncing ball: trajectory | Runge–Kutta 4 | 2.44e-4 | 1 | 2 | 8.54e-7 | 8.90e-8 | 1.14e-7 | 3.761 | 8,192 | 8,192 | 65,640 | 6 switches located; largest switch-time error 5.89e-9 s; observed order: fitted 3.761; per halving 3.529, 3.828, 3.904 |
| Bouncing ball: against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.0001) | 0.01563 | 1 | 2 | 0.01064 | 0.00109 | 0.001422 | – | 128 | 150 | 2,214 | 6 switches located, largest switch-time error 7.35e-5 s; 150 steps, 6 rejected, 1107 evaluations of the model |
| Bouncing ball: against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.00001) | 0.01563 | 1 | 2 | 8.45e-4 | 8.85e-5 | 1.13e-4 | – | 128 | 165 | 2,382 | 6 switches located, largest switch-time error 5.81e-6 s; 165 steps, 5 rejected, 1191 evaluations of the model |
| Bouncing ball: against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.000001) | 0.01563 | 1 | 2 | 7.55e-5 | 8.03e-6 | 1.01e-5 | – | 128 | 185 | 2,658 | 6 switches located, largest switch-time error 5.19e-7 s; 185 steps, 8 rejected, 1329 evaluations of the model |
| Bouncing ball: against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-7) | 0.01563 | 1 | 2 | 6.55e-6 | 6.86e-7 | 8.75e-7 | – | 128 | 215 | 3,042 | 6 switches located, largest switch-time error 4.50e-8 s; 215 steps, 10 rejected, 1521 evaluations of the model |
| Bouncing ball: against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-8) | 0.01563 | 1 | 2 | 6.81e-7 | 7.12e-8 | 9.10e-8 | – | 128 | 262 | 3,606 | 6 switches located, largest switch-time error 4.69e-9 s; 262 steps, 10 rejected, 1803 evaluations of the model |
| Bouncing ball: against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-9) | 0.01563 | 1 | 2 | 6.67e-8 | 6.96e-9 | 8.92e-9 | – | 128 | 336 | 4,494 | 6 switches located, largest switch-time error 4.59e-10 s; 336 steps, 10 rejected, 2247 evaluations of the model |
| Bouncing ball: against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-10) | 0.01563 | 1 | 2 | 6.55e-9 | 6.82e-10 | 8.75e-10 | – | 128 | 457 | 5,946 | 6 switches located, largest switch-time error 4.51e-11 s; 457 steps, 10 rejected, 2973 evaluations of the model; error against tolerance: fitted slope 1.032 |
| Bouncing ball: against tolerance | Stiff, Rodas4 (relative tolerance 0.0001) | 0.01563 | 1 | 2 | 0.002331 | 2.42e-4 | 3.12e-4 | – | 128 | 167 | 2,156 | 6 switches located, largest switch-time error 1.61e-5 s; 167 steps, 9 rejected, 1078 evaluations of the model |
| Bouncing ball: against tolerance | Stiff, Rodas4 (relative tolerance 0.00001) | 0.01563 | 1 | 2 | 2.54e-4 | 2.63e-5 | 3.39e-5 | – | 128 | 192 | 2,486 | 6 switches located, largest switch-time error 1.75e-6 s; 192 steps, 12 rejected, 1243 evaluations of the model |
| Bouncing ball: against tolerance | Stiff, Rodas4 (relative tolerance 0.000001) | 0.01563 | 1 | 2 | 2.54e-5 | 2.65e-6 | 3.40e-6 | – | 128 | 236 | 2,964 | 6 switches located, largest switch-time error 1.75e-7 s; 236 steps, 7 rejected, 1482 evaluations of the model |
| Bouncing ball: against tolerance | Stiff, Rodas4 (relative tolerance 1e-7) | 0.01563 | 1 | 2 | 2.54e-6 | 2.64e-7 | 3.39e-7 | – | 128 | 316 | 3,924 | 6 switches located, largest switch-time error 1.75e-8 s; 316 steps, 7 rejected, 1962 evaluations of the model |
| Bouncing ball: against tolerance | Stiff, Rodas4 (relative tolerance 1e-8) | 0.01563 | 1 | 2 | 2.59e-7 | 2.69e-8 | 3.46e-8 | – | 128 | 450 | 5,542 | 6 switches located, largest switch-time error 1.79e-9 s; 450 steps, 8 rejected, 2771 evaluations of the model |
| Bouncing ball: against tolerance | Stiff, Rodas4 (relative tolerance 1e-9) | 0.01563 | 1 | 2 | 2.59e-8 | 2.69e-9 | 3.47e-9 | – | 128 | 692 | 8,456 | 6 switches located, largest switch-time error 1.79e-10 s; 692 steps, 9 rejected, 4228 evaluations of the model |
| Bouncing ball: against tolerance | Stiff, Rodas4 (relative tolerance 1e-10) | 0.01563 | 1 | 2 | 2.64e-9 | 2.75e-10 | 3.53e-10 | – | 128 | 1,125 | 13,660 | 6 switches located, largest switch-time error 1.82e-11 s; 1125 steps, 10 rejected, 6831 evaluations of the model; error against tolerance: fitted slope 0.993 |
Switching circuits
A synchronous buck converter, switched at 20 kHz and averaged, against its exact piecewise solution, and a half-wave rectifier with a piecewise-linear diode against an event-located SciPy solution, both cross-checked with ngspice: currents, voltages and energy, under explicit Euler and Runge–Kutta 4, which locates each switch, and Adaptive and Stiff, which locate them too, against their tolerance.
Directory benchmarks/electrical/switchedCircuits/ · models buckSwitched.kjt, buckAveraged.kjt, rectifier.kjt · numerical reference reference.json: Buck: scipy.linalg.expm interval by interval (exact); rectifier: solve_ivp DOP853, rtol = atol = 1e-12, restarted at each diode switching instant; ngspice transient runs of both as a cross-check (SciPy 1.13.1, NumPy 2.0.2)
- Exact, switched (matrix exponential per interval)
- Konjugate, switched, explicit Euler
- Konjugate, switched, Runge–Kutta 4
- Exact, averaged
Data table (every 7th point; all 263 are in plots/buckInductorCurrent.csv)
| Time (ms) | Exact, switched (matrix exponential per interval) | Konjugate, switched, explicit Euler | Konjugate, switched, Runge–Kutta 4 | Exact, averaged |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 0.05341 | 2.531 | 2.477 | 2.531 | 2.406 |
| 0.1068 | 4.291 | 4.305 | 4.291 | 4.158 |
| 0.1602 | 5.108 | 5.068 | 5.108 | 4.994 |
| 0.2136 | 5.087 | 5.101 | 5.087 | 4.947 |
| 0.267 | 4.514 | 4.456 | 4.514 | 4.259 |
| 0.3204 | 3.684 | 3.716 | 3.684 | 3.27 |
| 0.3738 | 2.601 | 2.507 | 2.601 | 2.304 |
| 0.4272 | 1.822 | 1.742 | 1.822 | 1.596 |
| 0.4807 | 1.42 | 1.374 | 1.42 | 1.253 |
| 0.5341 | 1.355 | 1.353 | 1.355 | 1.264 |
| 0.5875 | 1.514 | 1.553 | 1.514 | 1.535 |
| 0.6409 | 1.758 | 1.827 | 1.758 | 1.929 |
| 0.6943 | 1.964 | 2.047 | 1.964 | 2.317 |
| 0.7477 | 2.05 | 2.026 | 2.05 | 2.603 |
| 0.8011 | 2.117 | 2.095 | 2.117 | 2.744 |
| 0.8545 | 2.327 | 2.257 | 2.327 | 2.742 |
| 0.9079 | 2.446 | 2.443 | 2.446 | 2.636 |
| 0.9613 | 2.53 | 2.471 | 2.53 | 2.479 |
| 1.015 | 2.628 | 2.624 | 2.628 | 2.323 |
| 1.068 | 2.772 | 2.703 | 2.772 | 2.207 |
| 1.122 | 2.793 | 2.742 | 2.793 | 2.15 |
| 1.175 | 2.642 | 2.621 | 2.642 | 2.149 |
| 1.228 | 2.527 | 2.54 | 2.527 | 2.191 |
| 1.282 | 2.427 | 2.468 | 2.427 | 2.253 |
| 1.335 | 2.322 | 2.382 | 2.322 | 2.316 |
| 1.389 | 2.198 | 2.265 | 2.198 | 2.363 |
| 1.442 | 2.05 | 2.006 | 2.05 | 2.386 |
| 1.495 | 1.882 | 1.856 | 1.882 | 2.387 |
| 1.549 | 1.7 | 1.697 | 1.7 | 2.371 |
| 1.602 | 1.773 | 1.764 | 1.773 | 2.346 |
| 1.656 | 1.997 | 1.94 | 1.997 | 2.321 |
| 1.709 | 2.228 | 2.232 | 2.228 | 2.302 |
| 1.762 | 2.467 | 2.409 | 2.467 | 2.292 |
| 1.816 | 2.715 | 2.604 | 2.715 | 2.292 |
| 1.869 | 2.968 | 2.932 | 2.968 | 2.298 |
| 1.923 | 2.909 | 2.921 | 2.909 | 2.308 |
| 1.976 | 2.753 | 2.791 | 2.753 | 2.318 |
- Reference (DOP853, events)
- Source voltage
- Konjugate, explicit Euler
- Konjugate, Runge–Kutta 4
Data table (every 7th point; all 257 are in plots/rectifierVoltage.csv)
| Time (ms) | Reference (DOP853, events) | Source voltage | Konjugate, explicit Euler | Konjugate, Runge–Kutta 4 |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 3.418 | 7.846 | 8.79 | 7.848 | 7.846 |
| 6.836 | 9.536 | 8.382 | 9.54 | 9.536 |
| 10.25 | 8.868 | -0.7968 | 8.87 | 8.868 |
| 13.67 | 8.245 | -9.142 | 8.248 | 8.245 |
| 17.09 | 7.667 | -7.921 | 7.669 | 7.667 |
| 20.51 | 7.129 | 1.589 | 7.131 | 7.129 |
| 23.93 | 8.725 | 9.436 | 8.725 | 8.725 |
| 27.34 | 9.435 | 7.41 | 9.438 | 9.435 |
| 30.76 | 8.773 | -2.37 | 8.776 | 8.773 |
| 34.18 | 8.158 | -9.67 | 8.16 | 8.158 |
| 37.6 | 7.585 | -6.851 | 7.588 | 7.585 |
| 41.02 | 7.053 | 3.137 | 7.055 | 7.053 |
| 44.43 | 9.306 | 9.842 | 9.308 | 9.306 |
| 47.85 | 9.334 | 6.249 | 9.337 | 9.334 |
| 51.27 | 8.679 | -3.883 | 8.682 | 8.679 |
| 54.69 | 8.07 | -9.952 | 8.072 | 8.07 |
| 58.11 | 7.504 | -5.607 | 7.506 | 7.504 |
| 61.52 | 6.977 | 4.605 | 6.979 | 6.977 |
| 64.94 | 9.671 | 9.998 | 9.674 | 9.671 |
| 68.36 | 9.233 | 4.929 | 9.236 | 9.233 |
| 71.78 | 8.586 | -5.298 | 8.588 | 8.586 |
| 75.2 | 7.983 | -9.981 | 7.986 | 7.983 |
| 78.61 | 7.423 | -4.22 | 7.425 | 7.423 |
| 82.03 | 6.903 | 5.957 | 6.904 | 6.903 |
| 85.45 | 9.799 | 9.901 | 9.802 | 9.799 |
| 88.87 | 9.134 | 3.484 | 9.137 | 9.134 |
| 92.29 | 8.493 | -6.578 | 8.496 | 8.493 |
| 95.7 | 7.897 | -9.757 | 7.9 | 7.897 |
| 99.12 | 7.343 | -2.726 | 7.346 | 7.343 |
| 102.5 | 6.872 | 7.157 | 6.87 | 6.872 |
| 106 | 9.718 | 9.551 | 9.721 | 9.718 |
| 109.4 | 9.036 | 1.951 | 9.039 | 9.036 |
| 112.8 | 8.402 | -7.691 | 8.405 | 8.402 |
| 116.2 | 7.813 | -9.285 | 7.815 | 7.813 |
| 119.6 | 7.265 | -1.163 | 7.267 | 7.265 |
| 123 | 7.42 | 8.176 | 7.415 | 7.42 |
- Switched, explicit Euler
- Switched, Runge–Kutta 4
- Averaged, explicit Euler
- Averaged, Runge–Kutta 4
Data table
| Switched, explicit Euler: Step h (s) | Relative error | Switched, Runge–Kutta 4: Step h (s) | Relative error | Averaged, explicit Euler: Step h (s) | Relative error | Averaged, Runge–Kutta 4: Step h (s) | Relative error |
|---|---|---|---|---|---|---|---|
| 7.63e-6 | 0.2207 | 7.63e-6 | 2.80e-7 | 7.63e-6 | 0.05084 | 7.63e-6 | 3.62e-7 |
| 3.81e-6 | 0.1729 | 3.81e-6 | 1.92e-8 | 3.81e-6 | 0.02422 | 3.81e-6 | 2.23e-8 |
| 1.91e-6 | 0.05619 | 1.91e-6 | 1.24e-9 | 1.91e-6 | 0.01183 | 1.91e-6 | 1.39e-9 |
| 9.54e-7 | 0.0279 | 9.54e-7 | 7.88e-11 | 9.54e-7 | 0.005846 | 9.54e-7 | 8.63e-11 |
| 4.77e-7 | 0.008808 | 4.77e-7 | 4.97e-12 | 4.77e-7 | 0.002906 | – | – |
| 2.38e-7 | 0.005855 | 2.38e-7 | 3.17e-13 | 2.38e-7 | 0.001449 | – | – |
- Explicit Euler
- Runge–Kutta 4
Data table
| Step h (s) | Explicit Euler | Runge–Kutta 4 |
|---|---|---|
| 2.44e-4 | 0.01826 | 5.26e-5 |
| 1.22e-4 | 0.007939 | 2.63e-6 |
| 6.10e-5 | 0.003737 | 1.47e-7 |
| 3.05e-5 | 0.001817 | 8.68e-9 |
| 1.53e-5 | 8.96e-4 | 5.27e-10 |
| 7.63e-6 | 4.45e-4 | 3.24e-11 |
Checks
| Check | What it measures | Value | Threshold | Result |
|---|---|---|---|---|
switchedExplicitRelativeError | Buck, switched: largest current/voltage error relative to range, explicit Euler, h = 2^-20 s | 0.0279 | ≤ 0.035 | ✓ Pass |
switchedExplicitInputEnergyError | Buck, switched: largest error in the energy drawn from the input, relative to the exact total, explicit Euler | 0.0224 | ≤ 0.029 | ✓ Pass |
switchedExplicitEnergyBalanceDefect | Buck, switched: energy-balance defect E_in - stored - lost - delivered from Konjugate's own states, relative to the energy drawn, explicit Euler | 0.01532 | ≤ 0.02 | ✓ Pass |
switchedExplicitOrder | Buck, switched: observed order of the error in h, explicit Euler (fitted over every h) | 1.145 | 1.03 to 1.26 | ✓ Pass |
switchedRungeKutta4RelativeError | Buck, switched: largest current/voltage error relative to range, Runge–Kutta 4, h = 2^-20 s | 7.88e-11 | ≤ 1.10e-10 | ✓ Pass |
switchedRungeKutta4InputEnergyError | Buck, switched: largest error in the energy drawn from the input, relative to the exact total, Runge–Kutta 4 | 1.33e-10 | ≤ 1.80e-10 | ✓ Pass |
switchedRungeKutta4EnergyBalanceDefect | Buck, switched: energy-balance defect E_in - stored - lost - delivered from Konjugate's own states, relative to the energy drawn, Runge–Kutta 4 | 2.59e-10 | ≤ 3.40e-10 | ✓ Pass |
switchedRungeKutta4Order | Buck, switched: observed order of the error in h, Runge–Kutta 4 (fitted over every h) | 3.956 | 3.8 to 4.2 | ✓ Pass |
averagedExplicitRelativeError | Buck, averaged: largest current/voltage error relative to range, explicit Euler, h = 2^-20 s | 0.005846 | ≤ 0.0074 | ✓ Pass |
averagedExplicitInputEnergyError | Buck, averaged: largest error in the energy drawn from the input, relative to the exact total, explicit Euler | 1.65e-4 | ≤ 2.10e-4 | ✓ Pass |
averagedExplicitEnergyBalanceDefect | Buck, averaged: energy-balance defect E_in - stored - lost - delivered from Konjugate's own states, relative to the energy drawn, explicit Euler | 2.44e-4 | ≤ 3.10e-4 | ✓ Pass |
averagedExplicitOrder | Buck, averaged: observed order of the error in h, explicit Euler (fitted over every h) | 1.025 | 0.95 to 1.1 | ✓ Pass |
averagedRungeKutta4RelativeError | Buck, averaged: largest current/voltage error relative to range, Runge–Kutta 4, h = 2^-20 s | 8.63e-11 | ≤ 1.10e-10 | ✓ Pass |
averagedRungeKutta4InputEnergyError | Buck, averaged: largest error in the energy drawn from the input, relative to the exact total, Runge–Kutta 4 | 2.46e-12 | ≤ 3.10e-12 | ✓ Pass |
averagedRungeKutta4EnergyBalanceDefect | Buck, averaged: energy-balance defect E_in - stored - lost - delivered from Konjugate's own states, relative to the energy drawn, Runge–Kutta 4 | 2.23e-12 | ≤ 1.00e-10 | ✓ Pass |
averagedRungeKutta4Order | Buck, averaged: observed order of the error in h, Runge–Kutta 4 (fitted over every h) | 4.011 | 3.9 to 4.1 | ✓ Pass |
buckReferenceAgreement | Buck, switched: this exact reference against SciPy's expm interval by interval (reference.json), largest difference relative to each column's magnitude | 2.25e-14 | ≤ 1.00e-10 | ✓ Pass |
buckAveragedReferenceAgreement | Buck, averaged: this exact reference against SciPy's expm (reference.json) | 1.72e-14 | ≤ 1.00e-10 | ✓ Pass |
buckNgspiceAgreement | Buck, switched: ngspice (real switches, 1 ns gate edges) against the exact solution, largest difference relative to each column's magnitude | 1.05e-5 | ≤ 3.00e-5 | ✓ Pass |
rectifierExplicitRelativeError | Rectifier: largest capacitor-voltage error relative to range, explicit Euler, h = 2^-16 s | 8.96e-4 | ≤ 0.0012 | ✓ Pass |
rectifierExplicitDiodeEnergyError | Rectifier: largest error in the energy lost in the diode, relative to the reference total, explicit Euler | 0.002677 | ≤ 0.0034 | ✓ Pass |
rectifierExplicitEnergyBalanceDefect | Rectifier: energy-balance defect (source work - stored - diode - load) from Konjugate's own states, relative to the source's work, explicit Euler | 0.001393 | ≤ 0.0018 | ✓ Pass |
rectifierExplicitOrder | Rectifier: observed order of the error in h, explicit Euler (fitted over every h) | 1.065 | 0.95 to 1.18 | ✓ Pass |
rectifierRungeKutta4RelativeError | Rectifier: largest capacitor-voltage error relative to range, Runge–Kutta 4, h = 2^-16 s | 5.27e-10 | ≤ 6.90e-10 | ✓ Pass |
rectifierRungeKutta4DiodeEnergyError | Rectifier: largest error in the energy lost in the diode, relative to the reference total, Runge–Kutta 4 | 5.63e-9 | ≤ 7.40e-9 | ✓ Pass |
rectifierRungeKutta4EnergyBalanceDefect | Rectifier: energy-balance defect (source work - stored - diode - load) from Konjugate's own states, relative to the source's work, Runge–Kutta 4 | 4.91e-10 | ≤ 6.40e-10 | ✓ Pass |
rectifierRungeKutta4Order | Rectifier: observed order of the error in h, Runge–Kutta 4 (fitted over every h) | 4.117 | 3.9 to 4.3 | ✓ Pass |
buckToleranceFactorAdaptive | Buck, switched: Adaptive's largest error over its relative tolerance | 0.06205 | ≤ 1 | ✓ Pass |
rectifierToleranceSlopeAdaptive | Rectifier: Adaptive's slope of log error against log tolerance, every switch located | 1.044 | 0.9 to 1.2 | ✓ Pass |
rectifierToleranceFactorAdaptive | Rectifier: Adaptive's largest error over its relative tolerance | 0.4819 | ≤ 1 | ✓ Pass |
buckToleranceFactorRodas4 | Buck, switched: Stiff's largest error over its relative tolerance | 0.05163 | ≤ 1 | ✓ Pass |
rectifierToleranceSlopeRodas4 | Rectifier: Stiff's slope of log error against log tolerance, every switch located | 0.9285 | 0.85 to 1.1 | ✓ Pass |
rectifierToleranceFactorRodas4 | Rectifier: Stiff's largest error over its relative tolerance | 0.1482 | ≤ 1 | ✓ Pass |
rectifierNgspiceAgreement | Rectifier: ngspice (a switch controlled by its own voltage) against the SciPy reference, largest difference relative to the voltage's magnitude | 2.12e-7 | ≤ 5.00e-7 | ✓ Pass |
- The averaged buck departs from the switched one by 22.5 % of range at most (both exact): that is the ripple and the startup the average leaves out, a property of the model rather than of Konjugate.
- Konjugate has no event location: a switch or a diode changes state at the first step or stage that starts after the instant it should. Runge–Kutta 4 is therefore about first order on the switched buck (its advantage a constant factor) and about second order on the rectifier, whose diode switches on the state; on the averaged converter, which is smooth, it is fourth order.
All 65 result rows
| Case | Method | h (s) | Substeps | Horizon (s) | Max abs error | RMSE | Relative error | Conservation error | Observed order | Steps | Substeps run | Evaluations | Note |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Buck, switched: inductor current and output voltage | explicit Euler | 7.63e-6 | 1 | 0.007813 | 1.251 | 0.4065 | 0.2207 | 0.138 | – | 1,024 | 3,072 | 8,192 | input-energy error 1.19e-1 of the total; conservation = energy-balance defect / energy drawn |
| Buck, switched: inductor current and output voltage | explicit Euler | 3.81e-6 | 1 | 0.007813 | 0.9795 | 0.286 | 0.1729 | 0.06474 | – | 2,048 | 6,144 | 16,380 | input-energy error 6.88e-2 of the total; conservation = energy-balance defect / energy drawn |
| Buck, switched: inductor current and output voltage | explicit Euler | 1.91e-6 | 1 | 0.007813 | 0.3184 | 0.09567 | 0.05619 | 0.03117 | – | 4,096 | 12,290 | 32,770 | input-energy error 3.81e-2 of the total; conservation = energy-balance defect / energy drawn |
| Buck, switched: inductor current and output voltage | explicit Euler | 9.54e-7 | 1 | 0.007813 | 0.1581 | 0.04042 | 0.0279 | 0.01532 | – | 8,192 | 24,580 | 65,540 | input-energy error 2.24e-2 of the total; conservation = energy-balance defect / energy drawn |
| Buck, switched: inductor current and output voltage | explicit Euler | 4.77e-7 | 1 | 0.007813 | 0.04991 | 0.01729 | 0.008808 | 0.007564 | – | 16,380 | 49,150 | 1.31e5 | input-energy error 9.92e-3 of the total; conservation = energy-balance defect / energy drawn |
| Buck, switched: inductor current and output voltage | explicit Euler | 2.38e-7 | 1 | 0.007813 | 0.03318 | 0.009808 | 0.005855 | 0.003759 | – | 32,770 | 98,300 | 2.62e5 | input-energy error 3.59e-3 of the total; conservation = energy-balance defect / energy drawn |
| Buck, switched: error order in h | explicit Euler | – | 1 | – | – | – | – | – | 1.145 | – | – | – | pairwise 0.352, 1.621, 1.010, 1.664, 0.589 |
| Buck, switched: inductor current and output voltage | Runge–Kutta 4 | 7.63e-6 | 1 | 0.007813 | 1.81e-6 | 3.39e-7 | 2.80e-7 | 8.32e-7 | – | 1,024 | 3,072 | 55,230 | input-energy error 4.09e-7 of the total; conservation = energy-balance defect / energy drawn |
| Buck, switched: inductor current and output voltage | Runge–Kutta 4 | 3.81e-6 | 1 | 0.007813 | 1.23e-7 | 2.32e-8 | 1.92e-8 | 6.01e-8 | – | 2,048 | 6,144 | 88,000 | input-energy error 3.02e-8 of the total; conservation = energy-balance defect / energy drawn |
| Buck, switched: inductor current and output voltage | Runge–Kutta 4 | 1.91e-6 | 1 | 0.007813 | 8.02e-9 | 1.52e-9 | 1.24e-9 | 4.02e-9 | – | 4,096 | 12,290 | 1.54e5 | input-energy error 2.05e-9 of the total; conservation = energy-balance defect / energy drawn |
| Buck, switched: inductor current and output voltage | Runge–Kutta 4 | 9.54e-7 | 1 | 0.007813 | 5.10e-10 | 9.74e-11 | 7.88e-11 | 2.59e-10 | – | 8,192 | 24,580 | 2.85e5 | input-energy error 1.33e-10 of the total; conservation = energy-balance defect / energy drawn |
| Buck, switched: inductor current and output voltage | Runge–Kutta 4 | 4.77e-7 | 1 | 0.007813 | 3.21e-11 | 6.14e-12 | 4.97e-12 | 1.65e-11 | – | 16,380 | 49,150 | 5.47e5 | input-energy error 8.46e-12 of the total; conservation = energy-balance defect / energy drawn |
| Buck, switched: inductor current and output voltage | Runge–Kutta 4 | 2.38e-7 | 1 | 0.007813 | 2.02e-12 | 4.16e-13 | 3.17e-13 | 1.04e-12 | – | 32,770 | 98,300 | 1.07e6 | input-energy error 5.42e-13 of the total; conservation = energy-balance defect / energy drawn |
| Buck, switched: error order in h | Runge–Kutta 4 | – | 1 | – | – | – | – | – | 3.956 | – | – | – | pairwise 3.864, 3.958, 3.970, 3.987, 3.969 |
| Buck, averaged: inductor current and output voltage | explicit Euler | 7.63e-6 | 1 | 0.007813 | 0.2593 | 0.05598 | 0.05084 | 0.002214 | – | 1,024 | 3,072 | 8,192 | input-energy error 1.41e-3 of the total; conservation = energy-balance defect / energy drawn |
| Buck, averaged: inductor current and output voltage | explicit Euler | 3.81e-6 | 1 | 0.007813 | 0.1254 | 0.02647 | 0.02422 | 0.001029 | – | 2,048 | 6,144 | 16,380 | input-energy error 6.80e-4 of the total; conservation = energy-balance defect / energy drawn |
| Buck, averaged: inductor current and output voltage | explicit Euler | 1.91e-6 | 1 | 0.007813 | 0.06169 | 0.01288 | 0.01183 | 4.97e-4 | – | 4,096 | 12,290 | 32,770 | input-energy error 3.34e-4 of the total; conservation = energy-balance defect / energy drawn |
| Buck, averaged: inductor current and output voltage | explicit Euler | 9.54e-7 | 1 | 0.007813 | 0.0306 | 0.006359 | 0.005846 | 2.44e-4 | – | 8,192 | 24,580 | 65,540 | input-energy error 1.65e-4 of the total; conservation = energy-balance defect / energy drawn |
| Buck, averaged: inductor current and output voltage | explicit Euler | 4.77e-7 | 1 | 0.007813 | 0.01524 | 0.003159 | 0.002906 | 1.21e-4 | – | 16,380 | 49,150 | 1.31e5 | input-energy error 8.23e-5 of the total; conservation = energy-balance defect / energy drawn |
| Buck, averaged: inductor current and output voltage | explicit Euler | 2.38e-7 | 1 | 0.007813 | 0.007602 | 0.001575 | 0.001449 | 6.03e-5 | – | 32,770 | 98,300 | 2.62e5 | input-energy error 4.11e-5 of the total; conservation = energy-balance defect / energy drawn |
| Buck, averaged: error order in h | explicit Euler | – | 1 | – | – | – | – | – | 1.025 | – | – | – | pairwise 1.070, 1.034, 1.017, 1.008, 1.004 |
| Buck, averaged: inductor current and output voltage | Runge–Kutta 4 | 7.63e-6 | 1 | 0.007813 | 1.95e-6 | 3.97e-7 | 3.62e-7 | 8.61e-9 | – | 1,024 | 3,072 | 32,770 | input-energy error 1.02e-8 of the total; conservation = energy-balance defect / energy drawn |
| Buck, averaged: inductor current and output voltage | Runge–Kutta 4 | 3.81e-6 | 1 | 0.007813 | 1.21e-7 | 2.46e-8 | 2.23e-8 | 5.57e-10 | – | 2,048 | 6,144 | 65,540 | input-energy error 6.34e-10 of the total; conservation = energy-balance defect / energy drawn |
| Buck, averaged: inductor current and output voltage | Runge–Kutta 4 | 1.91e-6 | 1 | 0.007813 | 7.52e-9 | 1.53e-9 | 1.39e-9 | 3.54e-11 | – | 4,096 | 12,290 | 1.31e5 | input-energy error 3.95e-11 of the total; conservation = energy-balance defect / energy drawn |
| Buck, averaged: inductor current and output voltage | Runge–Kutta 4 | 9.54e-7 | 1 | 0.007813 | 4.69e-10 | 9.55e-11 | 8.63e-11 | 2.23e-12 | – | 8,192 | 24,580 | 2.62e5 | input-energy error 2.46e-12 of the total; conservation = energy-balance defect / energy drawn |
| Buck, averaged: error order in h | Runge–Kutta 4 | – | 1 | – | – | – | – | – | 4.011 | – | – | – | pairwise 4.018, 4.010, 4.005 |
| Averaged against switched, both exact | exact (matrix exponential) | – | 1 | – | 1.275 | 0.3071 | 0.225 | – | – | – | – | – | the averaging error of the model itself (ripple and startup), not Konjugate's |
| Rectifier: capacitor voltage | explicit Euler | 2.44e-4 | 1 | 0.125 | 0.1789 | 0.04443 | 0.01826 | 0.02381 | – | 512 | 1,024 | 2,560 | diode-loss error 4.90e-2, source-energy error 1.50e-2 of their totals |
| Rectifier: capacitor voltage | explicit Euler | 1.22e-4 | 1 | 0.125 | 0.07779 | 0.02157 | 0.007939 | 0.01148 | – | 1,024 | 2,048 | 5,120 | diode-loss error 2.33e-2, source-energy error 7.34e-3 of their totals |
| Rectifier: capacitor voltage | explicit Euler | 6.10e-5 | 1 | 0.125 | 0.03662 | 0.01074 | 0.003737 | 0.005642 | – | 2,048 | 4,096 | 10,240 | diode-loss error 1.11e-2, source-energy error 3.61e-3 of their totals |
| Rectifier: capacitor voltage | explicit Euler | 3.05e-5 | 1 | 0.125 | 0.0178 | 0.005362 | 0.001817 | 0.002797 | – | 4,096 | 8,192 | 20,480 | diode-loss error 5.41e-3, source-energy error 1.80e-3 of their totals |
| Rectifier: capacitor voltage | explicit Euler | 1.53e-5 | 1 | 0.125 | 0.008778 | 0.002677 | 8.96e-4 | 0.001393 | – | 8,192 | 16,380 | 40,960 | diode-loss error 2.68e-3, source-energy error 8.96e-4 of their totals |
| Rectifier: capacitor voltage | explicit Euler | 7.63e-6 | 1 | 0.125 | 0.004359 | 0.001339 | 4.45e-4 | 6.95e-4 | – | 16,380 | 32,770 | 81,920 | diode-loss error 1.33e-3, source-energy error 4.47e-4 of their totals |
| Rectifier: error order in h | explicit Euler | – | 1 | – | – | – | – | – | 1.065 | – | – | – | pairwise 1.202, 1.087, 1.041, 1.020, 1.010 |
| Rectifier: capacitor voltage | Runge–Kutta 4 | 2.44e-4 | 1 | 0.125 | 5.15e-4 | 1.59e-4 | 5.26e-5 | 3.33e-5 | – | 512 | 1,024 | 10,810 | diode-loss error 3.86e-4, source-energy error 2.47e-5 of their totals |
| Rectifier: capacitor voltage | Runge–Kutta 4 | 1.22e-4 | 1 | 0.125 | 2.57e-5 | 8.83e-6 | 2.63e-6 | 2.09e-6 | – | 1,024 | 2,048 | 21,050 | diode-loss error 2.40e-5, source-energy error 1.39e-6 of their totals |
| Rectifier: capacitor voltage | Runge–Kutta 4 | 6.10e-5 | 1 | 0.125 | 1.44e-6 | 5.34e-7 | 1.47e-7 | 1.28e-7 | – | 2,048 | 4,096 | 41,530 | diode-loss error 1.46e-6, source-energy error 8.44e-8 of their totals |
| Rectifier: capacitor voltage | Runge–Kutta 4 | 3.05e-5 | 1 | 0.125 | 8.50e-8 | 3.28e-8 | 8.68e-9 | 7.89e-9 | – | 4,096 | 8,192 | 82,490 | diode-loss error 9.03e-8, source-energy error 5.20e-9 of their totals |
| Rectifier: capacitor voltage | Runge–Kutta 4 | 1.53e-5 | 1 | 0.125 | 5.17e-9 | 2.03e-9 | 5.27e-10 | 4.91e-10 | – | 8,192 | 16,380 | 1.64e5 | diode-loss error 5.63e-9, source-energy error 3.20e-10 of their totals |
| Rectifier: capacitor voltage | Runge–Kutta 4 | 7.63e-6 | 1 | 0.125 | 3.17e-10 | 1.26e-10 | 3.24e-11 | 3.05e-11 | – | 16,380 | 32,770 | 3.28e5 | diode-loss error 5.84e-10, source-energy error 3.50e-11 of their totals |
| Rectifier: error order in h | Runge–Kutta 4 | – | 1 | – | – | – | – | – | 4.117 | – | – | – | pairwise 4.324, 4.161, 4.080, 4.041, 4.026 |
| Buck, switched: against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.0001) | 7.63e-6 | 1 | 0.007813 | 4.72e-9 | 8.78e-10 | 8.32e-10 | – | – | 1,024 | 4,008 | 89,800 | 312 switches located; 1336 steps, 0 rejected, 11225 evaluations of the model |
| Buck, switched: against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.00001) | 7.63e-6 | 1 | 0.007813 | 4.72e-9 | 8.78e-10 | 8.32e-10 | – | – | 1,024 | 4,008 | 89,800 | 312 switches located; 1336 steps, 0 rejected, 11225 evaluations of the model |
| Buck, switched: against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.000001) | 7.63e-6 | 1 | 0.007813 | 4.49e-9 | 8.34e-10 | 7.93e-10 | – | – | 1,024 | 4,011 | 89,850 | 312 switches located; 1337 steps, 0 rejected, 11231 evaluations of the model |
| Buck, switched: against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-7) | 7.63e-6 | 1 | 0.007813 | 4.21e-9 | 7.81e-10 | 7.42e-10 | – | – | 1,024 | 4,014 | 89,990 | 312 switches located; 1338 steps, 2 rejected, 11249 evaluations of the model |
| Buck, switched: against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-8) | 7.63e-6 | 1 | 0.007813 | 2.75e-9 | 5.61e-10 | 4.86e-10 | – | – | 1,024 | 4,821 | 1.03e5 | 312 switches located; 1607 steps, 3 rejected, 12869 evaluations of the model |
| Buck, switched: against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-9) | 7.63e-6 | 1 | 0.007813 | 3.52e-10 | 6.74e-11 | 6.20e-11 | – | – | 1,024 | 6,834 | 1.35e5 | 312 switches located; 2278 steps, 4 rejected, 16901 evaluations of the model; error against tolerance: fitted slope 0.182 |
| Rectifier: against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.0001) | 4.88e-4 | 1 | 0.125 | 4.72e-4 | 9.79e-5 | 4.82e-5 | – | – | 256 | 576 | 10,500 | 13 switches located; 288 steps, 4 rejected, 2100 evaluations of the model |
| Rectifier: against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.00001) | 4.88e-4 | 1 | 0.125 | 4.04e-5 | 1.01e-5 | 4.13e-6 | – | – | 256 | 640 | 11,550 | 13 switches located; 320 steps, 7 rejected, 2310 evaluations of the model |
| Rectifier: against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 0.000001) | 4.88e-4 | 1 | 0.125 | 3.50e-6 | 1.77e-6 | 3.57e-7 | – | – | 256 | 730 | 13,170 | 13 switches located; 365 steps, 16 rejected, 2634 evaluations of the model |
| Rectifier: against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-7) | 4.88e-4 | 1 | 0.125 | 3.46e-7 | 1.60e-7 | 3.54e-8 | – | – | 256 | 868 | 15,180 | 13 switches located; 434 steps, 14 rejected, 3036 evaluations of the model |
| Rectifier: against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-8) | 4.88e-4 | 1 | 0.125 | 3.03e-8 | 1.78e-8 | 3.09e-9 | – | – | 256 | 1,078 | 18,240 | 13 switches located; 539 steps, 11 rejected, 3648 evaluations of the model |
| Rectifier: against tolerance | Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-9) | 4.88e-4 | 1 | 0.125 | 2.78e-9 | 1.99e-9 | 2.84e-10 | – | – | 256 | 1,380 | 22,890 | 13 switches located; 690 steps, 15 rejected, 4578 evaluations of the model; error against tolerance: fitted slope 1.044 |
| Buck, switched: against tolerance | Stiff, Rodas4 (relative tolerance 0.0001) | 7.63e-6 | 1 | 0.007813 | 1.56e-7 | 2.91e-8 | 2.41e-8 | – | – | 1,024 | 4,008 | 76,620 | 312 switches located; 1336 steps, 0 rejected, 9577 evaluations of the model |
| Buck, switched: against tolerance | Stiff, Rodas4 (relative tolerance 0.00001) | 7.63e-6 | 1 | 0.007813 | 1.42e-7 | 2.67e-8 | 2.27e-8 | – | – | 1,024 | 4,014 | 76,790 | 312 switches located; 1338 steps, 2 rejected, 9599 evaluations of the model |
| Buck, switched: against tolerance | Stiff, Rodas4 (relative tolerance 0.000001) | 7.63e-6 | 1 | 0.007813 | 1.21e-7 | 2.34e-8 | 2.05e-8 | – | – | 1,024 | 4,047 | 77,440 | 312 switches located; 1349 steps, 5 rejected, 9680 evaluations of the model |
| Buck, switched: against tolerance | Stiff, Rodas4 (relative tolerance 1e-7) | 7.63e-6 | 1 | 0.007813 | 3.13e-8 | 1.08e-8 | 5.01e-9 | – | – | 1,024 | 6,507 | 1.17e5 | 312 switches located; 2169 steps, 12 rejected, 14635 evaluations of the model |
| Buck, switched: against tolerance | Stiff, Rodas4 (relative tolerance 1e-8) | 7.63e-6 | 1 | 0.007813 | 3.23e-9 | 1.10e-9 | 5.09e-10 | – | – | 1,024 | 8,925 | 1.56e5 | 312 switches located; 2975 steps, 7 rejected, 19446 evaluations of the model |
| Buck, switched: against tolerance | Stiff, Rodas4 (relative tolerance 1e-9) | 7.63e-6 | 1 | 0.007813 | 3.18e-10 | 9.08e-11 | 5.16e-11 | – | – | 1,024 | 13,900 | 2.35e5 | 312 switches located; 4634 steps, 7 rejected, 29400 evaluations of the model; error against tolerance: fitted slope 0.540 |
| Rectifier: against tolerance | Stiff, Rodas4 (relative tolerance 0.0001) | 4.88e-4 | 1 | 0.125 | 6.51e-5 | 1.61e-5 | 6.64e-6 | – | – | 256 | 606 | 9,700 | 13 switches located; 303 steps, 11 rejected, 1940 evaluations of the model |
| Rectifier: against tolerance | Stiff, Rodas4 (relative tolerance 0.00001) | 4.88e-4 | 1 | 0.125 | 8.27e-6 | 1.78e-6 | 8.44e-7 | – | – | 256 | 710 | 11,410 | 13 switches located; 355 steps, 17 rejected, 2282 evaluations of the model |
| Rectifier: against tolerance | Stiff, Rodas4 (relative tolerance 0.000001) | 4.88e-4 | 1 | 0.125 | 1.21e-6 | 2.49e-7 | 1.23e-7 | – | – | 256 | 932 | 14,570 | 13 switches located; 466 steps, 10 rejected, 2913 evaluations of the model |
| Rectifier: against tolerance | Stiff, Rodas4 (relative tolerance 1e-7) | 4.88e-4 | 1 | 0.125 | 1.35e-7 | 2.72e-8 | 1.38e-8 | – | – | 256 | 1,270 | 19,610 | 13 switches located; 635 steps, 9 rejected, 3922 evaluations of the model |
| Rectifier: against tolerance | Stiff, Rodas4 (relative tolerance 1e-8) | 4.88e-4 | 1 | 0.125 | 1.43e-8 | 2.90e-9 | 1.46e-9 | – | – | 256 | 1,858 | 28,510 | 13 switches located; 929 steps, 12 rejected, 5701 evaluations of the model |
| Rectifier: against tolerance | Stiff, Rodas4 (relative tolerance 1e-9) | 4.88e-4 | 1 | 0.125 | 1.45e-9 | 3.03e-10 | 1.48e-10 | – | – | 256 | 3,136 | 47,750 | 13 switches located; 1568 steps, 15 rejected, 9550 evaluations of the model; error against tolerance: fitted slope 0.928 |
Heat exchanger
A water-to-water heat exchanger, counterflow and parallel flow, each stream divided into 10 and 40 segments as nodes of a graph: the transient against the exact solution, the steady state against the discretised model's equilibrium and the effectiveness against ε-NTU, and the energy balance from Konjugate's own states, under explicit Euler and Runge–Kutta 4.
Directory benchmarks/thermal/heatExchanger/ · models counterflow10.kjt, counterflow40.kjt, parallel10.kjt, parallel40.kjt · numerical reference reference.json: numpy.linalg.solve for the discretised equilibria; the effectiveness-NTU relations; scipy.linalg.expm for the transient (SciPy 1.13.1, NumPy 2.0.2)
- Continuous exchanger, hot
- Continuous exchanger, cold
- Konjugate, hot segments
- Konjugate, cold segments
- Discretised equilibrium
Data table
| Position along the exchanger (fraction of its length) | Continuous exchanger, hot | Continuous exchanger, cold | Konjugate, hot segments | Konjugate, cold segments | Discretised equilibrium |
|---|---|---|---|---|---|
| 0.0125 | 359 | 316.2 | 358 | 316.3 | 358 |
| 0.0375 | 356.9 | 315.2 | 356.1 | 315.3 | 356.1 |
| 0.0625 | 355 | 314.2 | 354.2 | 314.4 | 354.2 |
| 0.0875 | 353 | 313.2 | 352.3 | 313.4 | 352.3 |
| 0.1125 | 351.2 | 312.3 | 350.5 | 312.5 | 350.5 |
| 0.1375 | 349.3 | 311.3 | 348.7 | 311.6 | 348.7 |
| 0.1625 | 347.5 | 310.4 | 347 | 310.7 | 347 |
| 0.1875 | 345.8 | 309.6 | 345.3 | 309.8 | 345.3 |
| 0.2125 | 344.1 | 308.7 | 343.6 | 309 | 343.6 |
| 0.2375 | 342.4 | 307.9 | 342 | 308.1 | 342 |
| 0.2625 | 340.8 | 307.1 | 340.4 | 307.3 | 340.4 |
| 0.2875 | 339.2 | 306.3 | 338.9 | 306.5 | 338.9 |
| 0.3125 | 337.6 | 305.5 | 337.3 | 305.8 | 337.3 |
| 0.3375 | 336.1 | 304.7 | 335.9 | 305 | 335.9 |
| 0.3625 | 334.6 | 304 | 334.4 | 304.3 | 334.4 |
| 0.3875 | 333.2 | 303.3 | 333 | 303.5 | 333 |
| 0.4125 | 331.7 | 302.6 | 331.6 | 302.8 | 331.6 |
| 0.4375 | 330.4 | 301.9 | 330.3 | 302.2 | 330.3 |
| 0.4625 | 329 | 301.2 | 329 | 301.5 | 329 |
| 0.4875 | 327.7 | 300.5 | 327.7 | 300.8 | 327.7 |
| 0.5125 | 326.4 | 299.9 | 326.4 | 300.2 | 326.4 |
| 0.5375 | 325.2 | 299.3 | 325.2 | 299.5 | 325.2 |
| 0.5625 | 323.9 | 298.7 | 324 | 298.9 | 324 |
| 0.5875 | 322.7 | 298.1 | 322.8 | 298.3 | 322.8 |
| 0.6125 | 321.6 | 297.5 | 321.7 | 297.8 | 321.7 |
| 0.6375 | 320.4 | 296.9 | 320.6 | 297.2 | 320.6 |
| 0.6625 | 319.3 | 296.3 | 319.5 | 296.6 | 319.5 |
| 0.6875 | 318.2 | 295.8 | 318.4 | 296.1 | 318.4 |
| 0.7125 | 317.2 | 295.3 | 317.4 | 295.5 | 317.4 |
| 0.7375 | 316.1 | 294.8 | 316.3 | 295 | 316.3 |
| 0.7625 | 315.1 | 294.2 | 315.3 | 294.5 | 315.3 |
| 0.7875 | 314.1 | 293.8 | 314.4 | 294 | 314.4 |
| 0.8125 | 313.2 | 293.3 | 313.4 | 293.5 | 313.4 |
| 0.8375 | 312.2 | 292.8 | 312.5 | 293 | 312.5 |
| 0.8625 | 311.3 | 292.3 | 311.6 | 292.6 | 311.6 |
| 0.8875 | 310.4 | 291.9 | 310.7 | 292.1 | 310.7 |
| 0.9125 | 309.5 | 291.5 | 309.8 | 291.7 | 309.8 |
| 0.9375 | 308.7 | 291 | 309 | 291.2 | 309 |
| 0.9625 | 307.9 | 290.6 | 308.1 | 290.8 | 308.1 |
| 0.9875 | 307 | 290.2 | 307.3 | 290.4 | 307.3 |
- Continuous exchanger, hot
- Continuous exchanger, cold
- Konjugate, hot segments
- Konjugate, cold segments
- Discretised equilibrium
Data table
| Position along the exchanger (fraction of its length) | Continuous exchanger, hot | Continuous exchanger, cold | Konjugate, hot segments | Konjugate, cold segments | Discretised equilibrium |
|---|---|---|---|---|---|
| 0.0125 | 358.4 | 290.8 | 356.9 | 291.6 | 356.9 |
| 0.0375 | 355.2 | 292.4 | 354 | 293 | 354 |
| 0.0625 | 352.3 | 293.8 | 351.2 | 294.4 | 351.2 |
| 0.0875 | 349.6 | 295.2 | 348.7 | 295.6 | 348.7 |
| 0.1125 | 347.1 | 296.4 | 346.3 | 296.8 | 346.3 |
| 0.1375 | 344.8 | 297.6 | 344.1 | 297.9 | 344.1 |
| 0.1625 | 342.6 | 298.7 | 342.1 | 299 | 342.1 |
| 0.1875 | 340.6 | 299.7 | 340.1 | 299.9 | 340.1 |
| 0.2125 | 338.7 | 300.7 | 338.3 | 300.8 | 338.3 |
| 0.2375 | 336.9 | 301.5 | 336.7 | 301.7 | 336.7 |
| 0.2625 | 335.3 | 302.4 | 335.1 | 302.4 | 335.1 |
| 0.2875 | 333.8 | 303.1 | 333.6 | 303.2 | 333.6 |
| 0.3125 | 332.4 | 303.8 | 332.3 | 303.9 | 332.3 |
| 0.3375 | 331 | 304.5 | 331 | 304.5 | 331 |
| 0.3625 | 329.8 | 305.1 | 329.8 | 305.1 | 329.8 |
| 0.3875 | 328.7 | 305.7 | 328.7 | 305.6 | 328.7 |
| 0.4125 | 327.6 | 306.2 | 327.7 | 306.2 | 327.7 |
| 0.4375 | 326.6 | 306.7 | 326.7 | 306.6 | 326.7 |
| 0.4625 | 325.7 | 307.1 | 325.8 | 307.1 | 325.8 |
| 0.4875 | 324.8 | 307.6 | 325 | 307.5 | 325 |
| 0.5125 | 324 | 308 | 324.2 | 307.9 | 324.2 |
| 0.5375 | 323.3 | 308.3 | 323.5 | 308.3 | 323.5 |
| 0.5625 | 322.6 | 308.7 | 322.8 | 308.6 | 322.8 |
| 0.5875 | 322 | 309 | 322.2 | 308.9 | 322.2 |
| 0.6125 | 321.4 | 309.3 | 321.6 | 309.2 | 321.6 |
| 0.6375 | 320.8 | 309.6 | 321 | 309.5 | 321 |
| 0.6625 | 320.3 | 309.9 | 320.5 | 309.7 | 320.5 |
| 0.6875 | 319.8 | 310.1 | 320 | 310 | 320 |
| 0.7125 | 319.4 | 310.3 | 319.6 | 310.2 | 319.6 |
| 0.7375 | 319 | 310.5 | 319.2 | 310.4 | 319.2 |
| 0.7625 | 318.6 | 310.7 | 318.8 | 310.6 | 318.8 |
| 0.7875 | 318.2 | 310.9 | 318.4 | 310.8 | 318.4 |
| 0.8125 | 317.9 | 311.1 | 318.1 | 311 | 318.1 |
| 0.8375 | 317.5 | 311.2 | 317.8 | 311.1 | 317.8 |
| 0.8625 | 317.3 | 311.4 | 317.5 | 311.3 | 317.5 |
| 0.8875 | 317 | 311.5 | 317.2 | 311.4 | 317.2 |
| 0.9125 | 316.7 | 311.6 | 316.9 | 311.5 | 316.9 |
| 0.9375 | 316.5 | 311.8 | 316.7 | 311.7 | 316.7 |
| 0.9625 | 316.3 | 311.9 | 316.5 | 311.8 | 316.5 |
| 0.9875 | 316.1 | 312 | 316.3 | 311.9 | 316.3 |
- Exact, hot outlet
- Exact, cold outlet
- Konjugate, hot outlet, explicit Euler
- Konjugate, cold outlet, explicit Euler
- Konjugate, hot outlet, Runge–Kutta 4
Data table (every 7th point; all 257 are in plots/counterflowOutletTransient.csv)
| Time (s) | Exact, hot outlet | Exact, cold outlet | Konjugate, hot outlet, explicit Euler | Konjugate, cold outlet, explicit Euler | Konjugate, hot outlet, Runge–Kutta 4 |
|---|---|---|---|---|---|
| 0 | 290 | 290 | 290 | 290 | 290 |
| 28 | 294.3 | 303.8 | 294.2 | 303.8 | 294.3 |
| 56 | 305.4 | 310.7 | 305.4 | 310.8 | 305.4 |
| 84 | 308.1 | 313.8 | 308.1 | 313.9 | 308.1 |
| 112 | 308.9 | 314.9 | 308.9 | 314.9 | 308.9 |
| 140 | 309.2 | 315.2 | 309.2 | 315.2 | 309.2 |
| 168 | 309.3 | 315.3 | 309.3 | 315.3 | 309.3 |
| 196 | 309.3 | 315.3 | 309.3 | 315.3 | 309.3 |
| 224 | 309.3 | 315.3 | 309.3 | 315.3 | 309.3 |
| 252 | 309.3 | 315.3 | 309.3 | 315.3 | 309.3 |
| 280 | 309.3 | 315.3 | 309.3 | 315.3 | 309.3 |
| 308 | 309.3 | 315.3 | 309.3 | 315.3 | 309.3 |
| 336 | 309.3 | 315.3 | 309.3 | 315.3 | 309.3 |
| 364 | 309.3 | 315.3 | 309.3 | 315.3 | 309.3 |
| 392 | 309.3 | 315.3 | 309.3 | 315.3 | 309.3 |
| 420 | 309.3 | 315.3 | 309.3 | 315.3 | 309.3 |
| 448 | 309.3 | 315.3 | 309.3 | 315.3 | 309.3 |
| 476 | 309.3 | 315.3 | 309.3 | 315.3 | 309.3 |
| 504 | 309.3 | 315.3 | 309.3 | 315.3 | 309.3 |
| 532 | 309.3 | 315.3 | 309.3 | 315.3 | 309.3 |
| 560 | 309.3 | 315.3 | 309.3 | 315.3 | 309.3 |
| 588 | 309.3 | 315.3 | 309.3 | 315.3 | 309.3 |
| 616 | 309.3 | 315.3 | 309.3 | 315.3 | 309.3 |
| 644 | 309.3 | 315.3 | 309.3 | 315.3 | 309.3 |
| 672 | 309.3 | 315.3 | 309.3 | 315.3 | 309.3 |
| 700 | 309.3 | 315.3 | 309.3 | 315.3 | 309.3 |
| 728 | 309.3 | 315.3 | 309.3 | 315.3 | 309.3 |
| 756 | 309.3 | 315.3 | 309.3 | 315.3 | 309.3 |
| 784 | 309.3 | 315.3 | 309.3 | 315.3 | 309.3 |
| 812 | 309.3 | 315.3 | 309.3 | 315.3 | 309.3 |
| 840 | 309.3 | 315.3 | 309.3 | 315.3 | 309.3 |
| 868 | 309.3 | 315.3 | 309.3 | 315.3 | 309.3 |
| 896 | 309.3 | 315.3 | 309.3 | 315.3 | 309.3 |
| 924 | 309.3 | 315.3 | 309.3 | 315.3 | 309.3 |
| 952 | 309.3 | 315.3 | 309.3 | 315.3 | 309.3 |
| 980 | 309.3 | 315.3 | 309.3 | 315.3 | 309.3 |
| 1,008 | 309.3 | 315.3 | 309.3 | 315.3 | 309.3 |
Checks
| Check | What it measures | Value | Threshold | Result |
|---|---|---|---|---|
counterflow10ExplicitRelativeError | Counterflow, 10 segments: largest transient temperature error relative to range, explicit Euler, h = 0.25 s | 0.01285 | ≤ 0.017 | ✓ Pass |
counterflow10ExplicitSteadyStateError | Counterflow, 10 segments: final temperatures against the discretised model's exact equilibrium (K), explicit Euler | 4.04e-12 | ≤ 1.00e-10 | ✓ Pass |
counterflow10ExplicitEnergyBalanceDefect | Counterflow, 10 segments: energy stored against enthalpy in less out, from Konjugate's own states, relative to the heat exchanged, explicit Euler | 2.90e-14 | ≤ 1.00e-10 | ✓ Pass |
counterflow10EffectivenessError | Counterflow, 10 segments: Konjugate's steady effectiveness against ε-NTU (the discretisation error of 10 segments) | 0.03855 | ≤ 0.049 | ✓ Pass |
counterflow10RungeKutta4RelativeError | Counterflow, 10 segments: largest transient temperature error relative to range, Runge–Kutta 4, h = 0.5 s | 4.32e-6 | ≤ 5.40e-6 | ✓ Pass |
counterflow10RungeKutta4SteadyStateError | Counterflow, 10 segments: final temperatures against the discretised model's exact equilibrium (K), Runge–Kutta 4 | 1.76e-12 | ≤ 1.00e-10 | ✓ Pass |
counterflow10RungeKutta4EnergyBalanceDefect | Counterflow, 10 segments: energy stored against enthalpy in less out, from Konjugate's own states, relative to the heat exchanged, Runge–Kutta 4 | 9.30e-14 | ≤ 1.00e-10 | ✓ Pass |
counterflow10ReferenceAgreement | Counterflow, 10 segments: this equilibrium against SciPy's (reference.json), largest difference relative to the temperatures' magnitude | 1.91e-16 | ≤ 1.00e-10 | ✓ Pass |
counterflow40ExplicitRelativeError | Counterflow, 40 segments: largest transient temperature error relative to range, explicit Euler, h = 0.25 s | 0.04014 | ≤ 0.051 | ✓ Pass |
counterflow40ExplicitSteadyStateError | Counterflow, 40 segments: final temperatures against the discretised model's exact equilibrium (K), explicit Euler | 4.26e-12 | ≤ 1.00e-10 | ✓ Pass |
counterflow40ExplicitEnergyBalanceDefect | Counterflow, 40 segments: energy stored against enthalpy in less out, from Konjugate's own states, relative to the heat exchanged, explicit Euler | 3.33e-13 | ≤ 1.00e-10 | ✓ Pass |
counterflow40EffectivenessError | Counterflow, 40 segments: Konjugate's steady effectiveness against ε-NTU (the discretisation error of 40 segments) | 0.009982 | ≤ 0.013 | ✓ Pass |
counterflow40RungeKutta4RelativeError | Counterflow, 40 segments: largest transient temperature error relative to range, Runge–Kutta 4, h = 0.5 s | 1.14e-4 | ≤ 1.50e-4 | ✓ Pass |
counterflow40RungeKutta4SteadyStateError | Counterflow, 40 segments: final temperatures against the discretised model's exact equilibrium (K), Runge–Kutta 4 | 2.10e-12 | ≤ 1.00e-10 | ✓ Pass |
counterflow40RungeKutta4EnergyBalanceDefect | Counterflow, 40 segments: energy stored against enthalpy in less out, from Konjugate's own states, relative to the heat exchanged, Runge–Kutta 4 | 4.25e-13 | ≤ 1.00e-10 | ✓ Pass |
counterflow40ReferenceAgreement | Counterflow, 40 segments: this equilibrium against SciPy's (reference.json), largest difference relative to the temperatures' magnitude | 5.34e-16 | ≤ 1.00e-10 | ✓ Pass |
counterflowEffectivenessErrorRatio | Counterflow: effectiveness error at 10 segments over that at 40, about 4 for a first-order discretisation | 3.861 | 3.47 to 4.25 | ✓ Pass |
parallel10ExplicitRelativeError | Parallel flow, 10 segments: largest transient temperature error relative to range, explicit Euler, h = 0.25 s | 0.01357 | ≤ 0.017 | ✓ Pass |
parallel10ExplicitSteadyStateError | Parallel flow, 10 segments: final temperatures against the discretised model's exact equilibrium (K), explicit Euler | 3.64e-12 | ≤ 1.00e-10 | ✓ Pass |
parallel10ExplicitEnergyBalanceDefect | Parallel flow, 10 segments: energy stored against enthalpy in less out, from Konjugate's own states, relative to the heat exchanged, explicit Euler | 1.03e-12 | ≤ 1.00e-10 | ✓ Pass |
parallel10EffectivenessError | Parallel flow, 10 segments: Konjugate's steady effectiveness against ε-NTU (the discretisation error of 10 segments) | 0.01567 | ≤ 0.02 | ✓ Pass |
parallel10RungeKutta4RelativeError | Parallel flow, 10 segments: largest transient temperature error relative to range, Runge–Kutta 4, h = 0.5 s | 4.70e-6 | ≤ 5.90e-6 | ✓ Pass |
parallel10RungeKutta4SteadyStateError | Parallel flow, 10 segments: final temperatures against the discretised model's exact equilibrium (K), Runge–Kutta 4 | 1.48e-12 | ≤ 1.00e-10 | ✓ Pass |
parallel10RungeKutta4EnergyBalanceDefect | Parallel flow, 10 segments: energy stored against enthalpy in less out, from Konjugate's own states, relative to the heat exchanged, Runge–Kutta 4 | 5.60e-15 | ≤ 1.00e-10 | ✓ Pass |
parallel10ReferenceAgreement | Parallel flow, 10 segments: this equilibrium against SciPy's (reference.json), largest difference relative to the temperatures' magnitude | 3.69e-16 | ≤ 1.00e-10 | ✓ Pass |
parallel40ExplicitRelativeError | Parallel flow, 40 segments: largest transient temperature error relative to range, explicit Euler, h = 0.25 s | 0.04221 | ≤ 0.053 | ✓ Pass |
parallel40ExplicitSteadyStateError | Parallel flow, 40 segments: final temperatures against the discretised model's exact equilibrium (K), explicit Euler | 3.64e-12 | ≤ 1.00e-10 | ✓ Pass |
parallel40ExplicitEnergyBalanceDefect | Parallel flow, 40 segments: energy stored against enthalpy in less out, from Konjugate's own states, relative to the heat exchanged, explicit Euler | 9.50e-13 | ≤ 1.00e-10 | ✓ Pass |
parallel40EffectivenessError | Parallel flow, 40 segments: Konjugate's steady effectiveness against ε-NTU (the discretisation error of 40 segments) | 0.003903 | ≤ 0.0049 | ✓ Pass |
parallel40RungeKutta4RelativeError | Parallel flow, 40 segments: largest transient temperature error relative to range, Runge–Kutta 4, h = 0.5 s | 1.19e-4 | ≤ 1.50e-4 | ✓ Pass |
parallel40RungeKutta4SteadyStateError | Parallel flow, 40 segments: final temperatures against the discretised model's exact equilibrium (K), Runge–Kutta 4 | 1.65e-12 | ≤ 1.00e-10 | ✓ Pass |
parallel40RungeKutta4EnergyBalanceDefect | Parallel flow, 40 segments: energy stored against enthalpy in less out, from Konjugate's own states, relative to the heat exchanged, Runge–Kutta 4 | 3.75e-13 | ≤ 1.00e-10 | ✓ Pass |
parallel40ReferenceAgreement | Parallel flow, 40 segments: this equilibrium against SciPy's (reference.json), largest difference relative to the temperatures' magnitude | 3.83e-15 | ≤ 1.00e-10 | ✓ Pass |
parallelEffectivenessErrorRatio | Parallel flow: effectiveness error at 10 segments over that at 40, about 4 for a first-order discretisation | 4.015 | 3.61 to 4.42 | ✓ Pass |
effectivenessReferenceAgreement | ε-NTU here against the independent Python evaluation (reference.json) | 0 | ≤ 1.00e-12 | ✓ Pass |
transientReferenceAgreement | Counterflow, 10 segments: this exact transient against SciPy's expm at each sample (reference.json) | 7.73e-15 | ≤ 1.00e-10 | ✓ Pass |
transientOrderExplicit | Counterflow, 10 segments: observed order of the transient error in h, explicit Euler (fitted over every h) | 1.018 | 0.95 to 1.1 | ✓ Pass |
transientOrderRungeKutta4 | Counterflow, 10 segments: observed order of the transient error in h, Runge–Kutta 4 (fitted over every h) | 4.14 | 3.93 to 4.35 | ✓ Pass |
- The segmented exchanger is a first-order (upwind) discretisation of the continuous one: its steady effectiveness approaches ε-NTU as the segments grow (error 3.85e-2 at 10 segments, 9.98e-3 at 40, counterflow). That error is the model's, set by how finely it is divided; the integrator reaches the discretised equilibrium to rounding.
All 12 result rows
| Case | Method | h (s) | Substeps | Horizon (s) | Max abs error | RMSE | Relative error | Conservation error | Steady-state error | Observed order | Steps | Substeps run | Evaluations | Note |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Counterflow, 10 segments: segment temperatures | explicit Euler | 0.25 | 1 | 1,024 | 0.807 | 0.02778 | 0.01285 | 2.90e-14 | 4.04e-12 | – | 4,096 | 98,300 | 1.80e5 | ε Konjugate 0.723779, discretised exact 0.723779, ε-NTU 0.762325; conservation = energy-balance defect / heat exchanged |
| Counterflow, 10 segments: segment temperatures | Runge–Kutta 4 | 0.5 | 1 | 1,024 | 2.43e-4 | 4.71e-6 | 4.32e-6 | 9.30e-14 | 1.76e-12 | – | 2,048 | 49,150 | 3.60e5 | ε Konjugate 0.723779, discretised exact 0.723779, ε-NTU 0.762325; conservation = energy-balance defect / heat exchanged |
| Counterflow, 40 segments: segment temperatures | explicit Euler | 0.25 | 1 | 1,024 | 2.575 | 0.07032 | 0.04014 | 3.33e-13 | 4.26e-12 | – | 4,096 | 3.44e5 | 6.72e5 | ε Konjugate 0.752342, discretised exact 0.752342, ε-NTU 0.762325; conservation = energy-balance defect / heat exchanged |
| Counterflow, 40 segments: segment temperatures | Runge–Kutta 4 | 0.5 | 1 | 1,024 | 0.007295 | 8.50e-5 | 1.14e-4 | 4.25e-13 | 2.10e-12 | – | 2,048 | 1.72e5 | 1.34e6 | ε Konjugate 0.752342, discretised exact 0.752342, ε-NTU 0.762325; conservation = energy-balance defect / heat exchanged |
| Counterflow: ε-NTU (continuous) | analytic | – | 1 | – | – | – | – | – | – | – | – | – | – | ε = 0.762325; NTU = 1.9139, C_r = 0.5 |
| Parallel flow, 10 segments: segment temperatures | explicit Euler | 0.25 | 1 | 1,024 | 0.8085 | 0.03503 | 0.01357 | 1.03e-12 | 3.64e-12 | – | 4,096 | 98,300 | 1.80e5 | ε Konjugate 0.613229, discretised exact 0.613229, ε-NTU 0.628898; conservation = energy-balance defect / heat exchanged |
| Parallel flow, 10 segments: segment temperatures | Runge–Kutta 4 | 0.5 | 1 | 1,024 | 2.42e-4 | 4.72e-6 | 4.70e-6 | 5.60e-15 | 1.48e-12 | – | 2,048 | 49,150 | 3.60e5 | ε Konjugate 0.613229, discretised exact 0.613229, ε-NTU 0.628898; conservation = energy-balance defect / heat exchanged |
| Parallel flow, 40 segments: segment temperatures | explicit Euler | 0.25 | 1 | 1,024 | 2.585 | 0.09649 | 0.04221 | 9.50e-13 | 3.64e-12 | – | 4,096 | 3.44e5 | 6.72e5 | ε Konjugate 0.624995, discretised exact 0.624995, ε-NTU 0.628898; conservation = energy-balance defect / heat exchanged |
| Parallel flow, 40 segments: segment temperatures | Runge–Kutta 4 | 0.5 | 1 | 1,024 | 0.007278 | 8.57e-5 | 1.19e-4 | 3.75e-13 | 1.65e-12 | – | 2,048 | 1.72e5 | 1.34e6 | ε Konjugate 0.624995, discretised exact 0.624995, ε-NTU 0.628898; conservation = energy-balance defect / heat exchanged |
| Parallel flow: ε-NTU (continuous) | analytic | – | 1 | – | – | – | – | – | – | – | – | – | – | ε = 0.628898; NTU = 1.9139, C_r = 0.5 |
| Counterflow, 10 segments: error order in h | explicit Euler | – | 1 | – | – | – | – | – | – | 1.018 | – | – | – | errors 2.65e-2, 1.29e-2, 6.34e-3, 3.15e-3, 1.57e-3; pairwise 1.042, 1.020, 1.010, 1.005 |
| Counterflow, 10 segments: error order in h | Runge–Kutta 4 | – | 1 | – | – | – | – | – | – | 4.14 | – | – | – | errors 8.19e-5, 4.32e-6, 2.48e-7, 1.49e-8; pairwise 4.244, 4.122, 4.061 |
Fluid network
Three tanks in a loop joined by three pipes with inertia and friction, one with a pump and one with a valve that closes to 30 %: levels, flows and pressures against SciPy, and the water's total volume from Konjugate's own states, under explicit Euler and Runge–Kutta 4.
Directory benchmarks/fluid/pipeNetwork/ · models pipeNetwork.kjt · numerical reference reference.json: solve_ivp DOP853, rtol = 1e-13, atol = 1e-15, in pieces between the valve's kinks; Radau at rtol = 1e-10 as a check (SciPy 1.13.1, NumPy 2.0.2)
- Reference, upper reservoir
- Konjugate, upper reservoir, explicit Euler
- Reference, middle tank
- Konjugate, middle tank, explicit Euler
- Reference, sump
- Konjugate, sump, explicit Euler
Data table (every 8th point; all 301 are in plots/pipeNetworkLevels.csv)
| Time (s) | Reference, upper reservoir | Konjugate, upper reservoir, explicit Euler | Reference, middle tank | Konjugate, middle tank, explicit Euler | Reference, sump | Konjugate, sump, explicit Euler |
|---|---|---|---|---|---|---|
| 0 | 2 | 2 | 3 | 3 | 4 | 4 |
| 16 | 2.052 | 2.052 | 4.085 | 4.087 | 3.604 | 3.603 |
| 32 | 2.136 | 2.136 | 4.485 | 4.488 | 3.414 | 3.413 |
| 48 | 2.214 | 2.214 | 4.66 | 4.661 | 3.304 | 3.303 |
| 64 | 2.284 | 2.284 | 4.762 | 4.763 | 3.223 | 3.223 |
| 80 | 2.346 | 2.346 | 4.823 | 4.824 | 3.161 | 3.161 |
| 96 | 2.401 | 2.401 | 4.858 | 4.859 | 3.113 | 3.113 |
| 112 | 2.449 | 2.449 | 4.878 | 4.878 | 3.075 | 3.075 |
| 128 | 2.49 | 2.49 | 4.888 | 4.888 | 3.044 | 3.044 |
| 144 | 2.526 | 2.527 | 4.892 | 4.892 | 3.018 | 3.018 |
| 160 | 2.558 | 2.558 | 4.892 | 4.892 | 2.998 | 2.997 |
| 176 | 2.584 | 2.585 | 4.89 | 4.891 | 2.98 | 2.98 |
| 192 | 2.608 | 2.608 | 4.888 | 4.888 | 2.966 | 2.966 |
| 208 | 2.628 | 2.628 | 4.884 | 4.884 | 2.954 | 2.953 |
| 224 | 2.645 | 2.645 | 4.881 | 4.881 | 2.943 | 2.943 |
| 240 | 2.659 | 2.66 | 4.877 | 4.877 | 2.935 | 2.935 |
| 256 | 2.672 | 2.672 | 4.874 | 4.874 | 2.927 | 2.927 |
| 272 | 2.683 | 2.683 | 4.871 | 4.871 | 2.921 | 2.921 |
| 288 | 2.692 | 2.692 | 4.868 | 4.868 | 2.916 | 2.916 |
| 304 | 2.723 | 2.723 | 4.82 | 4.821 | 2.911 | 2.911 |
| 320 | 3.06 | 3.059 | 4.201 | 4.202 | 2.893 | 2.893 |
| 336 | 3.365 | 3.365 | 3.728 | 3.728 | 2.847 | 2.847 |
| 352 | 3.638 | 3.637 | 3.378 | 3.379 | 2.782 | 2.782 |
| 368 | 3.879 | 3.878 | 3.122 | 3.122 | 2.707 | 2.707 |
| 384 | 4.09 | 4.09 | 2.933 | 2.933 | 2.629 | 2.629 |
| 400 | 4.274 | 4.274 | 2.789 | 2.789 | 2.554 | 2.555 |
| 416 | 4.432 | 4.432 | 2.677 | 2.677 | 2.486 | 2.486 |
| 432 | 4.568 | 4.568 | 2.587 | 2.587 | 2.425 | 2.425 |
| 448 | 4.683 | 4.684 | 2.514 | 2.514 | 2.373 | 2.373 |
| 464 | 4.781 | 4.781 | 2.453 | 2.453 | 2.329 | 2.329 |
| 480 | 4.862 | 4.862 | 2.402 | 2.402 | 2.291 | 2.291 |
| 496 | 4.93 | 4.93 | 2.359 | 2.359 | 2.261 | 2.26 |
| 512 | 4.985 | 4.985 | 2.324 | 2.324 | 2.235 | 2.235 |
| 528 | 5.031 | 5.031 | 2.295 | 2.295 | 2.214 | 2.214 |
| 544 | 5.068 | 5.069 | 2.271 | 2.271 | 2.197 | 2.197 |
| 560 | 5.099 | 5.099 | 2.251 | 2.251 | 2.184 | 2.184 |
| 576 | 5.123 | 5.123 | 2.235 | 2.235 | 2.173 | 2.173 |
| 592 | 5.143 | 5.143 | 2.222 | 2.222 | 2.164 | 2.164 |
- Reference, pump pipe
- Konjugate, pump pipe, explicit Euler
- Reference, valve pipe
- Konjugate, valve pipe, explicit Euler
- Reference, return pipe
- Konjugate, return pipe, explicit Euler
Data table (every 8th point; all 301 are in plots/pipeNetworkFlows.csv)
| Time (s) | Reference, pump pipe | Konjugate, pump pipe, explicit Euler | Reference, valve pipe | Konjugate, valve pipe, explicit Euler | Reference, return pipe | Konjugate, return pipe, explicit Euler |
|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 16 | 0.02007 | 0.02007 | 0.0174 | 0.01739 | 0.005683 | 0.005653 |
| 32 | 0.01954 | 0.01954 | 0.01699 | 0.01699 | 0.01339 | 0.01341 |
| 48 | 0.01919 | 0.01918 | 0.01687 | 0.01687 | 0.01482 | 0.01483 |
| 64 | 0.0189 | 0.01889 | 0.01683 | 0.01683 | 0.01561 | 0.01562 |
| 80 | 0.01865 | 0.01865 | 0.01683 | 0.01683 | 0.01611 | 0.01612 |
| 96 | 0.01845 | 0.01845 | 0.01685 | 0.01685 | 0.01644 | 0.01645 |
| 112 | 0.01828 | 0.01828 | 0.01689 | 0.01689 | 0.01667 | 0.01667 |
| 128 | 0.01813 | 0.01813 | 0.01693 | 0.01693 | 0.01682 | 0.01683 |
| 144 | 0.01801 | 0.01801 | 0.01696 | 0.01696 | 0.01693 | 0.01694 |
| 160 | 0.0179 | 0.0179 | 0.017 | 0.017 | 0.01701 | 0.01702 |
| 176 | 0.01781 | 0.01781 | 0.01703 | 0.01703 | 0.01707 | 0.01707 |
| 192 | 0.01774 | 0.01774 | 0.01707 | 0.01707 | 0.01712 | 0.01712 |
| 208 | 0.01767 | 0.01767 | 0.01709 | 0.01709 | 0.01715 | 0.01715 |
| 224 | 0.01761 | 0.01761 | 0.01712 | 0.01712 | 0.01717 | 0.01717 |
| 240 | 0.01756 | 0.01756 | 0.01714 | 0.01714 | 0.01719 | 0.01719 |
| 256 | 0.01752 | 0.01752 | 0.01716 | 0.01716 | 0.01721 | 0.01721 |
| 272 | 0.01749 | 0.01749 | 0.01717 | 0.01717 | 0.01722 | 0.01722 |
| 288 | 0.01746 | 0.01746 | 0.01719 | 0.01719 | 0.01723 | 0.01723 |
| 304 | 0.01741 | 0.01741 | 0.009901 | 0.009904 | 0.01718 | 0.01718 |
| 320 | 0.0167 | 0.0167 | 0.006594 | 0.006594 | 0.01514 | 0.01514 |
| 336 | 0.01592 | 0.01592 | 0.006897 | 0.006897 | 0.01324 | 0.01324 |
| 352 | 0.01514 | 0.01514 | 0.007129 | 0.007129 | 0.01178 | 0.01178 |
| 368 | 0.01436 | 0.01436 | 0.007309 | 0.007309 | 0.01073 | 0.01073 |
| 384 | 0.01361 | 0.01361 | 0.007451 | 0.007451 | 0.01001 | 0.01001 |
| 400 | 0.0129 | 0.01291 | 0.007565 | 0.007565 | 0.00953 | 0.009529 |
| 416 | 0.01225 | 0.01225 | 0.007658 | 0.007658 | 0.009216 | 0.009215 |
| 432 | 0.01165 | 0.01165 | 0.007734 | 0.007734 | 0.009001 | 0.009 |
| 448 | 0.01111 | 0.01111 | 0.007798 | 0.007798 | 0.008844 | 0.008843 |
| 464 | 0.01063 | 0.01063 | 0.007851 | 0.007851 | 0.008721 | 0.008721 |
| 480 | 0.01021 | 0.01021 | 0.007895 | 0.007895 | 0.00862 | 0.00862 |
| 496 | 0.009848 | 0.009848 | 0.007931 | 0.007931 | 0.008535 | 0.008535 |
| 512 | 0.009539 | 0.009538 | 0.007961 | 0.007961 | 0.008462 | 0.008462 |
| 528 | 0.009276 | 0.009276 | 0.007985 | 0.007985 | 0.008399 | 0.008399 |
| 544 | 0.009057 | 0.009056 | 0.008005 | 0.008006 | 0.008345 | 0.008345 |
| 560 | 0.008874 | 0.008873 | 0.008022 | 0.008022 | 0.008299 | 0.008299 |
| 576 | 0.008723 | 0.008723 | 0.008035 | 0.008035 | 0.00826 | 0.00826 |
| 592 | 0.0086 | 0.008599 | 0.008046 | 0.008046 | 0.008228 | 0.008228 |
- Reference
- Konjugate, explicit Euler
- Konjugate, Runge–Kutta 4
Data table (every 8th point; all 301 are in plots/pipeNetworkPumpPressure.csv)
| Time (s) | Reference | Konjugate, explicit Euler | Konjugate, Runge–Kutta 4 |
|---|---|---|---|
| 0 | 176.6 | 176.6 | 176.6 |
| 16 | 150.6 | 150.6 | 150.6 |
| 32 | 149.9 | 149.8 | 149.9 |
| 48 | 149.5 | 149.5 | 149.5 |
| 64 | 149.3 | 149.3 | 149.3 |
| 80 | 149.2 | 149.2 | 149.2 |
| 96 | 149.2 | 149.2 | 149.2 |
| 112 | 149.1 | 149.1 | 149.1 |
| 128 | 149.1 | 149.1 | 149.1 |
| 144 | 149.1 | 149.1 | 149.1 |
| 160 | 149.1 | 149.1 | 149.1 |
| 176 | 149.1 | 149.1 | 149.1 |
| 192 | 149.2 | 149.2 | 149.2 |
| 208 | 149.2 | 149.2 | 149.2 |
| 224 | 149.2 | 149.2 | 149.2 |
| 240 | 149.2 | 149.2 | 149.2 |
| 256 | 149.2 | 149.2 | 149.2 |
| 272 | 149.2 | 149.2 | 149.2 |
| 288 | 149.2 | 149.2 | 149.2 |
| 304 | 149.3 | 149.2 | 149.3 |
| 320 | 150.4 | 150.4 | 150.4 |
| 336 | 151.3 | 151.3 | 151.3 |
| 352 | 152 | 152 | 152 |
| 368 | 152.6 | 152.6 | 152.6 |
| 384 | 153 | 153 | 153 |
| 400 | 153.3 | 153.3 | 153.3 |
| 416 | 153.5 | 153.5 | 153.5 |
| 432 | 153.7 | 153.7 | 153.7 |
| 448 | 153.8 | 153.8 | 153.8 |
| 464 | 154 | 154 | 154 |
| 480 | 154.1 | 154.1 | 154.1 |
| 496 | 154.2 | 154.2 | 154.2 |
| 512 | 154.3 | 154.3 | 154.3 |
| 528 | 154.3 | 154.3 | 154.3 |
| 544 | 154.4 | 154.4 | 154.4 |
| 560 | 154.4 | 154.4 | 154.4 |
| 576 | 154.5 | 154.5 | 154.5 |
| 592 | 154.5 | 154.5 | 154.5 |
Checks
| Check | What it measures | Value | Threshold | Result |
|---|---|---|---|---|
levelRelativeErrorExplicit | Tank levels: largest error relative to range, explicit Euler, h = 0.0625 s | 0.001068 | ≤ 0.0014 | ✓ Pass |
flowRelativeErrorExplicit | Pipe flows: largest error relative to range, explicit Euler, h = 0.0625 s | 0.007619 | ≤ 0.0096 | ✓ Pass |
pressureRelativeErrorExplicit | Pressures (tank bases and pump outlet): largest error relative to range, explicit Euler, h = 0.0625 s | 0.005888 | ≤ 0.0074 | ✓ Pass |
massConservationExplicit | Total water volume Σ A h: largest drift relative to the volume, from Konjugate's own states, explicit Euler | 5.24e-15 | ≤ 1.00e-10 | ✓ Pass |
orderExplicit | Observed order of the error in h, explicit Euler (fitted over every h) | 1.015 | 0.95 to 1.1 | ✓ Pass |
levelRelativeErrorRungeKutta4 | Tank levels: largest error relative to range, Runge–Kutta 4, h = 0.0625 s | 1.72e-9 | ≤ 2.20e-9 | ✓ Pass |
flowRelativeErrorRungeKutta4 | Pipe flows: largest error relative to range, Runge–Kutta 4, h = 0.0625 s | 1.16e-7 | ≤ 1.50e-7 | ✓ Pass |
pressureRelativeErrorRungeKutta4 | Pressures (tank bases and pump outlet): largest error relative to range, Runge–Kutta 4, h = 0.0625 s | 1.18e-8 | ≤ 1.50e-8 | ✓ Pass |
massConservationRungeKutta4 | Total water volume Σ A h: largest drift relative to the volume, from Konjugate's own states, Runge–Kutta 4 | 3.74e-15 | ≤ 1.00e-10 | ✓ Pass |
orderRungeKutta4 | Observed order of the error in h, Runge–Kutta 4 (fitted over every h) | 4.164 | 3.95 to 4.38 | ✓ Pass |
referenceSelfAgreement | The reference (DOP853, rtol 1e-13) against Radau at rtol 1e-10, largest difference relative to each state's magnitude | 4.32e-11 | ≤ 5.00e-10 | ✓ Pass |
- Every flow leaves one tank and enters another within the same step, so the network's total volume is kept to rounding under either method. The valve's kinks fall on step boundaries, so Runge–Kutta 4 keeps its order through them.
All 11 result rows
| Case | Method | h (s) | Substeps | Horizon (s) | Max abs error | RMSE | Relative error | Conservation error | Observed order | Steps | Substeps run | Evaluations | Note |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Levels and flows | explicit Euler | 0.25 | 1 | 600 | 0.01152 | 0.001177 | 0.03154 | 2.24e-15 | – | 2,400 | 14,400 | 36,000 | relative to range: levels 4.30e-3, flows 3.15e-2, pressures 2.44e-2 (largest 6.70e+2 Pa); conservation = drift of the total volume / volume |
| Levels and flows | explicit Euler | 0.125 | 1 | 600 | 0.005731 | 5.87e-4 | 0.01541 | 2.43e-15 | – | 4,800 | 28,800 | 72,000 | relative to range: levels 2.14e-3, flows 1.54e-2, pressures 1.19e-2 (largest 3.27e+2 Pa); conservation = drift of the total volume / volume |
| Levels and flows | explicit Euler | 0.0625 | 1 | 600 | 0.002859 | 2.93e-4 | 0.007619 | 5.24e-15 | – | 9,600 | 57,600 | 1.44e5 | relative to range: levels 1.07e-3, flows 7.62e-3, pressures 5.89e-3 (largest 1.62e+2 Pa); conservation = drift of the total volume / volume |
| Levels and flows | explicit Euler | 0.03125 | 1 | 600 | 0.001428 | 1.46e-4 | 0.003789 | 4.11e-15 | – | 19,200 | 1.15e5 | 2.88e5 | relative to range: levels 5.34e-4, flows 3.79e-3, pressures 2.93e-3 (largest 8.03e+1 Pa); conservation = drift of the total volume / volume |
| Levels and flows | explicit Euler | 0.01563 | 1 | 600 | 7.13e-4 | 7.31e-5 | 0.00189 | 5.61e-15 | – | 38,400 | 2.30e5 | 5.76e5 | relative to range: levels 2.67e-4, flows 1.89e-3, pressures 1.46e-3 (largest 4.01e+1 Pa); conservation = drift of the total volume / volume |
| Error order in h | explicit Euler | – | 1 | – | – | – | – | – | 1.015 | – | – | – | pairwise 1.034, 1.016, 1.008, 1.004 |
| Levels and flows | Runge–Kutta 4 | 0.125 | 1 | 600 | 8.83e-8 | 7.64e-9 | 2.26e-6 | 3.55e-15 | – | 4,800 | 28,800 | 2.88e5 | relative to range: levels 3.30e-8, flows 2.26e-6, pressures 1.95e-7 (largest 5.35e-3 Pa); conservation = drift of the total volume / volume |
| Levels and flows | Runge–Kutta 4 | 0.0625 | 1 | 600 | 4.59e-9 | 4.33e-10 | 1.16e-7 | 3.74e-15 | – | 9,600 | 57,600 | 5.76e5 | relative to range: levels 1.72e-9, flows 1.16e-7, pressures 1.18e-8 (largest 3.23e-4 Pa); conservation = drift of the total volume / volume |
| Levels and flows | Runge–Kutta 4 | 0.03125 | 1 | 600 | 2.62e-10 | 2.64e-11 | 6.56e-9 | 6.36e-15 | – | 19,200 | 1.15e5 | 1.15e6 | relative to range: levels 9.79e-11, flows 6.56e-9, pressures 7.24e-10 (largest 1.99e-5 Pa); conservation = drift of the total volume / volume |
| Levels and flows | Runge–Kutta 4 | 0.01563 | 1 | 600 | 1.64e-11 | 1.73e-12 | 3.91e-10 | 4.86e-15 | – | 38,400 | 2.30e5 | 2.30e6 | relative to range: levels 6.12e-12, flows 3.91e-10, pressures 4.49e-11 (largest 1.23e-6 Pa); conservation = drift of the total volume / volume |
| Error order in h | Runge–Kutta 4 | – | 1 | – | – | – | – | – | 4.164 | – | – | – | pairwise 4.287, 4.143, 4.071 |
DC motor under PID speed control
A DC motor as six nodes across four domains (controller, armature, rotor, winding, housing, ambient), its speed under PID control through a setpoint step, a voltage limit and a load step: every state and the step response against SciPy, and the energy booked between domains from Konjugate's own states, under explicit Euler and Runge–Kutta 4.
Directory benchmarks/multiDomain/dcMotor/ · models dcMotor.kjt · numerical reference reference.json: solve_ivp DOP853, rtol = 1e-13, atol = 1e-15, in pieces between the setpoint and load steps; Radau at rtol = 1e-10 as a check (SciPy 1.13.1, NumPy 2.0.2)
- Reference
- Konjugate, explicit Euler
- Konjugate, Runge–Kutta 4
Data table (every 2th point; all 45 are in plots/dcMotorStepResponse.csv)
| Time (s) | Reference | Konjugate, explicit Euler | Konjugate, Runge–Kutta 4 |
|---|---|---|---|
| 3.906 | 200 | 200 | 200 |
| 3.938 | 200 | 200 | 200 |
| 3.969 | 200 | 200 | 200 |
| 4 | 200 | 200 | 200 |
| 4.031 | 300.8 | 301 | 300.8 |
| 4.063 | 348.1 | 348.2 | 348.1 |
| 4.094 | 370.9 | 371 | 370.9 |
| 4.125 | 382.9 | 383 | 382.9 |
| 4.156 | 389.7 | 389.7 | 389.7 |
| 4.188 | 393.6 | 393.7 | 393.6 |
| 4.219 | 396 | 396.1 | 396 |
| 4.25 | 397.5 | 397.5 | 397.5 |
| 4.281 | 398.4 | 398.4 | 398.4 |
| 4.313 | 399 | 399 | 399 |
| 4.344 | 399.4 | 399.4 | 399.4 |
| 4.375 | 399.6 | 399.6 | 399.6 |
| 4.406 | 399.8 | 399.8 | 399.8 |
| 4.438 | 399.8 | 399.8 | 399.8 |
| 4.469 | 399.9 | 399.9 | 399.9 |
| 4.5 | 399.9 | 399.9 | 399.9 |
| 4.531 | 400 | 400 | 400 |
| 4.563 | 400 | 400 | 400 |
| 4.594 | 400 | 400 | 400 |
- Reference, winding
- Reference, housing
- Konjugate, winding, explicit Euler
- Konjugate, housing, explicit Euler
Data table (every 20th point; all 769 are in plots/dcMotorTemperatures.csv)
| Time (s) | Reference, winding | Reference, housing | Konjugate, winding, explicit Euler | Konjugate, housing, explicit Euler |
|---|---|---|---|---|
| 0 | 293.1 | 293.1 | 293.1 | 293.1 |
| 0.3125 | 293.5 | 293.2 | 293.5 | 293.2 |
| 0.625 | 293.5 | 293.2 | 293.5 | 293.2 |
| 0.9375 | 293.5 | 293.2 | 293.5 | 293.2 |
| 1.25 | 293.4 | 293.2 | 293.4 | 293.2 |
| 1.563 | 293.4 | 293.2 | 293.4 | 293.2 |
| 1.875 | 293.4 | 293.2 | 293.4 | 293.2 |
| 2.188 | 293.4 | 293.2 | 293.4 | 293.2 |
| 2.5 | 293.4 | 293.2 | 293.4 | 293.2 |
| 2.813 | 293.4 | 293.2 | 293.4 | 293.2 |
| 3.125 | 293.4 | 293.2 | 293.4 | 293.2 |
| 3.438 | 293.3 | 293.2 | 293.3 | 293.2 |
| 3.75 | 293.3 | 293.2 | 293.3 | 293.2 |
| 4.063 | 293.7 | 293.2 | 293.7 | 293.2 |
| 4.375 | 293.7 | 293.2 | 293.7 | 293.2 |
| 4.688 | 293.6 | 293.2 | 293.6 | 293.2 |
| 5 | 293.6 | 293.2 | 293.6 | 293.2 |
| 5.313 | 293.6 | 293.2 | 293.6 | 293.2 |
| 5.625 | 293.6 | 293.3 | 293.6 | 293.3 |
| 5.938 | 293.6 | 293.3 | 293.6 | 293.3 |
| 6.25 | 293.5 | 293.3 | 293.5 | 293.3 |
| 6.563 | 293.5 | 293.3 | 293.5 | 293.3 |
| 6.875 | 293.5 | 293.3 | 293.5 | 293.3 |
| 7.188 | 293.5 | 293.3 | 293.5 | 293.3 |
| 7.5 | 293.5 | 293.3 | 293.5 | 293.3 |
| 7.813 | 293.5 | 293.3 | 293.5 | 293.3 |
| 8.125 | 293.6 | 293.3 | 293.6 | 293.3 |
| 8.438 | 293.8 | 293.4 | 293.8 | 293.4 |
| 8.75 | 294.1 | 293.4 | 294.1 | 293.4 |
| 9.063 | 294.3 | 293.4 | 294.3 | 293.4 |
| 9.375 | 294.5 | 293.4 | 294.5 | 293.4 |
| 9.688 | 294.7 | 293.4 | 294.7 | 293.4 |
| 10 | 294.9 | 293.4 | 294.9 | 293.4 |
| 10.31 | 295.1 | 293.5 | 295.1 | 293.5 |
| 10.63 | 295.2 | 293.5 | 295.2 | 293.5 |
| 10.94 | 295.4 | 293.5 | 295.4 | 293.5 |
| 11.25 | 295.5 | 293.5 | 295.5 | 293.5 |
| 11.56 | 295.7 | 293.5 | 295.7 | 293.5 |
| 11.88 | 295.8 | 293.6 | 295.8 | 293.6 |
- Supply
- Copper loss
- Work on the load
- Friction loss
- Heat to ambient
Data table (every 20th point; all 769 are in plots/dcMotorEnergy.csv)
| Time (s) | Supply | Copper loss | Work on the load | Friction loss | Heat to ambient |
|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | 0 |
| 0.3125 | 3.879 | 1.816 | 0 | 0.09529 | 2.71e-4 |
| 0.625 | 4.024 | 1.816 | 0 | 0.22 | 0.00124 |
| 0.9375 | 4.15 | 1.817 | 0 | 0.345 | 0.002902 |
| 1.25 | 4.275 | 1.817 | 0 | 0.47 | 0.005234 |
| 1.563 | 4.401 | 1.818 | 0 | 0.595 | 0.00821 |
| 1.875 | 4.526 | 1.818 | 0 | 0.72 | 0.01181 |
| 2.188 | 4.652 | 1.819 | 0 | 0.845 | 0.01601 |
| 2.5 | 4.777 | 1.819 | 0 | 0.97 | 0.0208 |
| 2.813 | 4.903 | 1.82 | 0 | 1.095 | 0.02616 |
| 3.125 | 5.028 | 1.82 | 0 | 1.22 | 0.03206 |
| 3.438 | 5.154 | 1.821 | 0 | 1.345 | 0.0385 |
| 3.75 | 5.279 | 1.821 | 0 | 1.47 | 0.04546 |
| 4.063 | 11.23 | 3.557 | 0 | 1.624 | 0.05294 |
| 4.375 | 13.73 | 3.672 | 0 | 2.101 | 0.06173 |
| 4.688 | 14.25 | 3.674 | 0 | 2.601 | 0.07249 |
| 5 | 14.75 | 3.676 | 0 | 3.101 | 0.08518 |
| 5.313 | 15.25 | 3.678 | 0 | 3.601 | 0.09975 |
| 5.625 | 15.76 | 3.68 | 0 | 4.101 | 0.1162 |
| 5.938 | 16.26 | 3.682 | 0 | 4.601 | 0.1344 |
| 6.25 | 16.76 | 3.684 | 0 | 5.101 | 0.1544 |
| 6.563 | 17.26 | 3.686 | 0 | 5.601 | 0.1762 |
| 6.875 | 17.76 | 3.688 | 0 | 6.101 | 0.1997 |
| 7.188 | 18.27 | 3.69 | 0 | 6.601 | 0.2248 |
| 7.5 | 18.77 | 3.692 | 0 | 7.101 | 0.2517 |
| 7.813 | 19.27 | 3.694 | 0 | 7.601 | 0.2801 |
| 8.125 | 24.84 | 4.215 | 4.853 | 8.089 | 0.3102 |
| 8.438 | 39.49 | 5.633 | 17.3 | 8.585 | 0.3419 |
| 8.75 | 53.85 | 6.99 | 29.8 | 9.085 | 0.3756 |
| 9.063 | 68.21 | 8.347 | 42.3 | 9.585 | 0.4114 |
| 9.375 | 82.57 | 9.706 | 54.8 | 10.08 | 0.4495 |
| 9.688 | 96.93 | 11.07 | 67.3 | 10.58 | 0.4901 |
| 10 | 111.3 | 12.43 | 79.8 | 11.08 | 0.5334 |
| 10.31 | 125.7 | 13.79 | 92.3 | 11.58 | 0.5795 |
| 10.63 | 140 | 15.15 | 104.8 | 12.08 | 0.6286 |
| 10.94 | 154.4 | 16.51 | 117.3 | 12.58 | 0.6809 |
| 11.25 | 168.7 | 17.88 | 129.8 | 13.08 | 0.7364 |
| 11.56 | 183.1 | 19.24 | 142.3 | 13.58 | 0.7952 |
| 11.88 | 197.5 | 20.61 | 154.8 | 14.08 | 0.8575 |
Checks
| Check | What it measures | Value | Threshold | Result |
|---|---|---|---|---|
relativeErrorExplicit | Every state (current, speeds, controller, temperatures): largest error relative to range, explicit Euler, h = 2^-12 s | 0.00368 | ≤ 0.0047 | ✓ Pass |
electromechanicalBalanceExplicit | Supply energy against stored + copper + friction + load, from Konjugate's own states, relative to the supply energy, explicit Euler | 1.22e-4 | ≤ 1.60e-4 | ✓ Pass |
thermalBalanceExplicit | Copper + friction loss against heat stored in winding and housing + heat to ambient, from Konjugate's own states, relative to the supply energy, explicit Euler | 1.19e-12 | ≤ 1.00e-10 | ✓ Pass |
supplyEnergyErrorExplicit | Energy drawn from the supply against the reference, relative to its total, explicit Euler | 4.39e-5 | ≤ 5.50e-5 | ✓ Pass |
riseTimeErrorExplicit | 10–90 % rise time after the setpoint step against the reference's, relative, explicit Euler | 0.002314 | ≤ 0.0029 | ✓ Pass |
loadDipErrorExplicit | Speed dip after the load step against the reference's, relative, explicit Euler | 0.002316 | ≤ 0.0029 | ✓ Pass |
orderExplicit | Observed order of the error in h, explicit Euler (fitted over every h) | 1.051 | 0.95 to 1.1 | ✓ Pass |
relativeErrorRungeKutta4 | Every state (current, speeds, controller, temperatures): largest error relative to range, Runge–Kutta 4, h = 2^-12 s | 5.53e-8 | ≤ 7.20e-8 | ✓ Pass |
electromechanicalBalanceRungeKutta4 | Supply energy against stored + copper + friction + load, from Konjugate's own states, relative to the supply energy, Runge–Kutta 4 | 4.79e-9 | ≤ 6.30e-9 | ✓ Pass |
thermalBalanceRungeKutta4 | Copper + friction loss against heat stored in winding and housing + heat to ambient, from Konjugate's own states, relative to the supply energy, Runge–Kutta 4 | 7.28e-13 | ≤ 1.00e-10 | ✓ Pass |
supplyEnergyErrorRungeKutta4 | Energy drawn from the supply against the reference, relative to its total, Runge–Kutta 4 | 2.68e-10 | ≤ 3.50e-10 | ✓ Pass |
riseTimeErrorRungeKutta4 | 10–90 % rise time after the setpoint step against the reference's, relative, Runge–Kutta 4 | 7.42e-11 | ≤ 9.70e-11 | ✓ Pass |
loadDipErrorRungeKutta4 | Speed dip after the load step against the reference's, relative, Runge–Kutta 4 | 2.10e-10 | ≤ 2.80e-10 | ✓ Pass |
orderRungeKutta4 | Observed order of the error in h, Runge–Kutta 4 (fitted over every h) | 4.276 | 4 to 4.5 | ✓ Pass |
referenceSelfAgreement | The reference (DOP853, rtol 1e-13) against Radau at rtol 1e-10, largest difference relative to each column's magnitude | 1.02e-9 | ≤ 3.00e-9 | ✓ Pass |
- The thermal balance is linear in the states and is kept to rounding by either method; the electromechanical one holds only as well as the integration, since ½ L i² and ½ J ω² are quadratic.
- The setpoint and load steps are conditions on time in the equations, so Runge–Kutta 4 locates each and steps to it (docs/proposals/integrators.md, Event location): the step that ends at a step input is taken entirely before it, and Runge–Kutta 4 keeps its fourth order through the steps, with its largest error, in the armature current at 4 s, far below explicit Euler's, which does not locate them.
All 10 result rows
| Case | Method | h (s) | Substeps | Horizon (s) | Max abs error | RMSE | Relative error | Conservation error | Observed order | Steps | Substeps run | Evaluations | Note |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Currents, speeds, controller and temperatures | explicit Euler | 9.77e-4 | 1 | 12 | 1.045 | 0.0676 | 0.01609 | 5.61e-4 | – | 12,290 | 73,730 | 2.33e5 | thermal balance 5.43e-13, supply-energy error 1.84e-4; rise time 109.619 ms (reference 110.654), load dip 15.5833 rad/s (reference 15.4391); conservation = electromechanical balance / supply energy |
| Currents, speeds, controller and temperatures | explicit Euler | 4.88e-4 | 1 | 12 | 0.5179 | 0.03362 | 0.007604 | 2.54e-4 | – | 24,580 | 1.47e5 | 4.67e5 | thermal balance 8.00e-13, supply-energy error 8.90e-5; rise time 110.140 ms (reference 110.654), load dip 15.5108 rad/s (reference 15.4391); conservation = electromechanical balance / supply energy |
| Currents, speeds, controller and temperatures | explicit Euler | 2.44e-4 | 1 | 12 | 0.2578 | 0.01677 | 0.00368 | 1.22e-4 | – | 49,150 | 2.95e5 | 9.34e5 | thermal balance 1.19e-12, supply-energy error 4.39e-5; rise time 110.398 ms (reference 110.654), load dip 15.4748 rad/s (reference 15.4391); conservation = electromechanical balance / supply energy |
| Currents, speeds, controller and temperatures | explicit Euler | 1.22e-4 | 1 | 12 | 0.1286 | 0.008373 | 0.001809 | 5.95e-5 | – | 98,300 | 5.90e5 | 1.87e6 | thermal balance 9.24e-13, supply-energy error 2.18e-5; rise time 110.526 ms (reference 110.654), load dip 15.4569 rad/s (reference 15.4391); conservation = electromechanical balance / supply energy |
| Error order in h | explicit Euler | – | 1 | – | – | – | – | – | 1.051 | – | – | – | pairwise 1.081, 1.047, 1.025 |
| Currents, speeds, controller and temperatures | Runge–Kutta 4 | 0.001953 | 1 | 12 | 0.002023 | 2.35e-4 | 4.07e-4 | 3.80e-5 | – | 6,144 | 36,860 | 4.67e5 | thermal balance 3.03e-13, supply-energy error 9.68e-7; rise time 110.654 ms (reference 110.654), load dip 15.4391 rad/s (reference 15.4391); conservation = electromechanical balance / supply energy |
| Currents, speeds, controller and temperatures | Runge–Kutta 4 | 9.77e-4 | 1 | 12 | 1.15e-4 | 1.04e-5 | 1.77e-5 | 1.56e-6 | – | 12,290 | 73,730 | 9.34e5 | thermal balance 4.57e-13, supply-energy error 5.46e-8; rise time 110.654 ms (reference 110.654), load dip 15.4391 rad/s (reference 15.4391); conservation = electromechanical balance / supply energy |
| Currents, speeds, controller and temperatures | Runge–Kutta 4 | 4.88e-4 | 1 | 12 | 6.98e-6 | 5.61e-7 | 9.51e-7 | 8.29e-8 | – | 24,580 | 1.47e5 | 1.87e6 | thermal balance 1.05e-12, supply-energy error 4.11e-9; rise time 110.654 ms (reference 110.654), load dip 15.4391 rad/s (reference 15.4391); conservation = electromechanical balance / supply energy |
| Currents, speeds, controller and temperatures | Runge–Kutta 4 | 2.44e-4 | 1 | 12 | 4.28e-7 | 3.27e-8 | 5.53e-8 | 4.79e-9 | – | 49,150 | 2.95e5 | 3.74e6 | thermal balance 7.28e-13, supply-energy error 2.68e-10; rise time 110.654 ms (reference 110.654), load dip 15.4391 rad/s (reference 15.4391); conservation = electromechanical balance / supply energy |
| Error order in h | Runge–Kutta 4 | – | 1 | – | – | – | – | – | 4.276 | – | – | – | pairwise 4.525, 4.217, 4.106 |
Data centre (showcase)
Two rows of eight server racks, their aisles, an underfloor plenum, the room and three cooling units, as a graph of 26 nodes: a batch job and a cooling unit's failure, the rack inlet temperatures an operator watches and the heat each unit removes, against a model written independently in Python, with the energy balance from Konjugate's own states, under explicit Euler and Runge–Kutta 4.
Directory benchmarks/showcase/dataCentre/ · models dataCentre.kjt · numerical reference reference.json: An independently written vector ODE of the same physics; solve_ivp DOP853 at rtol = atol = 1e-12 in pieces between the batch job and the failure; Radau at rtol = 1e-9 as a check (SciPy 1.13.1, NumPy 2.0.2)
- Reference, hottest rack (B1)
- Konjugate, rack B1, explicit Euler
- Konjugate, rack B1, Runge–Kutta 4
- Reference, rack A4 (mid-row)
- Konjugate, rack A4, explicit Euler
- ASHRAE recommended limit, 27 °C
Data table (every 5th point; all 181 are in plots/dataCentreInlets.csv)
| Time (min) | Reference, hottest rack (B1) | Konjugate, rack B1, explicit Euler | Konjugate, rack B1, Runge–Kutta 4 | Reference, rack A4 (mid-row) | Konjugate, rack A4, explicit Euler | ASHRAE recommended limit, 27 °C |
|---|---|---|---|---|---|---|
| 0 | 18 | 18 | 18 | 18 | 18 | 27 |
| 0.8333 | 18.37 | 18.37 | 18.37 | 18.06 | 18.06 | 27 |
| 1.667 | 18.7 | 18.7 | 18.7 | 18.12 | 18.12 | 27 |
| 2.5 | 18.96 | 18.96 | 18.96 | 18.17 | 18.17 | 27 |
| 3.333 | 19.14 | 19.15 | 19.14 | 18.21 | 18.21 | 27 |
| 4.167 | 19.29 | 19.29 | 19.29 | 18.24 | 18.24 | 27 |
| 5 | 19.39 | 19.4 | 19.39 | 18.26 | 18.26 | 27 |
| 5.833 | 19.6 | 19.6 | 19.6 | 18.28 | 18.28 | 27 |
| 6.667 | 19.77 | 19.77 | 19.77 | 18.29 | 18.29 | 27 |
| 7.5 | 19.89 | 19.89 | 19.89 | 18.3 | 18.3 | 27 |
| 8.333 | 19.99 | 19.99 | 19.99 | 18.31 | 18.31 | 27 |
| 9.167 | 20.05 | 20.05 | 20.05 | 18.32 | 18.32 | 27 |
| 10 | 20.11 | 20.11 | 20.11 | 18.33 | 18.33 | 27 |
| 10.83 | 20.14 | 20.14 | 20.14 | 18.33 | 18.33 | 27 |
| 11.67 | 20.17 | 20.17 | 20.17 | 18.33 | 18.33 | 27 |
| 12.5 | 20.19 | 20.19 | 20.19 | 18.34 | 18.34 | 27 |
| 13.33 | 20.21 | 20.21 | 20.21 | 18.34 | 18.34 | 27 |
| 14.17 | 20.22 | 20.22 | 20.22 | 18.34 | 18.34 | 27 |
| 15 | 20.23 | 20.23 | 20.23 | 18.34 | 18.34 | 27 |
| 15.83 | 24.15 | 24.16 | 24.15 | 22.47 | 22.48 | 27 |
| 16.67 | 24.88 | 24.88 | 24.88 | 23.23 | 23.24 | 27 |
| 17.5 | 25.27 | 25.27 | 25.27 | 23.58 | 23.58 | 27 |
| 18.33 | 25.55 | 25.55 | 25.55 | 23.82 | 23.82 | 27 |
| 19.17 | 25.78 | 25.78 | 25.78 | 24.01 | 24.01 | 27 |
| 20 | 25.97 | 25.97 | 25.97 | 24.18 | 24.18 | 27 |
| 20.83 | 26.12 | 26.12 | 26.12 | 24.31 | 24.31 | 27 |
| 21.67 | 26.25 | 26.25 | 26.25 | 24.42 | 24.42 | 27 |
| 22.5 | 26.36 | 26.36 | 26.36 | 24.52 | 24.52 | 27 |
| 23.33 | 26.45 | 26.45 | 26.45 | 24.6 | 24.6 | 27 |
| 24.17 | 26.53 | 26.53 | 26.53 | 24.66 | 24.66 | 27 |
| 25 | 26.59 | 26.59 | 26.59 | 24.72 | 24.72 | 27 |
| 25.83 | 26.65 | 26.65 | 26.65 | 24.77 | 24.77 | 27 |
| 26.67 | 26.75 | 26.75 | 26.75 | 24.87 | 24.87 | 27 |
| 27.5 | 26.86 | 26.87 | 26.86 | 24.98 | 24.98 | 27 |
| 28.33 | 26.98 | 26.98 | 26.98 | 25.1 | 25.1 | 27 |
| 29.17 | 27.1 | 27.1 | 27.1 | 25.22 | 25.22 | 27 |
| 30 | 27.22 | 27.22 | 27.22 | 25.34 | 25.34 | 27 |
- Reference, room return
- Room return
- Row B hot aisle
- Underfloor plenum
- Reference, row B hot aisle
- Reference, plenum
Data table (every 5th point; all 181 are in plots/dataCentreAir.csv)
| Time (min) | Reference, room return | Room return | Row B hot aisle | Underfloor plenum | Reference, row B hot aisle | Reference, plenum |
|---|---|---|---|---|---|---|
| 0 | 18 | 18 | 18 | 18 | 18 | 18 |
| 0.8333 | 19.64 | 19.64 | 20.47 | 18 | 20.47 | 18 |
| 1.667 | 21.84 | 21.84 | 22.7 | 18 | 22.7 | 18 |
| 2.5 | 23.61 | 23.61 | 24.37 | 18 | 24.37 | 18 |
| 3.333 | 24.97 | 24.97 | 25.63 | 18 | 25.63 | 18 |
| 4.167 | 26.01 | 26.01 | 26.58 | 18 | 26.58 | 18 |
| 5 | 26.81 | 26.82 | 27.3 | 18 | 27.3 | 18 |
| 5.833 | 27.71 | 27.71 | 28.66 | 18 | 28.65 | 18 |
| 6.667 | 28.6 | 28.6 | 29.79 | 18 | 29.78 | 18 |
| 7.5 | 29.29 | 29.29 | 30.62 | 18 | 30.62 | 18 |
| 8.333 | 29.81 | 29.82 | 31.24 | 18 | 31.24 | 18 |
| 9.167 | 30.21 | 30.21 | 31.7 | 18 | 31.7 | 18 |
| 10 | 30.51 | 30.51 | 32.04 | 18 | 32.04 | 18 |
| 10.83 | 30.73 | 30.73 | 32.29 | 18 | 32.29 | 18 |
| 11.67 | 30.91 | 30.91 | 32.48 | 18 | 32.48 | 18 |
| 12.5 | 31.04 | 31.04 | 32.62 | 18 | 32.62 | 18 |
| 13.33 | 31.14 | 31.14 | 32.73 | 18 | 32.73 | 18 |
| 14.17 | 31.22 | 31.22 | 32.81 | 18 | 32.81 | 18 |
| 15 | 31.28 | 31.28 | 32.87 | 18 | 32.87 | 18 |
| 15.83 | 32.24 | 32.24 | 34.62 | 22.5 | 34.61 | 22.5 |
| 16.67 | 33.49 | 33.49 | 35.63 | 23.04 | 35.63 | 23.04 |
| 17.5 | 34.28 | 34.28 | 36.35 | 23.35 | 36.35 | 23.34 |
| 18.33 | 34.9 | 34.9 | 36.94 | 23.57 | 36.93 | 23.57 |
| 19.17 | 35.41 | 35.41 | 37.41 | 23.75 | 37.41 | 23.75 |
| 20 | 35.83 | 35.83 | 37.8 | 23.9 | 37.8 | 23.9 |
| 20.83 | 36.18 | 36.18 | 38.13 | 24.02 | 38.12 | 24.02 |
| 21.67 | 36.47 | 36.47 | 38.39 | 24.13 | 38.39 | 24.12 |
| 22.5 | 36.71 | 36.71 | 38.61 | 24.21 | 38.61 | 24.21 |
| 23.33 | 36.92 | 36.92 | 38.8 | 24.28 | 38.79 | 24.28 |
| 24.17 | 37.09 | 37.09 | 38.95 | 24.34 | 38.95 | 24.34 |
| 25 | 37.23 | 37.23 | 39.07 | 24.4 | 39.07 | 24.4 |
| 25.83 | 37.35 | 37.35 | 39.18 | 24.45 | 39.18 | 24.45 |
| 26.67 | 37.46 | 37.47 | 39.29 | 24.55 | 39.29 | 24.55 |
| 27.5 | 37.58 | 37.58 | 39.41 | 24.67 | 39.41 | 24.67 |
| 28.33 | 37.7 | 37.7 | 39.53 | 24.79 | 39.53 | 24.79 |
| 29.17 | 37.82 | 37.82 | 39.65 | 24.91 | 39.65 | 24.91 |
| 30 | 37.94 | 37.94 | 39.77 | 25.03 | 39.76 | 25.03 |
- IT load
- Cooling unit 1
- Cooling unit 2
- Cooling unit 3
Data table (every 5th point; all 180 are in plots/dataCentreCooling.csv)
| Time (min) | IT load | Cooling unit 1 | Cooling unit 2 | Cooling unit 3 |
|---|---|---|---|---|
| 0.1667 | 144 | 0.2916 | 0.2916 | 0.2916 |
| 1 | 144 | 7.726 | 7.726 | 7.726 |
| 1.833 | 144 | 16.71 | 16.71 | 16.71 |
| 2.667 | 144 | 23.85 | 23.85 | 23.85 |
| 3.5 | 144 | 29.34 | 29.34 | 29.34 |
| 4.333 | 144 | 33.55 | 33.55 | 33.55 |
| 5.167 | 168 | 36.8 | 36.8 | 36.8 |
| 6 | 168 | 40.62 | 40.62 | 40.62 |
| 6.833 | 168 | 44.24 | 44.24 | 44.24 |
| 7.667 | 168 | 47.02 | 47.02 | 47.02 |
| 8.5 | 168 | 49.12 | 49.12 | 49.12 |
| 9.333 | 168 | 50.71 | 50.71 | 50.71 |
| 10.17 | 168 | 51.91 | 51.91 | 51.91 |
| 11 | 168 | 52.83 | 52.83 | 52.83 |
| 11.83 | 168 | 53.52 | 53.52 | 53.52 |
| 12.67 | 168 | 54.06 | 54.06 | 54.06 |
| 13.5 | 168 | 54.46 | 54.46 | 54.46 |
| 14.33 | 168 | 54.77 | 54.77 | 54.77 |
| 15.17 | 168 | 55.02 | 0 | 55.02 |
| 16 | 168 | 59.65 | 0 | 59.65 |
| 16.83 | 168 | 64.55 | 0 | 64.55 |
| 17.67 | 168 | 67.73 | 0 | 67.73 |
| 18.5 | 168 | 70.23 | 0 | 70.23 |
| 19.33 | 168 | 72.28 | 0 | 72.28 |
| 20.17 | 168 | 74 | 0 | 74 |
| 21 | 168 | 75.42 | 0 | 75.42 |
| 21.83 | 168 | 76.61 | 0 | 76.61 |
| 22.67 | 168 | 77.61 | 0 | 77.61 |
| 23.5 | 168 | 78.44 | 0 | 78.44 |
| 24.33 | 168 | 79.14 | 0 | 79.14 |
| 25.17 | 168 | 79.72 | 0 | 79.72 |
| 26 | 168 | 80 | 0 | 80 |
| 26.83 | 168 | 80 | 0 | 80 |
| 27.67 | 168 | 80 | 0 | 80 |
| 28.5 | 168 | 80 | 0 | 80 |
| 29.33 | 168 | 80 | 0 | 80 |
Checks
| Check | What it measures | Value | Threshold | Result |
|---|---|---|---|---|
relativeErrorExplicit | Every temperature: largest error relative to range, explicit Euler, h = 0.25 s | 0.00404 | ≤ 0.0051 | ✓ Pass |
inletErrorExplicit | Rack inlet temperatures: largest error (K), explicit Euler | 0.01913 | ≤ 0.024 | ✓ Pass |
crossingTimeErrorExplicit | When the hottest rack inlet crosses 27 °C, against the reference (s), explicit Euler | 0.3006 | ≤ 0.38 | ✓ Pass |
heatRemovedErrorExplicit | Heat each cooling unit removed over the run, against the reference, relative to the largest, explicit Euler | 6.11e-6 | ≤ 7.70e-6 | ✓ Pass |
energyBalanceExplicit | Energy stored against IT heat + envelope gain - heat removed, from Konjugate's own states, relative to the IT energy, explicit Euler | 2.85e-15 | ≤ 1.00e-10 | ✓ Pass |
orderExplicit | Observed order of the error in h, explicit Euler (fitted over every h) | 1.019 | 0.95 to 1.1 | ✓ Pass |
relativeErrorRungeKutta4 | Every temperature: largest error relative to range, Runge–Kutta 4, h = 0.25 s | 1.74e-7 | ≤ 2.30e-7 | ✓ Pass |
inletErrorRungeKutta4 | Rack inlet temperatures: largest error (K), Runge–Kutta 4 | 4.64e-8 | ≤ 6.10e-8 | ✓ Pass |
crossingTimeErrorRungeKutta4 | When the hottest rack inlet crosses 27 °C, against the reference (s), Runge–Kutta 4 | 3.19e-6 | ≤ 4.20e-6 | ✓ Pass |
heatRemovedErrorRungeKutta4 | Heat each cooling unit removed over the run, against the reference, relative to the largest, Runge–Kutta 4 | 8.48e-11 | ≤ 1.20e-10 | ✓ Pass |
energyBalanceRungeKutta4 | Energy stored against IT heat + envelope gain - heat removed, from Konjugate's own states, relative to the IT energy, Runge–Kutta 4 | 7.62e-15 | ≤ 1.00e-10 | ✓ Pass |
orderRungeKutta4 | Observed order of the error in h, Runge–Kutta 4 (fitted over every h) | 3.44 | 3 to 3.9 | ✓ Pass |
referenceSelfAgreement | The reference (DOP853, rtol 1e-12) against Radau at rtol 1e-9, largest difference relative to each temperature's magnitude | 1.00e-8 | ≤ 3.00e-8 | ✓ Pass |
graphSize | Nodes in the model (racks, aisles, plenum, room, cooling units, outdoors) | 26 | 26 to 26 | ✓ Pass |
- The model is 26 nodes and 68 relationships, built as an ordinary project (dataCentre.kjt opens in Konjugate). The reference is the same physics written independently as one vector ODE in Python.
- After the cooling unit fails, the two left can remove 160 kW of the 168 kW load: the hottest rack inlet (B1, at the end of a row, where recirculation is greatest) crosses 27 °C at 28.45 min in the reference.
All 10 result rows
| Case | Method | h (s) | Substeps | Horizon (s) | Max abs error | RMSE | Relative error | Conservation error | Observed order | Steps | Substeps run | Evaluations | Note |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Every temperature (servers, exhaust, aisles, plenum, room, coils) | explicit Euler | 1 | 1 | 1,800 | 0.3336 | 0.008781 | 0.01674 | 2.02e-15 | – | 1,800 | 46,800 | 2.09e5 | rack inlets 8.02e-2 K at most; hottest inlet crosses 27 °C at 1705.61 s (reference 1706.81 s); heat removed per unit within 2.45e-5; conservation = energy-balance defect / IT energy |
| Every temperature (servers, exhaust, aisles, plenum, room, coils) | explicit Euler | 0.5 | 1 | 1,800 | 0.1629 | 0.004358 | 0.008174 | 2.40e-15 | – | 3,600 | 93,600 | 4.18e5 | rack inlets 3.88e-2 K at most; hottest inlet crosses 27 °C at 1706.21 s (reference 1706.81 s); heat removed per unit within 1.22e-5; conservation = energy-balance defect / IT energy |
| Every temperature (servers, exhaust, aisles, plenum, room, coils) | explicit Euler | 0.25 | 1 | 1,800 | 0.0805 | 0.002171 | 0.00404 | 2.85e-15 | – | 7,200 | 1.87e5 | 8.35e5 | rack inlets 1.91e-2 K at most; hottest inlet crosses 27 °C at 1706.51 s (reference 1706.81 s); heat removed per unit within 6.11e-6; conservation = energy-balance defect / IT energy |
| Every temperature (servers, exhaust, aisles, plenum, room, coils) | explicit Euler | 0.125 | 1 | 1,800 | 0.04002 | 0.001084 | 0.002008 | 1.39e-14 | – | 14,400 | 3.74e5 | 1.67e6 | rack inlets 9.49e-3 K at most; hottest inlet crosses 27 °C at 1706.66 s (reference 1706.81 s); heat removed per unit within 3.05e-6; conservation = energy-balance defect / IT energy |
| Error order in h | explicit Euler | – | 1 | – | – | – | – | – | 1.019 | – | – | – | pairwise 1.034, 1.017, 1.008 |
| Every temperature (servers, exhaust, aisles, plenum, room, coils) | Runge–Kutta 4 | 2 | 1 | 1,800 | 0.00897 | 2.43e-4 | 3.56e-4 | 1.14e-15 | – | 900 | 23,400 | 4.19e5 | rack inlets 1.53e-4 K at most; hottest inlet crosses 27 °C at 1706.81 s (reference 1706.81 s); heat removed per unit within 4.34e-9; conservation = energy-balance defect / IT energy |
| Every temperature (servers, exhaust, aisles, plenum, room, coils) | Runge–Kutta 4 | 1 | 1 | 1,800 | 1.56e-5 | 3.21e-7 | 2.64e-6 | 2.42e-15 | – | 1,800 | 46,800 | 8.36e5 | rack inlets 7.39e-6 K at most; hottest inlet crosses 27 °C at 1706.81 s (reference 1706.81 s); heat removed per unit within 1.20e-9; conservation = energy-balance defect / IT energy |
| Every temperature (servers, exhaust, aisles, plenum, room, coils) | Runge–Kutta 4 | 0.5 | 1 | 1,800 | 3.67e-6 | 1.40e-7 | 9.88e-7 | 1.59e-15 | – | 3,600 | 93,600 | 1.67e6 | rack inlets 4.05e-7 K at most; hottest inlet crosses 27 °C at 1706.81 s (reference 1706.81 s); heat removed per unit within 4.84e-10; conservation = energy-balance defect / IT energy |
| Every temperature (servers, exhaust, aisles, plenum, room, coils) | Runge–Kutta 4 | 0.25 | 1 | 1,800 | 3.67e-6 | 1.38e-7 | 1.74e-7 | 7.62e-15 | – | 7,200 | 1.87e5 | 3.34e6 | rack inlets 4.64e-8 K at most; hottest inlet crosses 27 °C at 1706.81 s (reference 1706.81 s); heat removed per unit within 8.48e-11; conservation = energy-balance defect / IT energy |
| Error order in h | Runge–Kutta 4 | – | 1 | – | – | – | – | – | 3.44 | – | – | – | pairwise 7.073, 1.418, 2.503 |
Modelica Standard Library examples
Four examples from the Modelica Standard Library 4.1.0 (TwoMasses, CauerLowPassAnalog, Rotational First, Translational Oscillator), rebuilt as Konjugate graphs: against the Modelica Association's published reference results and against each example's exact solution, with the published results' own accuracy measured too, under explicit and semi-implicit Euler and Runge–Kutta 4.
Directory benchmarks/modelica/standardLibrary/ · models twoMasses.kjt, cauerLowPass.kjt, first.kjt, oscillator.kjt · numerical reference reference.json: The Modelica Association's published reference results (MSL 4.1.0); scipy.linalg.expm for the exact solutions (SciPy 1.13.1, NumPy 2.0.2)
- Published reference (Dymola, DASSL)
- Konjugate, explicit Euler
- Konjugate, Runge–Kutta 4
Data table (every 13th point; all 501 are in plots/mslTwoMasses.csv)
| Time (s) | Published reference (Dymola, DASSL) | Konjugate, explicit Euler | Konjugate, Runge–Kutta 4 |
|---|---|---|---|
| 0 | 373.1 | 373.1 | 373.1 |
| 0.026 | 371.4 | 371.4 | 371.4 |
| 0.052 | 369.8 | 369.8 | 369.8 |
| 0.078 | 368.2 | 368.2 | 368.2 |
| 0.104 | 366.7 | 366.7 | 366.7 |
| 0.13 | 365.2 | 365.2 | 365.2 |
| 0.156 | 363.8 | 363.8 | 363.8 |
| 0.182 | 362.4 | 362.4 | 362.4 |
| 0.208 | 361 | 361 | 361 |
| 0.234 | 359.7 | 359.7 | 359.7 |
| 0.26 | 358.5 | 358.5 | 358.5 |
| 0.286 | 357.3 | 357.3 | 357.3 |
| 0.312 | 356.1 | 356.1 | 356.1 |
| 0.338 | 355 | 355 | 355 |
| 0.364 | 353.9 | 353.9 | 353.9 |
| 0.39 | 352.9 | 352.9 | 352.9 |
| 0.416 | 351.9 | 351.9 | 351.9 |
| 0.442 | 350.9 | 350.9 | 350.9 |
| 0.468 | 349.9 | 349.9 | 349.9 |
| 0.494 | 349 | 349 | 349 |
| 0.52 | 348.1 | 348.1 | 348.1 |
| 0.546 | 347.3 | 347.3 | 347.3 |
| 0.572 | 346.5 | 346.5 | 346.5 |
| 0.598 | 345.7 | 345.7 | 345.7 |
| 0.624 | 344.9 | 344.9 | 344.9 |
| 0.65 | 344.2 | 344.2 | 344.2 |
| 0.676 | 343.5 | 343.4 | 343.5 |
| 0.702 | 342.8 | 342.8 | 342.8 |
| 0.728 | 342.1 | 342.1 | 342.1 |
| 0.754 | 341.4 | 341.4 | 341.4 |
| 0.78 | 340.8 | 340.8 | 340.8 |
| 0.806 | 340.2 | 340.2 | 340.2 |
| 0.832 | 339.6 | 339.6 | 339.6 |
| 0.858 | 339.1 | 339.1 | 339.1 |
| 0.884 | 338.5 | 338.5 | 338.5 |
| 0.91 | 338 | 338 | 338 |
| 0.936 | 337.5 | 337.5 | 337.5 |
| 0.962 | 337 | 337 | 337 |
| 0.988 | 336.5 | 336.5 | 336.5 |
- Published reference (Dymola, DASSL)
- Konjugate, explicit Euler
- Konjugate, Runge–Kutta 4
Data table (every 26th point; all 1001 are in plots/mslCauerLowPass.csv)
| Time (s) | Published reference (Dymola, DASSL) | Konjugate, explicit Euler | Konjugate, Runge–Kutta 4 |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 1.56 | 0.0199 | 0.01989 | 0.0199 |
| 3.12 | 0.1172 | 0.1171 | 0.1172 |
| 4.68 | 0.3171 | 0.3171 | 0.3171 |
| 6.24 | 0.5153 | 0.5157 | 0.5153 |
| 7.8 | 0.5862 | 0.5867 | 0.5862 |
| 9.36 | 0.5217 | 0.5217 | 0.5217 |
| 10.92 | 0.4513 | 0.4508 | 0.4513 |
| 12.48 | 0.4696 | 0.4693 | 0.4696 |
| 14.04 | 0.5235 | 0.5239 | 0.5235 |
| 15.6 | 0.5252 | 0.5255 | 0.5252 |
| 17.16 | 0.4879 | 0.4876 | 0.4879 |
| 18.72 | 0.4794 | 0.479 | 0.4794 |
| 20.28 | 0.5054 | 0.5055 | 0.5054 |
| 21.84 | 0.5167 | 0.5171 | 0.5167 |
| 23.4 | 0.4991 | 0.499 | 0.4991 |
| 24.96 | 0.4869 | 0.4865 | 0.4869 |
| 26.52 | 0.498 | 0.498 | 0.498 |
| 28.08 | 0.5097 | 0.5101 | 0.5098 |
| 29.64 | 0.5035 | 0.5036 | 0.5035 |
| 31.2 | 0.4932 | 0.493 | 0.4932 |
| 32.76 | 0.4958 | 0.4957 | 0.4958 |
| 34.32 | 0.5044 | 0.5046 | 0.5044 |
| 35.88 | 0.5041 | 0.5043 | 0.5041 |
| 37.44 | 0.4975 | 0.4974 | 0.4975 |
| 39 | 0.4963 | 0.4962 | 0.4963 |
| 40.56 | 0.5012 | 0.5013 | 0.5012 |
| 42.12 | 0.5031 | 0.5032 | 0.5031 |
| 43.68 | 0.4997 | 0.4997 | 0.4997 |
| 45.24 | 0.4976 | 0.4974 | 0.4976 |
| 46.8 | 0.4997 | 0.4997 | 0.4997 |
| 48.36 | 0.5018 | 0.5019 | 0.5018 |
| 49.92 | 0.5006 | 0.5006 | 0.5006 |
| 51.48 | 0.4987 | 0.4986 | 0.4987 |
| 53.04 | 0.4993 | 0.4992 | 0.4993 |
| 54.6 | 0.5008 | 0.5009 | 0.5008 |
| 56.16 | 0.5007 | 0.5008 | 0.5007 |
| 57.72 | 0.4995 | 0.4995 | 0.4995 |
| 59.28 | 0.4993 | 0.4993 | 0.4993 |
- Published reference (Dymola, DASSL)
- Konjugate, explicit Euler
- Konjugate, semi-implicit Euler
- Konjugate, Runge–Kutta 4
Data table (every 13th point; all 501 are in plots/mslFirst.csv)
| Time (s) | Published reference (Dymola, DASSL) | Konjugate, explicit Euler | Konjugate, semi-implicit Euler | Konjugate, Runge–Kutta 4 |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 0.026 | 0.02126 | 0.02102 | 0.02098 | 0.02126 |
| 0.052 | 0.2112 | 0.2108 | 0.2101 | 0.2112 |
| 0.078 | 0.4733 | 0.4738 | 0.4719 | 0.4733 |
| 0.104 | 0.4772 | 0.4771 | 0.4754 | 0.4772 |
| 0.13 | 0.3229 | 0.3221 | 0.3201 | 0.3229 |
| 0.156 | 0.1828 | 0.184 | 0.18 | 0.1828 |
| 0.182 | -0.02422 | -0.0238 | -0.02722 | -0.02419 |
| 0.208 | -0.1125 | -0.1143 | -0.1166 | -0.1125 |
| 0.234 | 0.09152 | 0.09255 | 0.08778 | 0.09152 |
| 0.26 | 0.303 | 0.304 | 0.2992 | 0.303 |
| 0.286 | 0.3903 | 0.3878 | 0.385 | 0.3902 |
| 0.312 | 0.4463 | 0.4471 | 0.4412 | 0.4462 |
| 0.338 | 0.3085 | 0.311 | 0.3038 | 0.3086 |
| 0.364 | 0.01291 | 0.0102 | 0.006536 | 0.01285 |
| 0.39 | -0.09231 | -0.09245 | -0.09851 | -0.09237 |
| 0.416 | -0.02588 | -0.02253 | -0.031 | -0.02576 |
| 0.442 | 0.07189 | 0.06902 | 0.06505 | 0.07185 |
| 0.468 | 0.2978 | 0.2961 | 0.2906 | 0.2977 |
| 0.494 | 0.4743 | 0.4786 | 0.4685 | 0.4744 |
| 0.52 | 0.3549 | 0.353 | 0.3474 | 0.3549 |
| 0.546 | 0.1533 | 0.1503 | 0.1449 | 0.1532 |
| 0.572 | 0.01483 | 0.01978 | 0.008371 | 0.01493 |
| 0.598 | -0.1308 | -0.1314 | -0.1385 | -0.1308 |
| 0.624 | -0.08786 | -0.09271 | -0.09698 | -0.08801 |
| 0.65 | 0.1852 | 0.1897 | 0.1783 | 0.1852 |
| 0.676 | 0.3524 | 0.3536 | 0.3448 | 0.3525 |
| 0.702 | 0.367 | 0.361 | 0.357 | 0.3669 |
| 0.728 | 0.3309 | 0.3348 | 0.3231 | 0.331 |
| 0.754 | 0.1144 | 0.118 | 0.1067 | 0.1146 |
| 0.78 | -0.1384 | -0.1452 | -0.149 | -0.1386 |
| 0.806 | -0.1265 | -0.1245 | -0.1351 | -0.1266 |
| 0.832 | 0.01689 | 0.02234 | 0.009565 | 0.01707 |
| 0.858 | 0.1572 | 0.1502 | 0.1466 | 0.1571 |
| 0.884 | 0.3626 | 0.3623 | 0.3532 | 0.3625 |
| 0.91 | 0.4172 | 0.4248 | 0.4098 | 0.4174 |
| 0.936 | 0.1959 | 0.19 | 0.1851 | 0.1958 |
| 0.962 | -0.006712 | -0.009536 | -0.0172 | -0.006865 |
| 0.988 | -0.101 | -0.09214 | -0.1083 | -0.1008 |
- Published reference (Dymola, DASSL)
- Konjugate, explicit Euler
- Konjugate, semi-implicit Euler
- Konjugate, Runge–Kutta 4
Data table (every 13th point; all 501 are in plots/mslOscillator.csv)
| Time (s) | Published reference (Dymola, DASSL) | Konjugate, explicit Euler | Konjugate, semi-implicit Euler | Konjugate, Runge–Kutta 4 |
|---|---|---|---|---|
| 0 | -0.5 | -0.5 | -0.5 | -0.5 |
| 0.026 | -0.4999 | -0.4999 | -0.4999 | -0.4999 |
| 0.052 | -0.5002 | -0.5002 | -0.5002 | -0.5002 |
| 0.078 | -0.5 | -0.5 | -0.5 | -0.5 |
| 0.104 | -0.4997 | -0.4997 | -0.4997 | -0.4997 |
| 0.13 | -0.5006 | -0.5006 | -0.5006 | -0.5006 |
| 0.156 | -0.4992 | -0.4992 | -0.4992 | -0.4992 |
| 0.182 | -0.5008 | -0.5008 | -0.5008 | -0.5008 |
| 0.208 | -0.4996 | -0.4996 | -0.4996 | -0.4996 |
| 0.234 | -0.4999 | -0.4998 | -0.4999 | -0.4999 |
| 0.26 | -0.5008 | -0.5008 | -0.5008 | -0.5008 |
| 0.286 | -0.4987 | -0.4986 | -0.4987 | -0.4987 |
| 0.312 | -0.5015 | -0.5016 | -0.5015 | -0.5015 |
| 0.338 | -0.4987 | -0.4987 | -0.4987 | -0.4987 |
| 0.364 | -0.5005 | -0.5006 | -0.5005 | -0.5005 |
| 0.39 | -0.5005 | -0.5005 | -0.5005 | -0.5005 |
| 0.416 | -0.4985 | -0.4984 | -0.4985 | -0.4985 |
| 0.442 | -0.5021 | -0.5023 | -0.5021 | -0.5021 |
| 0.468 | -0.4978 | -0.4976 | -0.4978 | -0.4978 |
| 0.494 | -0.5016 | -0.5018 | -0.5016 | -0.5016 |
| 0.52 | -0.4995 | -0.4995 | -0.4995 | -0.4995 |
| 0.546 | -0.499 | -0.4989 | -0.499 | -0.499 |
| 0.572 | -0.5022 | -0.5025 | -0.5023 | -0.5022 |
| 0.598 | -0.497 | -0.4967 | -0.497 | -0.497 |
| 0.624 | -0.5029 | -0.5031 | -0.5028 | -0.5029 |
| 0.65 | -0.4981 | -0.4979 | -0.4981 | -0.4981 |
| 0.676 | -0.5002 | -0.5002 | -0.5002 | -0.5002 |
| 0.702 | -0.5016 | -0.5018 | -0.5016 | -0.5016 |
| 0.728 | -0.4969 | -0.4965 | -0.4969 | -0.4969 |
| 0.754 | -0.5038 | -0.5043 | -0.5038 | -0.5038 |
| 0.78 | -0.4966 | -0.4962 | -0.4966 | -0.4966 |
| 0.806 | -0.5019 | -0.5022 | -0.5019 | -0.5019 |
| 0.832 | -0.5002 | -0.5002 | -0.5002 | -0.5002 |
| 0.858 | -0.4976 | -0.4973 | -0.4976 | -0.4976 |
| 0.884 | -0.504 | -0.5046 | -0.504 | -0.504 |
| 0.91 | -0.4955 | -0.4948 | -0.4955 | -0.4955 |
| 0.936 | -0.5038 | -0.5043 | -0.5037 | -0.5038 |
| 0.962 | -0.4982 | -0.4979 | -0.4982 | -0.4982 |
| 0.988 | -0.4993 | -0.4991 | -0.4992 | -0.4993 |
Checks
| Check | What it measures | Value | Threshold | Result |
|---|---|---|---|---|
twoMassesPublishedAccuracy | TwoMasses: the published reference against the exact solution, largest error relative to range (how far it can be trusted) | 1.87e-5 | ≤ 2.40e-5 | ✓ Pass |
twoMassesExactAgreement | TwoMasses: this exact solution against SciPy's (reference.json) | 3.67e-16 | ≤ 1.00e-10 | ✓ Pass |
twoMassesPublishedExplicit | TwoMasses: Konjugate against the published reference, largest error relative to range, explicit Euler, h = 0.0005 s | 1.56e-4 | ≤ 2.00e-4 | ✓ Pass |
twoMassesExactExplicit | TwoMasses: Konjugate against the exact solution, largest error relative to range, explicit Euler | 1.67e-4 | ≤ 2.10e-4 | ✓ Pass |
twoMassesPublishedRungeKutta4 | TwoMasses: Konjugate against the published reference, largest error relative to range, Runge–Kutta 4, h = 0.002 s | 1.87e-5 | ≤ 2.40e-5 | ✓ Pass |
twoMassesExactRungeKutta4 | TwoMasses: Konjugate against the exact solution, largest error relative to range, Runge–Kutta 4 | 2.15e-13 | ≤ 2.70e-13 | ✓ Pass |
cauerLowPassPublishedAccuracy | CauerLowPassAnalog: the published reference against the exact solution, largest error relative to range (how far it can be trusted) | 2.62e-5 | ≤ 3.30e-5 | ✓ Pass |
cauerLowPassExactAgreement | CauerLowPassAnalog: this exact solution against SciPy's (reference.json) | 9.86e-15 | ≤ 1.00e-10 | ✓ Pass |
cauerLowPassPublishedExplicit | CauerLowPassAnalog: Konjugate against the published reference, largest error relative to range, explicit Euler, h = 0.0025 s | 0.002024 | ≤ 0.0026 | ✓ Pass |
cauerLowPassExactExplicit | CauerLowPassAnalog: Konjugate against the exact solution, largest error relative to range, explicit Euler | 0.002 | ≤ 0.0025 | ✓ Pass |
cauerLowPassPublishedRungeKutta4 | CauerLowPassAnalog: Konjugate against the published reference, largest error relative to range, Runge–Kutta 4, h = 0.01 s | 2.62e-5 | ≤ 3.50e-5 | ✓ Pass |
cauerLowPassExactRungeKutta4 | CauerLowPassAnalog: Konjugate against the exact solution, largest error relative to range, Runge–Kutta 4 | 1.03e-10 | ≤ 1.40e-10 | ✓ Pass |
cauerLowPassOrderExplicit | CauerLowPassAnalog: observed order of the error against the exact solution in h, explicit Euler (fitted over every h) | 1.007 | 0.95 to 1.1 | ✓ Pass |
cauerLowPassOrderRungeKutta4 | CauerLowPassAnalog: observed order of the error against the exact solution in h, Runge–Kutta 4 (fitted over every h) | 4.001 | 3.8 to 4.2 | ✓ Pass |
firstPublishedAccuracy | Rotational First: the published reference against the exact solution, largest error relative to range (how far it can be trusted) | 3.13e-4 | ≤ 4.00e-4 | ✓ Pass |
firstExactAgreement | Rotational First: this exact solution against SciPy's (reference.json) | 1.29e-12 | ≤ 1.00e-10 | ✓ Pass |
firstPublishedExplicit | Rotational First: Konjugate against the published reference, largest error relative to range, explicit Euler, h = 0.0000625 s | 0.01298 | ≤ 0.017 | ✓ Pass |
firstExactExplicit | Rotational First: Konjugate against the exact solution, largest error relative to range, explicit Euler | 0.01269 | ≤ 0.016 | ✓ Pass |
firstPublishedSemiImplicit | Rotational First: Konjugate against the published reference, largest error relative to range, semi-implicit Euler, h = 0.0000625 s | 0.03783 | ≤ 0.048 | ✓ Pass |
firstExactSemiImplicit | Rotational First: Konjugate against the exact solution, largest error relative to range, semi-implicit Euler | 0.03783 | ≤ 0.048 | ✓ Pass |
firstPublishedRungeKutta4 | Rotational First: Konjugate against the published reference, largest error relative to range, Runge–Kutta 4, h = 0.0005 s | 3.13e-4 | ≤ 4.00e-4 | ✓ Pass |
firstExactRungeKutta4 | Rotational First: Konjugate against the exact solution, largest error relative to range, Runge–Kutta 4 | 8.40e-8 | ≤ 1.10e-7 | ✓ Pass |
firstOrderExplicit | Rotational First: observed order of the error against the exact solution in h, explicit Euler (fitted over every h) | 1.101 | 0.99 to 1.22 | ✓ Pass |
firstOrderRungeKutta4 | Rotational First: observed order of the error against the exact solution in h, Runge–Kutta 4 (fitted over every h) | 4.002 | 3.9 to 4.1 | ✓ Pass |
oscillatorPublishedAccuracy | Translational Oscillator: the published reference against the exact solution, largest error relative to range (how far it can be trusted) | 4.81e-4 | ≤ 6.10e-4 | ✓ Pass |
oscillatorExactAgreement | Translational Oscillator: this exact solution against SciPy's (reference.json) | 1.10e-11 | ≤ 2.00e-10 | ✓ Pass |
oscillatorPublishedExplicit | Translational Oscillator: Konjugate against the published reference, largest error relative to range, explicit Euler, h = 0.0000625 s | 0.08796 | ≤ 0.11 | ✓ Pass |
oscillatorExactExplicit | Translational Oscillator: Konjugate against the exact solution, largest error relative to range, explicit Euler | 0.08746 | ≤ 0.11 | ✓ Pass |
oscillatorPublishedSemiImplicit | Translational Oscillator: Konjugate against the published reference, largest error relative to range, semi-implicit Euler, h = 0.0000625 s | 0.003449 | ≤ 0.0044 | ✓ Pass |
oscillatorExactSemiImplicit | Translational Oscillator: Konjugate against the exact solution, largest error relative to range, semi-implicit Euler | 0.003187 | ≤ 0.004 | ✓ Pass |
oscillatorPublishedRungeKutta4 | Translational Oscillator: Konjugate against the published reference, largest error relative to range, Runge–Kutta 4, h = 0.0005 s | 4.82e-4 | ≤ 6.10e-4 | ✓ Pass |
oscillatorExactRungeKutta4 | Translational Oscillator: Konjugate against the exact solution, largest error relative to range, Runge–Kutta 4 | 1.33e-6 | ≤ 1.70e-6 | ✓ Pass |
oscillatorOrderExplicit | Translational Oscillator: observed order of the error against the exact solution in h, explicit Euler (fitted over every h) | 1.119 | 1 to 1.24 | ✓ Pass |
oscillatorOrderRungeKutta4 | Translational Oscillator: observed order of the error against the exact solution in h, Runge–Kutta 4 (fitted over every h) | 4.001 | 3.9 to 4.1 | ✓ Pass |
- The published results are accurate to between 1e-5 and 5e-4 of each signal's range (DASSL at a tolerance of 1e-6); Runge–Kutta 4 agrees with the exact solutions far more closely than that, so its agreement with the published results is the published results' own error.
- The Cauer filter is driven by a step at 1 s, a condition on time in its equation, which Runge–Kutta 4 locates and steps to (docs/proposals/integrators.md, Event location): it keeps its fourth order on this example, as on the other three.
- Two modelling differences: Konjugate has no acausal network solver or index reduction, so the Cauer filter's capacitance matrix is inverted by hand, and the drive train's rigid ideal gear is removed by hand by reflecting the motor's inertia through it. Both give the same equations the Modelica tool derives; neither is automatic in Konjugate.
All 20 result rows
| Case | Method | h (s) | Substeps | Horizon (s) | Max abs error | RMSE | Relative error | Observed order | Steps | Substeps run | Evaluations | Note |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| TwoMasses: published result against exact | published (Dymola) | – | 1 | – | 6.89e-4 | 4.50e-4 | 1.87e-5 | – | – | – | – | Dymola Version 2020x (64-bit), 2019-10-10, DASSL, tolerance 1e-06: the published reference's own error |
| TwoMasses: against the published result | explicit Euler | 5.00e-4 | 1 | 1 | 0.005762 | 0.004697 | 1.56e-4 | – | 2,000 | 4,000 | 4,000 | against the exact solution 1.67e-4 of range |
| TwoMasses: against the published result | Runge–Kutta 4 | 0.002 | 1 | 1 | 6.89e-4 | 4.50e-4 | 1.87e-5 | – | 500 | 1,000 | 4,000 | against the exact solution 2.15e-13 of range |
| CauerLowPassAnalog: published result against exact | published (Dymola) | – | 1 | – | 1.87e-5 | 6.25e-6 | 2.62e-5 | – | – | – | – | Dymola Version 2020x (64-bit), 2019-10-10, DASSL, tolerance 1e-06: the published reference's own error |
| CauerLowPassAnalog: against the published result | explicit Euler | 0.0025 | 1 | 60 | 0.001444 | 3.85e-4 | 0.002024 | – | 24,000 | 96,000 | 3.36e5 | against the exact solution 2.00e-3 of range |
| CauerLowPassAnalog: against the published result | Runge–Kutta 4 | 0.01 | 1 | 60 | 1.87e-5 | 6.25e-6 | 2.62e-5 | – | 6,000 | 24,000 | 3.36e5 | against the exact solution 1.03e-10 of range |
| CauerLowPassAnalog: error order in h | explicit Euler | – | 1 | – | – | – | – | 1.007 | – | – | – | errors 4.03e-3, 2.00e-3, 9.97e-4; pairwise 1.010, 1.005 |
| CauerLowPassAnalog: error order in h | Runge–Kutta 4 | – | 1 | – | – | – | – | 4.001 | – | – | – | errors 1.65e-9, 1.03e-10, 6.45e-12; pairwise 4.001, 4.001 |
| Rotational First: published result against exact | published (Dymola) | – | 1 | – | 2.13e-4 | 4.93e-5 | 3.13e-4 | – | – | – | – | Dymola Version 2020x (64-bit), 2019-10-10, DASSL, tolerance 1e-06: the published reference's own error |
| Rotational First: against the published result | explicit Euler | 6.25e-5 | 1 | 1 | 0.008841 | 0.001852 | 0.01298 | – | 16,000 | 48,000 | 96,000 | against the exact solution 1.27e-2 of range |
| Rotational First: against the published result | semi-implicit Euler | 6.25e-5 | 1 | 1 | 0.0116 | 0.005291 | 0.03783 | – | 16,000 | 48,000 | 96,000 | against the exact solution 3.78e-2 of range |
| Rotational First: against the published result | Runge–Kutta 4 | 5.00e-4 | 1 | 1 | 2.13e-4 | 4.93e-5 | 3.13e-4 | – | 2,000 | 6,000 | 48,000 | against the exact solution 8.40e-8 of range |
| Rotational First: error order in h | explicit Euler | – | 1 | – | – | – | – | 1.101 | – | – | – | errors 2.79e-2, 1.27e-2, 6.06e-3; pairwise 1.135, 1.066 |
| Rotational First: error order in h | Runge–Kutta 4 | – | 1 | – | – | – | – | 4.002 | – | – | – | errors 2.16e-5, 1.35e-6, 8.40e-8; pairwise 4.001, 4.003 |
| Translational Oscillator: published result against exact | published (Dymola) | – | 1 | – | 4.69e-4 | 8.39e-5 | 4.81e-4 | – | – | – | – | Dymola Version 2020x (64-bit), 2019-10-10, DASSL, tolerance 1e-06: the published reference's own error |
| Translational Oscillator: against the published result | explicit Euler | 6.25e-5 | 1 | 1 | 0.08556 | 0.01384 | 0.08796 | – | 16,000 | 64,000 | 1.12e5 | against the exact solution 8.75e-2 of range |
| Translational Oscillator: against the published result | semi-implicit Euler | 6.25e-5 | 1 | 1 | 0.001747 | 3.64e-4 | 0.003449 | – | 16,000 | 64,000 | 1.12e5 | against the exact solution 3.19e-3 of range |
| Translational Oscillator: against the published result | Runge–Kutta 4 | 5.00e-4 | 1 | 1 | 4.69e-4 | 8.40e-5 | 4.82e-4 | – | 2,000 | 8,000 | 56,000 | against the exact solution 1.33e-6 of range |
| Translational Oscillator: error order in h | explicit Euler | – | 1 | – | – | – | – | 1.119 | – | – | – | errors 1.96e-1, 8.75e-2, 4.14e-2; pairwise 1.161, 1.077 |
| Translational Oscillator: error order in h | Runge–Kutta 4 | – | 1 | – | – | – | – | 4.001 | – | – | – | errors 3.42e-4, 2.13e-5, 1.33e-6; pairwise 4.007, 3.996 |
FMI Reference FMUs
Four FMI 3.0 Reference FMUs from the Modelica Association (Dahlquist, VanDerPol, BouncingBall, Stair), imported into Konjugate as the app imports them and compared with FMPy's co-simulation of the same FMU, and the FMUs' own solver error against FMPy's model exchange with CVODE.
Directory benchmarks/fmi/referenceFmus/ · models (shared with the problems it studies) · numerical reference reference.json: FMPy co-simulation at each FMU's DefaultExperiment step; FMPy model exchange with CVODE, rtol 1e-10 (SciPy undefined, NumPy 2.5.5)
- FMPy, model exchange (CVODE)
- FMPy, co-simulation
- Konjugate, imported
Data table (every 3th point; all 101 are in plots/referenceFmuDahlquist.csv)
| Time (s) | FMPy, model exchange (CVODE) | FMPy, co-simulation | Konjugate, imported |
|---|---|---|---|
| 0 | 1 | 1 | 1 |
| 0.3 | 0.7408 | 0.729 | 0.729 |
| 0.6 | 0.5488 | 0.5314 | 0.5314 |
| 0.9 | 0.4066 | 0.3874 | 0.3874 |
| 1.2 | 0.3012 | 0.2824 | 0.2824 |
| 1.5 | 0.2231 | 0.2059 | 0.2059 |
| 1.8 | 0.1653 | 0.1501 | 0.1501 |
| 2.1 | 0.1225 | 0.1094 | 0.1094 |
| 2.4 | 0.09072 | 0.07977 | 0.07977 |
| 2.7 | 0.06721 | 0.05815 | 0.05815 |
| 3 | 0.04979 | 0.04239 | 0.04239 |
| 3.3 | 0.03688 | 0.0309 | 0.0309 |
| 3.6 | 0.02732 | 0.02253 | 0.02253 |
| 3.9 | 0.02024 | 0.01642 | 0.01642 |
| 4.2 | 0.015 | 0.01197 | 0.01197 |
| 4.5 | 0.01111 | 0.008728 | 0.008728 |
| 4.8 | 0.00823 | 0.006363 | 0.006363 |
| 5.1 | 0.006097 | 0.004638 | 0.004638 |
| 5.4 | 0.004517 | 0.003381 | 0.003381 |
| 5.7 | 0.003346 | 0.002465 | 0.002465 |
| 6 | 0.002479 | 0.001797 | 0.001797 |
| 6.3 | 0.001836 | 0.00131 | 0.00131 |
| 6.6 | 0.00136 | 9.55e-4 | 9.55e-4 |
| 6.9 | 0.001008 | 6.96e-4 | 6.96e-4 |
| 7.2 | 7.47e-4 | 5.08e-4 | 5.08e-4 |
| 7.5 | 5.53e-4 | 3.70e-4 | 3.70e-4 |
| 7.8 | 4.10e-4 | 2.70e-4 | 2.70e-4 |
| 8.1 | 3.04e-4 | 1.97e-4 | 1.97e-4 |
| 8.4 | 2.25e-4 | 1.43e-4 | 1.43e-4 |
| 8.7 | 1.67e-4 | 1.04e-4 | 1.04e-4 |
| 9 | 1.23e-4 | 7.62e-5 | 7.62e-5 |
| 9.3 | 9.14e-5 | 5.55e-5 | 5.55e-5 |
| 9.6 | 6.77e-5 | 4.05e-5 | 4.05e-5 |
| 9.9 | 5.02e-5 | 2.95e-5 | 2.95e-5 |
- FMPy, model exchange (CVODE)
- FMPy, co-simulation
- Konjugate, imported
Data table (every 51th point; all 2001 are in plots/referenceFmuVanDerPol.csv)
| Time (s) | FMPy, model exchange (CVODE) | FMPy, co-simulation | Konjugate, imported |
|---|---|---|---|
| 0 | 2 | 2 | 2 |
| 0.51 | 1.832 | 1.834 | 1.834 |
| 1.02 | 1.492 | 1.494 | 1.494 |
| 1.53 | 1.007 | 1.011 | 1.011 |
| 2.04 | 0.2484 | 0.2601 | 0.2601 |
| 2.55 | -0.9745 | -0.9554 | -0.9554 |
| 3.06 | -1.92 | -1.932 | -1.932 |
| 3.57 | -1.959 | -1.978 | -1.978 |
| 4.08 | -1.69 | -1.711 | -1.711 |
| 4.59 | -1.288 | -1.315 | -1.315 |
| 5.1 | -0.6999 | -0.7415 | -0.7415 |
| 5.61 | 0.2685 | 0.1927 | 0.1927 |
| 6.12 | 1.547 | 1.49 | 1.49 |
| 6.63 | 2.008 | 2.025 | 2.025 |
| 7.14 | 1.852 | 1.885 | 1.885 |
| 7.65 | 1.519 | 1.56 | 1.56 |
| 8.16 | 1.045 | 1.103 | 1.103 |
| 8.67 | 0.3107 | 0.4098 | 0.4098 |
| 9.18 | -0.8865 | -0.7345 | -0.7345 |
| 9.69 | -1.892 | -1.851 | -1.851 |
| 10.2 | -1.97 | -2.004 | -2.004 |
| 10.71 | -1.712 | -1.764 | -1.764 |
| 11.22 | -1.319 | -1.388 | -1.388 |
| 11.73 | -0.747 | -0.8528 | -0.8528 |
| 12.24 | 0.1891 | 0.005104 | 0.005104 |
| 12.75 | 1.478 | 1.296 | 1.296 |
| 13.26 | 2.005 | 2.007 | 2.007 |
| 13.77 | 1.87 | 1.925 | 1.925 |
| 14.28 | 1.545 | 1.621 | 1.621 |
| 14.79 | 1.082 | 1.19 | 1.19 |
| 15.3 | 0.3711 | 0.5476 | 0.5476 |
| 15.81 | -0.7974 | -0.5152 | -0.5152 |
| 16.32 | -1.86 | -1.736 | -1.736 |
| 16.83 | -1.98 | -2.022 | -2.022 |
| 17.34 | -1.733 | -1.814 | -1.814 |
| 17.85 | -1.349 | -1.458 | -1.458 |
| 18.36 | -0.7927 | -0.9559 | -0.9559 |
| 18.87 | 0.112 | -0.1676 | -0.1676 |
| 19.38 | 1.405 | 1.084 | 1.084 |
| 19.89 | 2 | 1.967 | 1.967 |
- FMPy, model exchange (CVODE)
- FMPy, co-simulation
- Konjugate, imported
Data table (every 8th point; all 301 are in plots/referenceFmuBouncingBall.csv)
| Time (s) | FMPy, model exchange (CVODE) | FMPy, co-simulation | Konjugate, imported |
|---|---|---|---|
| 0 | 1 | 1 | 1 |
| 0.08 | 0.9686 | 0.969 | 0.969 |
| 0.16 | 0.8744 | 0.8752 | 0.8752 |
| 0.24 | 0.7175 | 0.7186 | 0.7186 |
| 0.32 | 0.4977 | 0.4993 | 0.4993 |
| 0.4 | 0.2152 | 0.2172 | 0.2172 |
| 0.48 | 0.08432 | 0.08055 | 0.08055 |
| 0.56 | 0.2786 | 0.2772 | 0.2772 |
| 0.64 | 0.4102 | 0.4111 | 0.4111 |
| 0.72 | 0.4789 | 0.4822 | 0.4822 |
| 0.8 | 0.4848 | 0.4905 | 0.4905 |
| 0.88 | 0.428 | 0.4361 | 0.4361 |
| 0.96 | 0.3084 | 0.3188 | 0.3188 |
| 1.04 | 0.126 | 0.1388 | 0.1388 |
| 1.12 | 0.0724 | 0.06332 | 0.06332 |
| 1.2 | 0.1861 | 0.1832 | 0.1832 |
| 1.28 | 0.2371 | 0.2403 | 0.2403 |
| 1.36 | 0.2252 | 0.2346 | 0.2346 |
| 1.44 | 0.1506 | 0.1661 | 0.1661 |
| 1.52 | 0.01316 | 0.0348 | 0.0348 |
| 1.6 | 0.08545 | 0.07808 | 0.07808 |
| 1.68 | 0.1176 | 0.1211 | 0.1211 |
| 1.76 | 0.08705 | 0.1014 | 0.1014 |
| 1.84 | 0.004283 | 0.01884 | 0.01884 |
| 1.92 | 0.05475 | 0.05131 | 0.05131 |
| 2 | 0.04243 | 0.05489 | 0.05489 |
| 2.08 | 0.01666 | 0.002297 | 0.002297 |
| 2.16 | 0.02341 | 0.03099 | 0.03099 |
| 2.24 | 0.01232 | 0.001638 | 0.001638 |
| 2.32 | 0.002959 | 0.01275 | 0.01275 |
| 2.4 | 0.002715 | 0.008164 | 0.008164 |
| 2.48 | 6.00e-4 | 0.003317 | 0.003317 |
| 2.56 | 2.23e-308 | 0.001461 | 0.001461 |
| 2.64 | 2.23e-308 | 2.23e-308 | 2.23e-308 |
| 2.72 | 2.23e-308 | 2.23e-308 | 2.23e-308 |
| 2.8 | 2.23e-308 | 2.23e-308 | 2.23e-308 |
| 2.88 | 2.23e-308 | 2.23e-308 | 2.23e-308 |
| 2.96 | 2.23e-308 | 2.23e-308 | 2.23e-308 |
- FMPy, model exchange (CVODE)
- FMPy, co-simulation
- Konjugate, imported
Data table (every 2th point; all 46 are in plots/referenceFmuStair.csv)
| FMPy, model exchange (CVODE): Time (s) | counter | FMPy, co-simulation: Time (s) | counter | Konjugate, imported: Time (s) | counter |
|---|---|---|---|---|---|
| 0 | 1 | 0 | 1 | 0 | 1 |
| 0.4 | 1 | 0.4 | 1 | 0.4 | 1 |
| 0.8 | 1 | 0.8 | 1 | 0.8 | 1 |
| 1.2 | 2 | 1.2 | 2 | 1.2 | 2 |
| 1.6 | 2 | 1.6 | 2 | 1.6 | 2 |
| 2 | 3 | 2 | 3 | 2 | 3 |
| 2.4 | 3 | 2.4 | 3 | 2.4 | 3 |
| 2.8 | 3 | 2.8 | 3 | 2.8 | 3 |
| 3.2 | 4 | 3.2 | 4 | 3.2 | 4 |
| 3.6 | 4 | 3.6 | 4 | 3.6 | 4 |
| 4 | 5 | 4 | 5 | 4 | 5 |
| 4.4 | 5 | 4.4 | 5 | 4.4 | 5 |
| 4.8 | 5 | 4.8 | 5 | 4.8 | 5 |
| 5.2 | 6 | 5.2 | 6 | 5.2 | 6 |
| 5.6 | 6 | 5.6 | 6 | 5.6 | 6 |
| 6 | 7 | 6 | 7 | 6 | 7 |
| 6.4 | 7 | 6.4 | 7 | 6.4 | 7 |
| 6.8 | 7 | 6.8 | 7 | 6.8 | 7 |
| 7.2 | 8 | 7.2 | 8 | 7.2 | 8 |
| 7.6 | 8 | 7.6 | 8 | 7.6 | 8 |
| 8 | 9 | 8 | 9 | 8 | 9 |
| 8.4 | 9 | 8.4 | 9 | 8.4 | 9 |
| 8.8 | 9 | 8.8 | 9 | 8.8 | 9 |
- VanDerPol x0, model exchange
- VanDerPol x0, co-simulation
- BouncingBall h, model exchange
- BouncingBall h, co-simulation
Data table (every 51th point; all 2001 are in plots/referenceFmusFmpy.csv)
| VanDerPol x0, model exchange: Time (s) | Value | VanDerPol x0, co-simulation: Time (s) | Value | BouncingBall h, model exchange: Time (s) | Value | BouncingBall h, co-simulation: Time (s) | Value |
|---|---|---|---|---|---|---|---|
| 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 |
| 0.51 | 1.832 | 0.51 | 1.834 | 0.51 | 0.1645 | 0.51 | 0.1617 |
| 1.02 | 1.492 | 1.02 | 1.494 | 1.02 | 0.1775 | 1.02 | 0.1897 |
| 1.53 | 1.007 | 1.53 | 1.011 | 1.53 | 0.005777 | 1.53 | 0.01397 |
| 2.04 | 0.2484 | 2.04 | 0.2601 | 2.04 | 0.01273 | 2.04 | 0.03314 |
| 2.55 | -0.9745 | 2.55 | -0.9554 | 2.55 | 2.23e-308 | 2.55 | 0.001042 |
| 3.06 | -1.92 | 3.06 | -1.932 | – | – | – | – |
| 3.57 | -1.959 | 3.57 | -1.978 | – | – | – | – |
| 4.08 | -1.69 | 4.08 | -1.711 | – | – | – | – |
| 4.59 | -1.288 | 4.59 | -1.315 | – | – | – | – |
| 5.1 | -0.6999 | 5.1 | -0.7415 | – | – | – | – |
| 5.61 | 0.2685 | 5.61 | 0.1927 | – | – | – | – |
| 6.12 | 1.547 | 6.12 | 1.49 | – | – | – | – |
| 6.63 | 2.008 | 6.63 | 2.025 | – | – | – | – |
| 7.14 | 1.852 | 7.14 | 1.885 | – | – | – | – |
| 7.65 | 1.519 | 7.65 | 1.56 | – | – | – | – |
| 8.16 | 1.045 | 8.16 | 1.103 | – | – | – | – |
| 8.67 | 0.3107 | 8.67 | 0.4098 | – | – | – | – |
| 9.18 | -0.8865 | 9.18 | -0.7345 | – | – | – | – |
| 9.69 | -1.892 | 9.69 | -1.851 | – | – | – | – |
| 10.2 | -1.97 | 10.2 | -2.004 | – | – | – | – |
| 10.71 | -1.712 | 10.71 | -1.764 | – | – | – | – |
| 11.22 | -1.319 | 11.22 | -1.388 | – | – | – | – |
| 11.73 | -0.747 | 11.73 | -0.8528 | – | – | – | – |
| 12.24 | 0.1891 | 12.24 | 0.005104 | – | – | – | – |
| 12.75 | 1.478 | 12.75 | 1.296 | – | – | – | – |
| 13.26 | 2.005 | 13.26 | 2.007 | – | – | – | – |
| 13.77 | 1.87 | 13.77 | 1.925 | – | – | – | – |
| 14.28 | 1.545 | 14.28 | 1.621 | – | – | – | – |
| 14.79 | 1.082 | 14.79 | 1.19 | – | – | – | – |
| 15.3 | 0.3711 | 15.3 | 0.5476 | – | – | – | – |
| 15.81 | -0.7974 | 15.81 | -0.5152 | – | – | – | – |
| 16.32 | -1.86 | 16.32 | -1.736 | – | – | – | – |
| 16.83 | -1.98 | 16.83 | -2.022 | – | – | – | – |
| 17.34 | -1.733 | 17.34 | -1.814 | – | – | – | – |
| 17.85 | -1.349 | 17.85 | -1.458 | – | – | – | – |
| 18.36 | -0.7927 | 18.36 | -0.9559 | – | – | – | – |
| 18.87 | 0.112 | 18.87 | -0.1676 | – | – | – | – |
| 19.38 | 1.405 | 19.38 | 1.084 | – | – | – | – |
| 19.89 | 2 | 19.89 | 1.967 | – | – | – | – |
Checks
| Check | What it measures | Value | Threshold | Result |
|---|---|---|---|---|
DahlquistUnchanged | Dahlquist.fmu is the published Reference FMU (its SHA-256 matches reference.json) | 1 | 1 to 1 | ✓ Pass |
DahlquistOwnSolverError | Dahlquist: FMPy's co-simulation of the FMU against its model exchange with CVODE, largest error relative to range (the FMU's internal solver) | 0.0192 | ≤ 0.025 | ✓ Pass |
DahlquistModelExchangeAgainstExact | Dahlquist: FMPy's model exchange with CVODE against the closed form, relative to range | 8.03e-10 | ≤ 1.10e-9 | ✓ Pass |
DahlquistImportAgainstFmpy | Dahlquist: Konjugate's import against FMPy's co-simulation of the same FMU, largest difference over every compared output and sample | 0 | ≤ 1.00e-12 | ✓ Pass |
VanDerPolUnchanged | VanDerPol.fmu is the published Reference FMU (its SHA-256 matches reference.json) | 1 | 1 to 1 | ✓ Pass |
VanDerPolOwnSolverError | VanDerPol: FMPy's co-simulation of the FMU against its model exchange with CVODE, largest error relative to range (the FMU's internal solver) | 0.1194 | ≤ 0.15 | ✓ Pass |
VanDerPolImportAgainstFmpy | VanDerPol: Konjugate's import against FMPy's co-simulation of the same FMU, largest difference over every compared output and sample | 0 | ≤ 1.00e-12 | ✓ Pass |
BouncingBallUnchanged | BouncingBall.fmu is the published Reference FMU (its SHA-256 matches reference.json) | 1 | 1 to 1 | ✓ Pass |
BouncingBallOwnSolverError | BouncingBall: FMPy's co-simulation of the FMU against its model exchange with CVODE, largest error relative to range (the FMU's internal solver) | 0.4868 | ≤ 0.61 | ✓ Pass |
BouncingBallImportAgainstFmpy | BouncingBall: Konjugate's import against FMPy's co-simulation of the same FMU, largest difference over every compared output and sample | 0 | ≤ 1.00e-12 | ✓ Pass |
StairUnchanged | Stair.fmu is the published Reference FMU (its SHA-256 matches reference.json) | 1 | 1 to 1 | ✓ Pass |
StairOwnSolverError | Stair: FMPy's co-simulation of the FMU against its model exchange with CVODE, largest error relative to range (the FMU's internal solver) | 0 | ≤ 1.00e-12 | ✓ Pass |
StairModelExchangeAgainstExact | Stair: FMPy's model exchange with CVODE against the closed form, relative to range | 0 | ≤ 1.00e-12 | ✓ Pass |
StairImportAgainstFmpy | Stair: Konjugate's import against FMPy's co-simulation of the same FMU, largest difference over every compared output and sample | 0 | ≤ 1.00e-12 | ✓ Pass |
importedAsPublished | Reference FMUs that Konjugate imports and runs as published: every one of the 4 (of four) with a binary for aarch64-darwin must | 4 | 4 to 4 | ✓ Pass |
binaryFoundAsShipped | Reference FMUs for which the app's choice of binary for aarch64-darwin disagrees with whether the FMU ships one under binaries/aarch64-darwin/ (none may) | 0 | 0 to 0 | ✓ Pass |
- Every Reference FMU imports as published and gives FMPy's co-simulation of it to the bit. The difference between co-simulation and model exchange (CVODE) is the FMU's own fixed-step solver, not Konjugate's: a bouncing ball whose bounces fall between communication steps is the largest.
All 8 result rows
| Case | Method | h (s) | Substeps | Horizon (s) | Max abs error | RMSE | Relative error | Note |
|---|---|---|---|---|---|---|---|---|
| Dahlquist: FMPy co-simulation against model exchange (CVODE) | FMPy | 0.1 | 1 | 10 | 0.0192 | 0.008108 | 0.0192 | the FMU's own fixed-step solver against its equations solved accurately; not Konjugate's error |
| Dahlquist: Konjugate's import against FMPy co-simulation | imported FMU (co-simulation) | 0.1 | 1 | 10 | 0 | 0 | 0 | the same FMU stepped the same way, one fmi3DoStep per global step |
| VanDerPol: FMPy co-simulation against model exchange (CVODE) | FMPy | 0.01 | 1 | 20 | 0.6395 | 0.1411 | 0.1194 | the FMU's own fixed-step solver against its equations solved accurately; not Konjugate's error |
| VanDerPol: Konjugate's import against FMPy co-simulation | imported FMU (co-simulation) | 0.01 | 1 | 20 | 0 | 0 | 0 | the same FMU stepped the same way, one fmi3DoStep per global step |
| BouncingBall: FMPy co-simulation against model exchange (CVODE) | FMPy | 0.01 | 1 | 3 | 3.618 | 0.2077 | 0.4868 | the FMU's own fixed-step solver against its equations solved accurately; not Konjugate's error |
| BouncingBall: Konjugate's import against FMPy co-simulation | imported FMU (co-simulation) | 0.01 | 1 | 3 | 0 | 0 | 0 | the same FMU stepped the same way, one fmi3DoStep per global step; h_ft not compared (an FMI 3 alias, not a port of its own) |
| Stair: FMPy co-simulation against model exchange (CVODE) | FMPy | 0.2 | 1 | 10 | 0 | 0 | 0 | the FMU's own fixed-step solver against its equations solved accurately; not Konjugate's error |
| Stair: Konjugate's import against FMPy co-simulation | imported FMU (co-simulation) | 0.2 | 1 | 10 | 0 | 0 | 0 | the same FMU stepped the same way, one fmi3DoStep per global step |
Timing and memory
Measured on this computer only: after 1 warm-up run, 7 timed runs of each case, one at a time, under caffeinate. The headline is each case's minimum, since noise only adds time; the median, interquartile range and the minimum over the median say how steady the runs were. Wall time is the whole engine process (start, reading the model, integrating, writing the result); engine compute is the integration alone, as the engine reports it. Peak memory is the engine process's maximum resident set size.
Waited for a quiet computer (--wait-for-quiet): limits an idle baseline plus 1.0; full gate: AC power, no compiler, build tool, Konjugate Electron, interaction test or Docker, 1-minute load below 2.7 for 120 s; before every timed run: AC power, none of those, other processes below 1.02 cores. 232 timed runs checked, 0 found it busy and waited again; 121 s waited in all; 1-minute load average at the timed runs, including the benchmark's own: median 1.96, largest 2.38.
At the start: load 1.64 / 2.4 / 4.57; Now drawing from 'AC Power'; Note: No thermal warning level has been recorded; Note: No performance warning level has been recorded; Note: No CPU power status has been recorded. At the end: load 2.04 / 2.35 / 4.32; Now drawing from 'AC Power'; Note: No thermal warning level has been recorded; Note: No performance warning level has been recorded; Note: No CPU power status has been recorded.
| Problem | Case | Runs | Minimum wall (ms) | Median (ms) | Min – max (ms) | IQR (ms) | Min / median | Minimum engine compute (ms) | Substeps per second | Peak memory (MiB) |
|---|---|---|---|---|---|---|---|---|---|---|
| thermal/rcNetwork | Network, 8,192 steps of 2 s | 7 | 20.66 | 21.12 | 20.66 – 22.5 | 0.6694 | 0.978 | 6.676 | 7.36e6 | 9.391 |
| electrical/rlcCircuits | Series circuit, 65,536 steps, explicit | 7 | 37.01 | 38.12 | 37.01 – 40.1 | 1.1 | 0.971 | 18.77 | 6.98e6 | 9.031 |
| electrical/rlcCircuits | Coupled pair, 65,536 steps, semi-implicit | 7 | 240.2 | 242.1 | 240.2 – 244.5 | 1.782 | 0.992 | 219.8 | 8.94e5 | 9.609 |
| mechanical/harmonicOscillator | 262,144 steps, explicit | 7 | 70.15 | 70.55 | 70.15 – 70.88 | 0.2759 | 0.994 | 37.19 | 7.05e6 | 10.19 |
| mechanical/harmonicOscillator | 262,144 steps, semi-implicit | 7 | 167.7 | 168.7 | 167.7 – 174.7 | 2.606 | 0.994 | 135 | 1.94e6 | 10.31 |
| mechanical/harmonicOscillator | 262,144 steps, Verlet | 7 | 284.6 | 285.7 | 284.6 – 292.2 | 2.103 | 0.996 | 251.4 | 1.04e6 | 10.38 |
| mechanical/pendulum | 131,072 steps, semi-implicit | 7 | 94.12 | 95.38 | 94.12 – 97.14 | 0.6261 | 0.987 | 71.23 | 1.84e6 | 9.719 |
| mechanical/pendulum | 131,072 steps, Verlet | 7 | 153 | 154.3 | 153 – 155.6 | 1.373 | 0.992 | 130.6 | 1.00e6 | 9.766 |
| population/lotkaVolterra | One node, 131,072 steps | 7 | 49.08 | 49.46 | 49.08 – 51.2 | 0.2447 | 0.992 | 25.44 | 5.15e6 | 10.28 |
| population/lotkaVolterra | Two nodes, 131,072 steps | 7 | 53.8 | 54.03 | 53.8 – 58.78 | 1.514 | 0.996 | 29.16 | 8.99e6 | 10.33 |
| coupling/graphSplit | One node, h = 2^-10 s | 7 | 50.32 | 50.58 | 50.32 – 53.36 | 0.6252 | 0.995 | 31.29 | 2.09e6 | 10.16 |
| coupling/graphSplit | Three nodes, H = 2^-6 s with 16 substeps | 7 | 35.58 | 35.92 | 35.58 – 37.09 | 0.4945 | 0.991 | 21.71 | 9.06e6 | 10.27 |
| coupling/graphSplit | Three nodes, h = 2^-10 s | 7 | 55.01 | 55.57 | 55.01 – 56.53 | 0.4629 | 0.990 | 35.06 | 5.61e6 | 10.22 |
| oscillators/vanDerPol | μ = 10, Runge–Kutta 4, 51,200 steps | 7 | 58.51 | 60.21 | 58.51 – 60.41 | 1.76 | 0.972 | 34.03 | 1.50e6 | 15.28 |
| chaos/lorenz | One node with tangent equations, Runge–Kutta 4, 66,560 steps | 7 | 113.2 | 113.8 | 113.2 – 116.9 | 0.6671 | 0.995 | 81.32 | 8.18e5 | 20.55 |
| chaos/lorenz | Two nodes, explicit Euler, 98,304 steps | 7 | 50.65 | 51.36 | 50.65 – 54.4 | 1.007 | 0.986 | 27.25 | 7.21e6 | 11.02 |
| mechanical/doublePendulum | Runge–Kutta 4, 15,360 steps | 7 | 51.89 | 53.67 | 51.89 – 55.57 | 1.18 | 0.967 | 36.62 | 4.19e5 | 10.47 |
| mechanical/bouncingBall | Runge–Kutta 4 with its contacts located, 4,096 steps | 7 | 20.54 | 21.05 | 20.54 – 22.65 | 1.011 | 0.976 | 8.076 | 5.07e5 | 9.219 |
| electrical/switchedCircuits | Buck, switched, 2^20 steps, explicit | 7 | 672.9 | 675.4 | 672.9 – 679.3 | 2.949 | 0.996 | 552.1 | 5.70e6 | 11.25 |
| electrical/switchedCircuits | Buck, switched, 2^20 steps, Runge–Kutta 4 | 7 | 4,703 | 4,721 | 4,703 – 4,738 | 15.93 | 0.996 | 4,597 | 6.84e5 | 12.06 |
| thermal/heatExchanger | Counterflow, 40 segments, 2^16 steps, explicit | 7 | 660.9 | 663.8 | 660.9 – 667.8 | 1.379 | 0.996 | 589.1 | 9.34e6 | 17.95 |
| thermal/heatExchanger | Counterflow, 40 segments, 2^14 steps, Runge–Kutta 4 | 7 | 487.5 | 492.3 | 487.5 – 493.4 | 2.419 | 0.990 | 462.3 | 2.98e6 | 18.8 |
| fluid/pipeNetwork | Fluid network, 2^16 steps, explicit | 7 | 83.28 | 83.68 | 83.28 – 86.77 | 1.4 | 0.995 | 61.24 | 6.42e6 | 10.06 |
| fluid/pipeNetwork | Fluid network, 9,600 steps, Runge–Kutta 4 | 7 | 66.3 | 66.76 | 66.3 – 67.72 | 0.3005 | 0.993 | 51.57 | 1.12e6 | 10.56 |
| multiDomain/dcMotor | DC motor, 2^17 steps, explicit | 7 | 203.6 | 204.2 | 203.6 – 206.9 | 1.046 | 0.997 | 168.8 | 4.66e6 | 13.16 |
| multiDomain/dcMotor | DC motor, 49,152 steps, Runge–Kutta 4 | 7 | 501.9 | 504.2 | 501.9 – 521.7 | 3.452 | 0.995 | 480.9 | 6.13e5 | 12.97 |
| showcase/dataCentre | Data centre, 57,600 steps, explicit | 7 | 406.7 | 409.2 | 406.7 – 410.4 | 1.792 | 0.994 | 364.2 | 4.11e6 | 14.23 |
| showcase/dataCentre | Data centre, 7,200 steps, Runge–Kutta 4 | 7 | 236.3 | 237.5 | 236.3 – 240.2 | 1.022 | 0.995 | 216.4 | 8.65e5 | 14.92 |
| modelica/standardLibrary | Cauer filter, 24,000 steps, explicit | 7 | 37.98 | 38.25 | 37.98 – 38.46 | 0.2258 | 0.993 | 20.11 | 4.77e6 | 11.53 |
| modelica/standardLibrary | Rotational First, 16,000 steps, explicit | 7 | 21.03 | 21.35 | 21.03 – 24.51 | 0.3053 | 0.985 | 6.151 | 7.80e6 | 9.875 |
Machine
- Model
- MacBook Air, MacBookAir10,1
- Processor
- Apple M1
- Cores
- 8 logical (4 performance, 4 efficiency)
- Memory
- 8 GiB
- Operating system
- macOS 26.7.3 (25G342) · arm64
- Power
- AC Power · 80 % battery · Low Power Mode off
- Load average at start
- 1.64 / 2.4 / 4.57
- Node.js
- v24.19.0
- Engine build
- RelWithDebInfo, -O2, the shipped build · Apple clang version 21.0.0 (clang-2100.3.34.2) · -O2 -g -DNDEBUG -std=c++20 -arch arm64 -mmacosx-version-min=11.0