Veda2.0 Released!


UC Capacity Growth Constraint - Troubles at end of horizon
#16
(18-04-2018, 02:04 PM)Antti-L Wrote: Thank you for providing the model input files for investigating the issue.

Indeed, you have discovered a bug in TIMES related to certain types of dynamic user constraints. This bug manifests itself only when all of the following conditions are true:

• The dynamic user constraint is formulated by summing over regions
• The dynamic user constraint is formulated with the dynamic type (t, t+1)
• The model is run by fixing the first periods to a previous solution (using FIXBOH)

As you can see, the bug appears only under rather specific conditions, which I guess explains that it has not been discovered before.

The bug will be fixed in the next version of TIMES.  Meanwhile, there is an easy workaround, by formulating the constraint with the dynamic type (t, t–1) instead of (t, t+1).  The screen capture below shows your constraint formulated with the dynamic type (t, t–1):



Many thanks for bringing the issue up here and being so helpful with investigating it and getting this old bug fixed!  Shy
Dear Antti,
thank you very much for your help. I am happy that my problem was useful on a wide scale ;-) 
Giulia
Reply
#17
(18-04-2018, 02:04 PM)Antti-L Wrote: Thank you for providing the model input files for investigating the issue.

Indeed, you have discovered a bug in TIMES related to certain types of dynamic user constraints. This bug manifests itself only when all of the following conditions are true:

• The dynamic user constraint is formulated by summing over regions
• The dynamic user constraint is formulated with the dynamic type (t, t+1)
• The model is run by fixing the first periods to a previous solution (using FIXBOH)

As you can see, the bug appears only under rather specific conditions, which I guess explains that it has not been discovered before.

The bug will be fixed in the next version of TIMES.  Meanwhile, there is an easy workaround, by formulating the constraint with the dynamic type (t, t–1) instead of (t, t+1).  The screen capture below shows your constraint formulated with the dynamic type (t, t–1):



Many thanks for bringing the issue up here and being so helpful with investigating it and getting this old bug fixed!  Shy
Dear Antti,
sorry for bothering you again but I tried what you suggested (t,t-1)and it is not working at all: indeed the bound is not met in the scenario (marginal value not present in VedaBE). Did you try to see if it was actually working?

This are my results:
   

Giulia
Reply
#18
Sure, I tried it with your model files (replacing your original constraint data with the (t, t-1) variant), and it worked perfectly, for all periods from 2030 to 2100.
Reply
#19
I managed to!

Giulia
Reply
#20
You managed to what?  Shy

Does the (t, t-1) approach work now for you?  What was the problem?

Thanks.
Reply
#21
I managed to have the right results! Don't know what was going wrong exactly, probably I wrote the wrong column header!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  how to define the capacity or stock for storage? guozhi1305 6 2,652 08-05-2024, 05:47 PM
Last Post: guozhi1305
  SHARE-I/O for all process and all time horizon ejin 7 4,324 08-03-2023, 10:55 AM
Last Post: AKanudia
  About RNW capacity guozhi1305 4 3,280 19-05-2022, 08:13 AM
Last Post: guozhi1305
  user constraint on subset of emissions Stefan 2 2,836 10-11-2021, 08:26 PM
Last Post: Stefan
  DACCS Emissions Constraint not working UKTM User 10 9,444 07-10-2021, 03:30 PM
Last Post: UKTM User
  Functionality of the RPS constraint xavier 3 4,374 02-05-2021, 07:07 PM
Last Post: Antti-L
  User constraint for minimum storage activity Anjali 4 4,631 15-01-2021, 07:38 PM
Last Post: Anjali
  Solar lower costs impact capacity constraints LucasD 10 10,043 18-12-2020, 03:04 PM
Last Post: AKanudia
  Issue with constraint: Error Code 172 NeilGrant 5 7,421 28-05-2020, 02:08 PM
Last Post: NeilGrant
  Storage output without capacity deployment ach 3 4,913 15-05-2020, 03:04 PM
Last Post: Antti-L

Forum Jump:


Users browsing this thread: 1 Guest(s)