Hey there,

I’m curious how to get financial information about generation costs from the solved model. Lets say I want to know the marginal generation cost of every node (or flow) in my solved energy system for every time step. How do I get this information from the model? At some point in the solving process there must be a linear equation existent containing the generation costs for each timestep. I have the feeling that it wouldn’t need much work to get the information from the model. From my simple understanding of the solving process I would say the solver already calculated all the marginal costs to compare and pick the cheapest option.

I’m looking for something similar to the dual variable of the bus equality constraint giving marginal cost of production in the specific bus. Maybe I’m just missing something out and somebody can point out to me how and where to find this information.

My basic idea would be to just multiply the ´variable_costs´ of each flow with the respective ´value´ of the flow. Like described in here: How to get the total costs of the optimized model?

Further enhacements would be to also take startup_costs and fuelcosts into account depending on the status variable of the flow. But again I have the feeling that the solver already must have done this calculation. But maybe I’m wrong.

Any suggestions, comments and help are highly appreciated.

Regards

Till