View source: R/ospProbDesign.R
osp.impulse.control | R Documentation |
RMC for impulse control. Training design specified explicitly by the user
osp.impulse.control(
model,
input.domain = NULL,
method = "spline",
verb = 101,
mpc = FALSE
)
model |
a list defining the simulator and reward model, with the two main model hooks being
|
method |
a string specifying regression method to use
|
Works with a design specified by the user
Calls model$impulse.func
, so the latter must be set prior to calling.
Also needs model$dt
and model$r
for discounting.
Calls model$sim.func
to generate forward paths. Use in conjunction with
forward.impulse.policy
a list containing
fit
a list containing all the models generated at each time-step. fit[[1]]
is the emulator
at t=\Delta t
, the last one is fit[[M-1]]
which is emulator for T-\Delta t
.
timeElapsed
(based on Sys.time
)
Mike Ludkovski
set.seed(1)
require(DiceKriging)
modelBelak <- list(dim=1, sim.func=sim.bm, r=0.5, drift=0, sigma=1,
x0=1, impulse.fixed.cost = 1,impulse.target = 0,impulse.func = forest.impulse,
imp.type = "forest",T=5, dt=0.05,pilot.nsims=0,batch.nrep = 10,nk = 30,N = 601)
belSolve <- osp.impulse.control(modelBelak, input.domain = seq(-0.5,2.5,by=0.005),method="spline")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.