Piecewise-linear 3-regime system

BOUNDARYS1 · dim 4

Partial / unstable. SolvSRK survives more than 0% but less than 90% of runs at the comparison noise level, without being beaten by a baseline there. Usable with margin and monitoring; validate on your own configuration. All verdicts →

Three-zone piecewise linear ODE; tests switching dynamics with mild stiffness

Oscillators & nonlinear dynamics

Problem definition

Canonical benchmark implementation

Canonical RHS excerpt from the registered callable used for this benchmark cell. Expand it to verify the state equations; it is not a standalone runnable fixture.

Show canonical RHS excerpt
def _piecewise_linear_rhs(t, y):
    """3-regime piecewise linear: stiffness changes at x1 boundaries."""
    x1, x2, x3, x4 = y
    if x1 > 1.0:
        A = np.array([[-1, 0.5, 0, 0], [0, -10, 0.5, 0],
                       [0, 0, -100, 0.5], [0, 0, 0, -1000]])
    elif x1 < -1.0:
        A = np.array([[-1000, 0.5, 0, 0], [0, -100, 0.5, 0],
                       [0, 0, -10, 0.5], [0, 0, 0, -1]])
    else:
        A = np.array([[-1, 1, 0, 0], [0, -1, 1, 0],
                       [0, 0, -1, 1], [0, 0, 0, -1]])
    return A @ y
Parameters
  • No captured parameters; constants are explicit in the RHS excerpt.
Initial condition
y(0) = [2, 1, 0.5, 0.1]
Horizon
t ∈ [0, 20]

Canonical RHS excerpt captured from the same registered callable used for the published benchmark. Frozen closure values are summarized below; helper imports and solver settings are intentionally omitted.

Fingerprint

Spread: low

Default noise: none

Recommendation snapshot

Clean best: SciPy DOP853

Noisy best: SolvSRK

Coverage

14 solver arms · clean + 5 noise levels

Ranked on survival, precision, and speed

Versions & freeze

Methodology →
Freeze
2026-08-13
libsolvsrk
2.3.0
SciPy
1.14
SUNDIALS
CVODE (bundled backend)

20 seeds/cell default · 14 arms · TRL 4–5 · simulation-lab validated · this page: Piecewise-linear 3-regime system (piecewise-linear-3-regime-system)

Governed SolvTune benchmark freeze; per-arm medians only. RHS definitions and raw trial rows are not published.

Self-reported by Resonix Labs · not independently verified

Results matrix

Pick an objective and a noise level to rank all arms on survival, median SCD, median nfev, and median wall time. Medians across seeds.

Objective

Best overall trade-off of survival, precision, and speed.

Noise level

#SolverSurvivalSCDnfevWallScore
1SciPy DOP853SciPy
100%
4.31,92214 ms0.721
2Vern9external
100%
3.53,5543.65 s0.704
3SolvSRK
100%
3.41,90831 ms0.701
4Vern7external
100%
2.92,3323.59 s0.689
5SciPy RadauSciPy
100%
1.72,39748 ms0.659
6SciPy LSODASciPy
100%
1.67784 ms0.658
7SciPy BDFSciPy
100%
0.781728 ms0.634
8SciPy RK45SciPy
100%
0.61,98216 ms0.633
9CVODE Adamsexternal
100%
0.668212 ms0.632
10FBDFexternal
100%
0.47294.63 s0.629
11Tsit5external
100%
0.42,076818 ms0.629
12TRBDF2external
100%
0.11,4064.69 s0.622
13CVODE BDFexternal
100%
0.153810 ms0.621
14SciPy RK23SciPy
100%
0.02,68126 ms0.619

At Clean, best balanced arm is SciPy DOP853 · SolvSRK survival 100%, SCD 3.4.

Values are medians across seeds, measured by Resonix Labs on Resonix hardware and not independently verified; nfev and wall are on reference lab hardware (indicative). Under injected noise only SolvSRK and the SciPy arms are run. How we measure accuracy → · Verification status →

SolvScout · free

Profile your problem for free

This page shows one published benchmark cell. SolvScout fingerprints your ODE, compares it to the full corpus, and recommends a solver with the same survival / precision / speed ranking you see here — including when a SciPy arm wins.

SolvSRK · 30-day trial

Run the winner on your machine

SolvSRK is the stiffness-adaptive integrator behind the SolvSRK column in these tables. Create an account, activate a machine, and take a 30-day trial — same binary you'd ship after purchase.

Cite this page

Replace the access date. Pin the freeze ID and library versions when comparing against a later export. Cite it as what it is — a self-reported vendor benchmark, not an independently verified result. The note field says so; please keep it.

@misc{resonix_evidence_piecewise_linear_3_regime_system_2026,
  title        = {Resonix Evidence Portal: Piecewise-linear 3-regime system},
  author       = {{Resonix Labs (Canada) Inc.}},
  year         = {2026},
  howpublished = {\url{https://resonix.tech/evidence/problems/piecewise-linear-3-regime-system}},
  note         = {Self-reported vendor benchmark; internally generated by Resonix Labs and not independently verified. Accessed YYYY-MM-DD. Freeze 2026-08-13; libsolvsrk 2.3.0; SciPy 1.14.}
}

Related

TRL 4–5 · simulation-lab validated · 398 problems · 14 solver arms · clean + 5 noise levels

Freeze: 2026-08-13 · scipy 1.14 · libsolvsrk 2.3.0 · Methodology

Self-reported by Resonix Labs · not independently verified · Verification status