Duffing oscillator

ADVANTAGES0 · dim 2

SolvSRK wins. At the comparison noise level, SolvSRK beats the best baseline by at least 10 percentage points of survival, or by at least 0.05 balanced score when survival is tied. Use SolvSRK for this class of problem. All verdicts →

Forced nonlinear oscillator; bistability and chaos at certain drive amplitudes

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 _duffing_rhs(t, y, alpha=1.0, beta=1.0, delta=0.3, gamma=0.5, omega=1.2):
    """Forced hardening Duffing oscillator.

    beta=+1 (hardening spring) produces bounded chaotic dynamics.
    Previous beta=-1 (softening) caused finite-time blowup from y0=[1,0]
    at t~2.56 on all solvers — fixed 2026-04-05 per board A-1.
    """
    x, v = y
    return np.array([v, -delta*v - alpha*x - beta*x**3 + gamma*np.cos(omega*t)])

def rhs(t, y):
    return _duffing_rhs(t, y)
Parameters
  • alpha = 1
  • beta = 1
  • delta = 0.3
  • gamma = 0.5
  • omega = 1.2
Initial condition
y(0) = [0, 0]
Horizon
t ∈ [0, 100]

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: SolvSRK

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: Duffing oscillator (duffing-oscillator)

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
1SolvSRK
100%
10.718,46745 ms0.874
2SciPy RadauSciPy
100%
10.133,064640 ms0.860
3Vern7external
100%
9.96,9124.01 s0.855
4Vern9external
100%
9.55,5384.00 s0.846
5SciPy DOP853SciPy
100%
8.25,52235 ms0.815
6Tsit5external
100%
7.88,7421.51 s0.805
7FBDFexternal
100%
7.64,6815.14 s0.800
8CVODE Adamsexternal
100%
7.62,20525 ms0.799
9CVODE BDFexternal
100%
7.64,50742 ms0.799
10SciPy RK45SciPy
100%
7.58,70862 ms0.798
11SciPy LSODASciPy
100%
7.33,58715 ms0.794
12SciPy RK23SciPy
100%
6.546,385410 ms0.773
13SciPy BDFSciPy
100%
6.28,639298 ms0.767
14TRBDF2external
100%
3.929,1525.48 s0.713

At Clean, best balanced arm is SolvSRK.

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_duffing_oscillator_2026,
  title        = {Resonix Evidence Portal: Duffing oscillator},
  author       = {{Resonix Labs (Canada) Inc.}},
  year         = {2026},
  howpublished = {\url{https://resonix.tech/evidence/problems/duffing-oscillator}},
  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