Hi,

I have combined components (source, consumer, transformer) with different variable costs to an energy system and optimized through the solver (CBC and/or Gurobi).

Is it possible to get the **total costs** of the optimized energy system model (after this model was successfully solved to the minimal total costs)?

In the results matrix (python dictionary) I could calculate the total cost based on my energy system structure and the transferred energy (with the variable costs) between the components.

But this is very time-consuming if the energy system is constantly being changed or when a new energy system will be optimized.

So, is there already a function to determine the **total cost** of an optimized energy system?

Maybe a printed value from the solver in the debug window or log file?

Thanks a lot for your help.