Text this: Optimization of electrical chain of a linear microcogeneration system