keywords markov process; non-linear programming; kernel density estimation; advanced metering infrastructure