Improve some error handling, start allowing for stochastic ability to re-optimize, move code up the inheritance chain by allowing for sampling.
Improve some error handling, start allowing for stochastic ability to re-optimize, move code up the inheritance chain by allowing for sampling.

econ-ark/HARK,econ-ark/HARK