Smart grid. DC smart house. Optimal operation