13-07-2018, 02:20 AM
I have a process (AUTO_ELC_CEN) that consumes 5 commodities. One (commodity "hydro") has type MAT and the others have type NRG. IT produces elec_autons (type NRG), as shown in the picture attached. I wanted the consumption of each input commodity (for example, gas_pwr) to be defined by the following calculation:
consumption = production * share/efficiency
where consumption would be the flow of the input commodity (such as gas_pwr) in the process AUTO_ELC_CEN; production is the flow of elec_autons getting out of the process; share is the share of that input commodity; and efficiency is the efficiency of that iput commodity.
So, I defined the attributes CEFF and Share-I for each input commodity, as you can see in the picture attached. I have seen the equations in the .lst file, which are:
EQE_ACTEFF(CEN,2015,2015,AUTO_ELC_CEN,NRG,IN,ANNUAL).. - VAR_ACT(CEN,2015,2015,AUTO_ELC_CEN,ANNUAL) + 0.450943415503279*VAR_FLO(CEN,2015,2015,AUTO_ELC_CEN,carbon,ANNUAL) + 0.35*VAR_FLO(CEN,2015,2015,AUTO_ELC_CEN,diesel_bx_pwr,ANNUAL) + 0.375903879703612*VAR_FLO(CEN,2015,2015,AUTO_ELC_CEN,fueloil_pwr,ANNUAL) + 0.49758329134185*VAR_FLO(CEN,2015,2015,AUTO_ELC_CEN,gas_pwr,ANNUAL) =E= 0
and (the next one is repeated for every input commodity, except for hydro and gas_pwr)
EQE_INSHR(CEN,2014,2014,AUTO_ELC_CEN,fueloil_pwr,AUTO_ELC_CEN_NRGI,ANNUAL).. 0.15*VAR_FLO(CEN,2014,2014,AUTO_ELC_CEN,carbon,ANNUAL) + 0.15*VAR_FLO(CEN,2014,2014,AUTO_ELC_CEN,diesel_bx_pwr,ANNUAL)
- 0.85*VAR_FLO(CEN,2014,2014,AUTO_ELC_CEN,fueloil_pwr,ANNUAL) + 0.15*VAR_FLO(CEN,2014,2014,AUTO_ELC_CEN,gas_pwr,ANNUAL) =E= 0 ; (LHS = 0)
So, I have found out that:
1) the commodity hydro is not considered in these equations. It should appear at least in the EQE_ACTEFF equation. I wonder if the reason is the type of the commodity (MAT). And how to solve this problem.
2) The shares are being defined in the total input, that is, consumption of a [input commodity= total consumption * share of input commodity], while I wanted [input commodity * efficiency of input commodity = total production * share of input commodity].
Can someone help me?
Thank you
consumption = production * share/efficiency
where consumption would be the flow of the input commodity (such as gas_pwr) in the process AUTO_ELC_CEN; production is the flow of elec_autons getting out of the process; share is the share of that input commodity; and efficiency is the efficiency of that iput commodity.
So, I defined the attributes CEFF and Share-I for each input commodity, as you can see in the picture attached. I have seen the equations in the .lst file, which are:
EQE_ACTEFF(CEN,2015,2015,AUTO_ELC_CEN,NRG,IN,ANNUAL).. - VAR_ACT(CEN,2015,2015,AUTO_ELC_CEN,ANNUAL) + 0.450943415503279*VAR_FLO(CEN,2015,2015,AUTO_ELC_CEN,carbon,ANNUAL) + 0.35*VAR_FLO(CEN,2015,2015,AUTO_ELC_CEN,diesel_bx_pwr,ANNUAL) + 0.375903879703612*VAR_FLO(CEN,2015,2015,AUTO_ELC_CEN,fueloil_pwr,ANNUAL) + 0.49758329134185*VAR_FLO(CEN,2015,2015,AUTO_ELC_CEN,gas_pwr,ANNUAL) =E= 0
and (the next one is repeated for every input commodity, except for hydro and gas_pwr)
EQE_INSHR(CEN,2014,2014,AUTO_ELC_CEN,fueloil_pwr,AUTO_ELC_CEN_NRGI,ANNUAL).. 0.15*VAR_FLO(CEN,2014,2014,AUTO_ELC_CEN,carbon,ANNUAL) + 0.15*VAR_FLO(CEN,2014,2014,AUTO_ELC_CEN,diesel_bx_pwr,ANNUAL)
- 0.85*VAR_FLO(CEN,2014,2014,AUTO_ELC_CEN,fueloil_pwr,ANNUAL) + 0.15*VAR_FLO(CEN,2014,2014,AUTO_ELC_CEN,gas_pwr,ANNUAL) =E= 0 ; (LHS = 0)
So, I have found out that:
1) the commodity hydro is not considered in these equations. It should appear at least in the EQE_ACTEFF equation. I wonder if the reason is the type of the commodity (MAT). And how to solve this problem.
2) The shares are being defined in the total input, that is, consumption of a [input commodity= total consumption * share of input commodity], while I wanted [input commodity * efficiency of input commodity = total production * share of input commodity].
Can someone help me?
Thank you