Veda2.0 Released!


User constraint on accumulated flow
#1
Hi! I would like to make an user constraint that says that the maximum accumulated activity of a process is X. That is:


VAR_ACT(Process,Year1)+VAR_ACT(Process,Year2)+... <= X

How can I make such restriction in a scenario file?

Thank you!
Reply
#2
Could you first clarify the year range that the activity should be accumulated?  
A single constraint over the full model horizon, or a constraint for each T accumulating over (years <=T)?
I assume that you want accumulation over all individual years within the range (and not just milestone years), is that correct?

[EDIT]: By using ACT_CUM you can easily constrain activities accumulated over any year ranges without using user constraints, see examples below:
   
Reply
#3
(27-04-2018, 10:54 PM)Antti-L Wrote: Could you first clarify the year range that the activity should be accumulated?  
A single constraint over the full model horizon, or a constraint for each T accumulating over (years <=T)?
I assume that you want accumulation over all individual years within the range (and not just milestone years), is that correct?

Yes, it is a single constraint over the full horizon. That is, the last year on my constraint would be the final year of the model. Moreover, my model is annual, and each period has a length of one year. That is, every year is a  "milestone year".
Reply
#4
See examples below, with the year range BOH-EOH:
Reply
#5
I have tried to do that, but it is not working. After synchronizing, the following warning appears: "Info: INS table row did not generate any records". I am attaching two files showing the characterization of the processes and the TFM_INS table


Attached Files Thumbnail(s)
   

.xlsx   VT_GAS_vedaForum.xlsx (Size: 14.89 KB / Downloads: 5)
Reply
#6
If EXP_LNG is a process, it should be under PSET_PN
Reply
#7
(28-04-2018, 02:07 AM)AKanudia Wrote: If EXP_LNG is a process, it should be under PSET_PN

That's right. Sorry for this silly mistake. It worked fine now.

Thank you!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Tradeoff for user-defined objective function Sandro_Luh 27 16,577 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,422 07-10-2021, 03:30 PM
Last Post: UKTM User
  Functionality of the RPS constraint xavier 3 4,370 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,618 19-09-2019, 01:46 PM
Last Post: Antti-L
  Constraint on LUMPINV kristofferand 1 4,115 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
  UC on FLOW from different processes Giulia Realmonte 6 14,178 08-06-2018, 07:07 PM
Last Post: Giulia Realmonte

Forum Jump:


Users browsing this thread: 1 Guest(s)