How do I create a constraint that does the following: 50% of the total fuel use in the residential sector must be electricity
40% of the total fuel use in the residential sector must be natural gas
10% of the total fuel use in the residential sector must be diesel
All in the year 2025 and holding steady to the end of the time horizon?
Thank you.
You cannot accomplish what you want by a single constraint; at least three constraints would be needed: 1 for electricity, 1 for natural gas and 1 for diesel.
See if the example shown in the picture below helps. It assumes that the residential fuels have their own commodities.
I have tested it, and it appears to work as expected. It uses an additional constraint for defining the total residential energy consumption, by the constraint U_TotResFuels. Only the fuels RESELC, RESNGA and RESDST are included, but it would be easy to add more. Then it defines minimum shares for RESELC, RESNGA and RESDST, in proportion to that total residential consumption.