restorable_solver

Creates restorable solvers for the Chemical Master Equation (CME).

class cmepy.restorable_solver.RestorableSolver(model, sink, **solver_args)

CME solver with support for setting and restoring state.

dy_dt
Read-only property, returning the differential equations dy_dt.
restore(**solver_args)

Restore from a previous restore point fixed via set_restore_point

If set_restore_point was not previously called, restores the state of the solver from when it was initialised.

Optionally, one or more keyword arguments may be supplied, which then override the arguments used to restore the solver, when recreating the solver via cmepy.solver.create .

restore_point_error

Read only property returning error at restore point.

Raises NotImplementedError if sink flag is not True.

set_restore_point(solver=None)

Sets a restore point using the current solver state.

Optionally, if the argument solver is given, set a restore point using the current state of that solver. This consists of the solver’s current solution, time, and sink probability, if available.

step(t)

Advances the current solution to the time t.

Values of t less that the current solution time are illegal and will raise a ValueError.

If internal ODE solver errors are detected, a RuntimeError will be raised, and additional information may be displayed.

t
Read-only property, returning the current solution time t.
y
Read-only property, returning the current solution y.
cmepy.restorable_solver.create(model, sink, **solver_args)

Returns a restorable solver for the CME of the given model.

The arguments are the same as for cmepy.solver.create.

Previous topic

recorder

Next topic

solver

This Page