forward.impulse.policy | R Documentation |
Simulate a payoff of an impulse strategy along a set of forward paths
forward.impulse.policy(x, M, fit, model, mpc = FALSE)
x |
is a matrix of starting values if input |
M |
number of time steps to forward simulate |
fit |
a list of M fitted emulators that determine the functional approximators of
V(k,x). Supports km, spline, and hetGP objects (anything supported by |
model |
a list containing all model parameters. In particular need
|
Should be used in conjunction with the osp.impulse.control
function
that builds the emulators and calls forward.impulse.policy internally.
a list containing:
payoff
(vector) is the resulting payoff NPV from t=0
tau
(vector) number of times impulses were applied on each path
impulses
(matrix) impulse amounts matching tau
paths
((d+2)-tensor) forward trajectories of the controlled state process
bnd
(vector) impulse target levels for the case of linear impulse costs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.