Distributed Linear Programming Models in a Smart Grid