Heat transfer and exergy transfer analysis are performed for the collector tube.
An optimization model is proposed to obtain the maximum available energy.
The gravitational search algorithm is used to solve the proposed objective function.
The feasibility of the proposed optimization model is numerically validated.