Optimization of a CO2 storage project based on thermal