## 1-D Reef-fish example: see Fenichel and Abbott (2014)
data("GOM")
param <- GOM$param
simData <- GOM$simData
Aspace <- aproxdef(param$order, param$lowerK, param$upperK, param$delta)
pC <- paprox(
Aspace,
simData$stock,
simData$sdot,
simData$dsdotds,
simData$dwds
)
GOMSimP <- psim(
pC,
simData$stock,
simData$profit,
simData$sdot
)
## Shadow price
plotgen(GOMSimP, xlabel = "Stock size, s", ylabel = "Shadow price")
## Value function and profit
plotgen(
GOMSimP,
ftype = "vw",
xlabel = "Stock size, s",
ylabel = c("Value Function", "Profit")
)
Run the code above in your browser using DataLab