An implementation of FSP with compression.
Exception raised if a failure occurs while expanding the domain states.
FspSolver is a CME solver that adaptively expands the domain using FSP.
Returns a FSP based CME solver for given model, domain and domain_expander.
See the documentation of the cmepy.fsp.FspSolver class for more information about the returned solver’s methods.
The returned solver will adaptively expand its domain, as necessary, in order to keep the domain truncation error below the epsilon thresholds specified when the solver step method is called.
The domain_expander argument is used to implement the domain expansion strategy. This argument is used by the FSP implementation as follows:
expanded_domain = domain_expander.expand(
domain_states = domain,
p = p,
p_sink = p_sink,
t = t
)
where domain, p, p_sink and t are the current domain, solution, truncation error and time, respectively. Note that these are all passed to the domain_expander‘s expand method as keyword arguments.
Any additional keyword arguments passed to this create function are treated in the same way as keyword arguments passed to the cmepy.solver.create function. Please refer to the documentation for the cmepy.solver.create function for additional details.