Design and implementation of an energy trading model for smart factories | IEEE Conference Publication | IEEE Xplore