Veda2.0 Released!


Help with LCFS constraint scenario
#1
I'm trying to simulate a Low Carbon Fuel Standard (LCFS) constraint and need help setting up the scenario spreadsheet properly.

Here is the equation that I'm trying to simulate.

The weighted carbon intensity for the entire transportation fuel mix has to be less than a certain target (that changes each year).  Rearranging the equation, I get this:

in the 1st summation:
The alpha is the Carbon Intensity of fuel i in year t
Q is the quantity of fuel i consumed in year t

in the 2nd summation:
Target is the target average carbon intensity for the fuel mix
EER is an efficiency multiplier for certain fuels (electricity and H2)


I've tried setting up the constraint a couple of different ways but when I check the UC Master, I'm always missing something.  I made a simple example with two fuels (fossil natural gas and bio natural gas).

This attempt was to model it after another constraint I made (ZEV mandate) which I got help with on the forum (http://forum.kanors-emr.org/showthread.php?tid=301) table { }td { padding-top: 1px; padding-right: 1px; padding-left: 1px; color: black; font-size: 12pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: Arial,sans-serif; vertical-align: bottom; border: medium none; white-space: nowrap; } table { }td { padding-top: 1px; padding-right: 1px; padding-left: 1px; color: black; font-size: 12pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: Arial,sans-serif; vertical-align: bottom; border: medium none; white-space: nowrap; }











~UC_T



UC_N UC_ATTR~LHS UC_ATTR~RHS Pset_Set Pset_PN Pset_CI Pset_CO Cset_CN Attribute Year LimType UC_COMCON~RHS UC_COMCON~LHS UC_RHSRTS UC_RHSRTS~0 UC_Desc
\I:














UC_LCFS_TEST3 COMCON COMCON, SYNC



TRANGAf
2012 UP
67.7 0 15







TRANGAf
2055

67.7









TRABIONGA
2012

12.4









TRABIONGA
2055

12.4









TRANGAf, TRABIONGA
2012
95










TRANGAf, TRABIONGA
2055
33




















But I don't see the RHS coefficients for some reason (See picture below)


Another attempt was to model it after a renewable portfolio standard constraint using UC_FLO and UC_COMPRD. table { }td { padding-top: 1px; padding-right: 1px; padding-left: 1px; color: black; font-size: 12pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: Arial,sans-serif; vertical-align: bottom; border: medium none; white-space: nowrap; }









~UC_T




UC_N Pset_Set Pset_PN Pset_CI Pset_CO Cset_CN Attribute Year LimType UC_FLO UC_COMPRD UC_RHSRTS UC_RHSRTS~0 UC_COMPRD~0 UC_Desc
\I:













UC_LCFS_TEST2
TRANGAfINF, TRANGAfINF05
TRANGAf
2012 UP 67.7
0 15



TRANGAfINF, TRANGAfINF05
TRANGAf
2055
67.7






TRABIONGAINF

TRABIONGA
2012
12.4






TRABIONGAINF

TRABIONGA
2055
12.4









TRANGAf, TRABIONGA 2012

-95








TRANGAf, TRABIONGA 2055

-33



But again I was missing some coefficients (this time the UC_FLO). 


Any suggestions on how to set up the constraint to get this working would be greatly appreciated.  THe examples I've shown are very simple but I need to add about 35 different types of fuels (with different carbon intensities) for the full constraint/scenario.

thanks,

Chris
Reply
#2
Check the position of ~UC_T; shouldn't it be positioned above LimType in your examples?
Reply
#3
thanks!  As usual, a simple fix but super helpful. 
The data imports fine and surprisingly, the constraint worked the first time I ran it, which is always a surprise for me.

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Automatic typecasting of scenario name parvathy2202 0 1,298 16-12-2021, 03:34 PM
Last Post: parvathy2202
  user constraint on subset of emissions Stefan 2 2,833 10-11-2021, 08:26 PM
Last Post: Stefan
  DACCS Emissions Constraint not working UKTM User 10 9,414 07-10-2021, 03:30 PM
Last Post: UKTM User
  Functionality of the RPS constraint xavier 3 4,365 02-05-2021, 07:07 PM
Last Post: Antti-L
  User constraint for minimum storage activity Anjali 4 4,622 15-01-2021, 07:38 PM
Last Post: Anjali
  Issue with constraint: Error Code 172 NeilGrant 5 7,415 28-05-2020, 02:08 PM
Last Post: NeilGrant
  TIMES new scenario importing method alexazeze 2 4,943 17-02-2020, 01:00 PM
Last Post: alexazeze
  Automation of scenario creation NeilGrant 3 7,283 21-10-2019, 11:47 PM
Last Post: Antti-L
  Aggregated constraint in a VT_file? Pernille.S 3 5,611 19-09-2019, 01:46 PM
Last Post: Antti-L
  Cost reduction scenario clenox 4 7,472 19-09-2019, 02:41 AM
Last Post: mb537

Forum Jump:


Users browsing this thread: 1 Guest(s)