1 stage DP with customized feature functions now working, multi stage does not work yet. generalization still needed for stochastic optimization - currently only discretizing search space.