In this article
SciPy solve_ivp accepts t_eval as the times at which the solution is stored. Adaptive methods choose their integration steps using their own method and error-control settings. Requested output values can be obtained through the solver's interpolation machinery rather than forcing an accepted step at every requested time. Returned array length is therefore an output-sampling quantity. Function-evaluation counts, Jacobian work and factorization counts describe other aspects of computation and.
A dense output table from an ODE solver does not show how many adaptive integration steps the solver accepted. When trajectories become training examples for a neural surrogate, confusing requested observation times with numerical work can mislabel both dataset resolution and benchmark cost. Keep the solver’s internal integration process separate from the grid on which its result is exported.
The scientific interface
SciPy solve_ivp accepts t_eval as the times at which the solution is stored. Adaptive methods choose their integration steps using their own method and error-control settings. Requested output values can be obtained through the solver’s interpolation machinery rather than forcing an accepted step at every requested time. Returned array length is therefore an output-sampling quantity. Function-evaluation counts, Jacobian work and factorization counts describe other aspects of computation and should not be replaced by the number of exported observations.
Implementation details
Record the differential equation, initial state, integration span, method, tolerances and maximum-step policy separately from t_eval. Preserve the solver’s success outcome and actual returned time range before releasing a trajectory. For a cost comparison, collect the method’s documented work counters and elapsed-time boundary independently. For dataset preparation, state the observation grid and interpolation path. Changing output density may change memory and interpolation overhead even when the differential equation and error controls remain fixed, so do not assert identical total work without inspecting the selected implementation and observations.
A constructed validation case
Use a controlled equation with an independently known solution. Solve it under the same declared numerical settings with sparse and dense requested observation grids. Compare sampled error, work counters, returned coverage and export size as separate results. Include a deliberately interrupted or failed integration so the loader cannot infer full coverage from the requested grid alone. Acceptance requires truthful output-grid provenance and numerical evidence on the tested domain, not an assumed equality between array length and adaptive-step count.
Numerical and data limits
This check does not certify a surrogate’s prediction accuracy. It establishes what its numerical reference samples represent. Evaluate the model against an appropriate independent reference and preserve solver error separately from model error before interpreting a denser dataset as a more accurate physical ground truth.
Primary references
SciPy integrate.solve_ivp API; SciPy integration guide.
This is a proposed scientific-interface validation, not an executed Retrivium benchmark. Preserve the implementation version and unresolved outcomes; interface documentation does not establish the accuracy or performance of a scientific model.
Related reading
A GPU inference benchmark you can trust; Tensor axes in a language model: batch, sequence and hidden width.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.