Veda2.0 Released!


constraint: sum across countries
#1
Hello,
today's question would be the following:
is it possible to create a constraint over the total flow of a commodity out a process across a set of countries

the process would have a cap_bnd for each country, + a bnd over the flow out of the process for a set of countries together.

Many thanks
Reply
#2
If it is of any help, the sum can also be across all countries if needed, this makes no difference to me.
Thanks for your help.
Reply
#3
You can build a Uc like this one in whixh you are using for ~UC_Sets: R_S instead of R_E and then AllRegions if you are summing over all regions in your model or a list of regions (Reg1,Reg2,Reg3).

The column identifier is UC_RHSTS (it is missing the R that is used for region).

~UC_SETS: R_S: AllRegions








~UC_T



UC_N Pset_PN Cset_CN Year UC_FLO UC_RHSTS~UP UC_RHSTS~UP~0 UC_Desc
AU_FLO TECH1,TECH2,TECH3 COMM1 2005 1 10 1 Max Production across countries from Techs 1,2,3

TECH1,TECH2,TECH3 COMM1 2050 1 20 1
Reply
#4
Thanks Maurizio, it does work fine.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  user constraint on subset of emissions Stefan 2 2,676 10-11-2021, 08:26 PM
Last Post: Stefan
  DACCS Emissions Constraint not working UKTM User 10 8,984 07-10-2021, 03:30 PM
Last Post: UKTM User
  Functionality of the RPS constraint xavier 3 4,121 02-05-2021, 07:07 PM
Last Post: Antti-L
  User constraint for minimum storage activity Anjali 4 4,350 15-01-2021, 07:38 PM
Last Post: Anjali
  Issue with constraint: Error Code 172 NeilGrant 5 7,225 28-05-2020, 02:08 PM
Last Post: NeilGrant
  Aggregated constraint in a VT_file? Pernille.S 3 5,477 19-09-2019, 01:46 PM
Last Post: Antti-L
  Constraint on LUMPINV kristofferand 1 3,982 03-09-2019, 04:39 PM
Last Post: Antti-L
  Minimum Utilization Constraint on activity Giulia Realmonte 5 9,971 23-04-2019, 01:53 PM
Last Post: NeilGrant
  Help with user constraint newbie1 12 18,451 02-06-2018, 07:07 PM
Last Post: newbie1
  User constraint on accumulated flow mresende 6 14,239 28-04-2018, 08:41 AM
Last Post: mresende

Forum Jump:


Users browsing this thread: 1 Guest(s)