Veda2.0 Released!


Constraint on Commodity IN to a set of Processes
#1
Hello,

I have a problem to define user constraint for fuel consumption in a set of processes (vehicles):

I have 50 different gasoline cars (conventional, Hybrid, Plugin Hybrid, and existing gasoline vehicles)
All of these cars have 2 or 3 commodity in. For example, conventional, Hybrid, and existing cars have 2 fuels input (gasoline and ethanol) and Plugin Hybrid has 3 fuels input (gasoline, ethanol, and elec).
I don't want to specify a percent fuel share input for gasoline and ethanol for each vehicle. I want the model to figure that out instead. So, Would be possible to allow gasoline and ethanol as an input to all gasoline vehicles without specifying fuel share for each car, and then set a separate lower bound constraint that requires total ethanol consumption from all gasoline cars to be x% of total gasoline consumption from all gasoline vehicles, where x increases over time?
I tried that with UC_COMCON but it didn't work. I just wonder if I could have this kind of constraint on commodity in to a set of processes?

Thank you so much for your help,
Samaneh

Reply
#2
UC_COMCON and UC_COMPRD lead to terse and robust specification, when you want to use the *entire* consumption/production of commodities in your constraint. Gasoline and ethanol in your case will likely go to processes outside your constraint.
Here is one way to formulate this constraint:
  1. Row#1: CSET_CN=<ethanol>; PSET_CO=<car travel demand>; Attribute=UC_FLO; <Year>=1 - years can be col headers.
  2. Row#2: CSET_CN=<gasoline>; PSET_CO=<car travel demand>; Attribute=UC_FLO; <Year>= MINUS<the min ratio of ethanol to gasoline - negative fractions> - years can be col headers.
  3. Row#1: UC_RHSRT=0; LimType=LO
  4. Row#1: Set an appropriate interpolation option for UC_RHSRT
Reply
#3
Hi Dr. AKanudia ,

Thanks for your response. I have infeasible solution and I just want to make sure if I've got the formula right or not.

UC_N                  Pset_PN      Pset_CO      Cset_CN     Attribute   Year    LimType  UC_FLO  UC_RHSRTS
UC_ethtogsl         *GSL          TMD             Ethanol      UC_FLO     2010   LO           -1               1
                                               TMD             CONVGSL   UC_FLO     2010                   -0.1

Thanks,
Samaneh
Reply
#4
PSET_PN should be empty and the UC_FLO in Row#1 should be 1. And my mistake... UC_RHSRT should be 0!
Reply
#5
Thanks, it is working nowSmile
Samaneh
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Negative LCOE for processes with high FLO_SUB Sasha 2 2,297 08-07-2022, 04:40 PM
Last Post: Sasha
  user constraint on subset of emissions Stefan 2 2,714 10-11-2021, 08:26 PM
Last Post: Stefan
  DACCS Emissions Constraint not working UKTM User 10 9,063 07-10-2021, 03:30 PM
Last Post: UKTM User
  UC_FLO ignored by TIMES for IRE processes needing UC_IRE NeilGrant 16 14,902 30-09-2021, 02:56 AM
Last Post: Antti-L
  Trade processes not being defined henriqueanjos 7 6,294 12-06-2021, 06:58 AM
Last Post: henriqueanjos
  Functionality of the RPS constraint xavier 3 4,182 02-05-2021, 07:07 PM
Last Post: Antti-L
  Carbon Budgets Excluding Processes using UC_FLO JGlynn 3 5,213 04-02-2021, 04:18 PM
Last Post: JGlynn
  User constraint for minimum storage activity Anjali 4 4,407 15-01-2021, 07:38 PM
Last Post: Anjali
  Issue with constraint: Error Code 172 NeilGrant 5 7,266 28-05-2020, 02:08 PM
Last Post: NeilGrant
  H2 blending - constraints in simultaneous processes pfortes 6 7,163 26-05-2020, 10:58 PM
Last Post: pfortes

Forum Jump:


Users browsing this thread: 1 Guest(s)