Veda2.0 Released!


process with MAT and NRG input commodities
#1
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
Reply
#2
Hmm... it seems obvious that you are defining the efficiencies with ACT_EFF, but what is the group?  (Read the documentation concerning the group in ACT_EFF). If the group is 'ACT', then it refers to the default shadow group, and in your case that seems to render to 'NRG', because your primary group of AUTO_ELC_CEN is probably an energy commodity. You can verify the group in Browse.

If you want the group to be something else, please specify the group explicitly when defining the parameter. When doing so, and if "hydro" is contained in the group, it will certainly be included in the equation.

Similar remarks apply to the share constraints. It seems that your group in the share constraint is NRG, which is the VEDA default when the commodity is of type NRG. If you want the share constraints be based on another group, please specify it explicitly in the Other_indexes column. Again, I suggest also reading the documentation concerning the group in FLO_SHAR.

But if you want to embed some efficiencies in the share constraint as well, then I think you would need to use a user constraint.  The FLO_SHAR constraints operate on the process flows.
Reply
#3
Returning back to your desired equations:

 consumption = production * share/efficiency

These equations are equalities, and thus you can model them completely without ACT_EFF or FLO_SHAR.

Just define:
 INPUT(fueloil_pwr) = share
 FLO_FUNC(fueloil_pwr,elec_autons) = efficiency

And repeat for each input commodity.

I just tested this, and it worked as expected, the resulting EQ_PTRANS equations being exactly as you wrote. For example, assuming that for fueloil_pwr the fixed share is 0.15 and the efficiency is 0.4976, the resulting equation between consumption(fueloil_pwr) and production(elec_autons) was the following:

 VAR_FLO(fueloil_pwr) = VAR_FLO(elec_autons) * 0.15 / 0.4976
Reply
#4
There are many ways to accomplish the same equations in TIMES.

For example, if you would agree to calculate the share/efficiency ratios by yourself, then you can just define fixed shares directly between the input commodities and the output:

FLO_SHAR(fueloil_pwr,elec_autons,FX) = 0.15 / 0.4976;

This parameter will prescribe that the flow of fueloil_pwr should be 0.15 / 0.4976 times the flow of elec_autons, which I think is exactly as you wanted. But as mentioned, the drawback is that the value 0.15 / 0.4976 must be calculated by yourself, which may not be so convenient if the efficiencies and/or shares are time-dependent or scenario-dependent.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Disabling a process in a region Aymane 8 13,945 29-04-2024, 05:32 PM
Last Post: Antti-L
  SHARE-I/O for all process and all time horizon ejin 7 4,313 08-03-2023, 10:55 AM
Last Post: AKanudia
  Ratio between output commodities seb 31 66,492 01-07-2022, 04:06 PM
Last Post: vincedh
  About base year process and New tech guozhi1305 0 1,055 21-05-2022, 04:53 PM
Last Post: guozhi1305
  Addition of process elec from H2 not working srchlela 2 3,385 21-04-2021, 05:11 PM
Last Post: srchlela
  How to set emission factor for each year of a specific process during its lifetime? Xin Wang 14 22,343 06-01-2021, 11:17 PM
Last Post: Antti-L
  Source code for the commodity input/output for each process Shibo.liu 3 6,738 13-01-2020, 04:30 PM
Last Post: Antti-L
  Process/Commodity Set Definition Shibo.liu 2 4,900 24-12-2019, 04:19 PM
Last Post: Shibo.liu
  auxiliary input of time commodity ignored Anita Prajapati 5 8,977 25-10-2019, 07:42 PM
Last Post: Anita Prajapati
  Linking IMPNRGZ and IMPDEMZ to commodities NeilGrant 4 8,469 08-08-2019, 03:10 PM
Last Post: NeilGrant

Forum Jump:


Users browsing this thread: 1 Guest(s)