Optimizing the loss of exergy

Do you get an error?