Optimization of a smart grid distributed generation: Designing of a hybrid solar system for a building | IEEE Conference Publication | IEEE Xplore