Veda2.0 Released!


Help with user constraint
#1
I'm attempting to write a user constraint that requires a minimum of 33% of H2 to be "renewable" H2.  It is not quite a share constraint because of the way I'm designating renewable H2.  Since electrolysis may or may not produce renewable H2, I'm making a secondary commodity (called REN_H2) that is produced when renewable H2 is produced, but I'm calling it an ENV commodity, just for ease of process specification.  So 1 kt of REN_H2 is made when 1 PJ of H2PROD* is produced. 

My Scen file looks like this:


Two processes can produce REN_H2 (Biomass gasification and a distributed electrolyzer).  And since REN_H2 is in kt and H2Prod is in PJ, constraint is that (sum REN_H2)/(sum of H2Prod*)>=.33 kt/PJ

any help would be greatly appreciated.  Thanks!
Reply
#2
Seems there was a model error that didn't show up until I tried running with this scenario (it was a problem with how electrolyzers produced REN_H2).  Anyway, I fixed this and and now this scenario is working fine and I can get it to require 33% renewable H2.
Reply
#3
Apologies for not responding earlier; glad you got things working. One observation though: UC_* coefficients inherit interpolation rules from UC_RHS* (Antti, please make it more precise...). So, you can omit columns UC_FLO~0 and UC_COMPRD~0 in this table.
Reply
#4
Nice to see you around here again, Amit!

A bit more precisely: The UC_NCAP, UC_CAP, UC_ACT, UC_FLO, UC_IRE, and UC_COMxxx coefficients do not actually inherit the interpolation rules from UC_RHS*, but the default interpolation rule for them is "full interpolation/extrapolation".

Therefore, because the UC constraint will be generated only for the years that have an UC_RHS* attribute defined, it is usually most "economical" to use an interpolation option only for the UC_RHS* parameters. When doing so, there should be no need to restrict the inter-/extrapolation of those other UC_* attributes, and thus no need to specify an I/E option for them.
Reply
#5
thank you Amit and Antti for your tips.  That is helpful information.  This is perhaps a basic question but since I modeled my user constraint file after an analogous constraint from a colleague, I think I still have some questions about how it is set up. 

Specifically, how do I know whether to use UC_FLO or UC_COMPRD for a given environmental or energy commodity?

thanks again,

Chris
Reply
#6
Look at the description and indexes of these attributes in the attributes master under advanced functions menu.
UC_FLO refers to the flow of a commodity in or out of a process. UC_COMPRD refers to the total output over all processes (in the same region, period and timeslice).
Reply
#7
Amit,

thanks for the response and clafirication.

Chris
Reply
#8
Hi, I still cannot understand the UC_FLO and the UC_COMPRD. DEMO model, scenario Scen_UCTest, middle of the sheet Simple_UC for an example. What is the value "1" for UC_FLO and "-0.01" for UC_COMPRD means? Would you explain them?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Tradeoff for user-defined objective function Sandro_Luh 27 16,574 14-02-2023, 03:50 PM
Last Post: Antti-L
  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,416 07-10-2021, 03:30 PM
Last Post: UKTM User
  Functionality of the RPS constraint xavier 3 4,368 02-05-2021, 07:07 PM
Last Post: Antti-L
  User constraint for minimum storage activity Anjali 4 4,623 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
  Aggregated constraint in a VT_file? Pernille.S 3 5,615 19-09-2019, 01:46 PM
Last Post: Antti-L
  Constraint on LUMPINV kristofferand 1 4,114 03-09-2019, 04:39 PM
Last Post: Antti-L
  Minimum Utilization Constraint on activity Giulia Realmonte 5 10,209 23-04-2019, 01:53 PM
Last Post: NeilGrant
  Help with user constraint newbie1 12 18,912 02-06-2018, 07:07 PM
Last Post: newbie1

Forum Jump:


Users browsing this thread: 2 Guest(s)