Artificial Immune System in the management of complex small scale cogeneration systems