This repository provides an R package with general purpose stochastic dynamic programming code developed and used in the paper: Boettiger, Carl et al. (2015) Optimal management of a stochastically varying population when policy adjustment is costly. to be published in Ecological Applications.