Veda2.0 Released!


Issue with constraint: Error Code 172
#1
Hi there,
I have been trying to apply a policy which reduces final energy consumption in industry by different amounts across my 15 regions in TIAM.

I'm attaching the scenario file which I am using to do this, which attempts to use UC_COMCON to do this. 

This file syncs correctly in the model, and when looking at the constraint in VEDA_FE all seems to be OK. But the model terminates the run without solving. I'm attaching the LST file - which reports an error code 172 - Element Redefined. 

Does anyone know what the issue is here? It appears I am defining something (a coefficient? the UC_RHSRT?) multiple times and this is causing errors. But it's not clear to me where this is, and how I might go about fixing it.

I'm using 
VEDA_FE: 4.5.828
TIMES Source Code: V4.27
Microsoft Office 365

All the best,
Neil


Attached Files
.xlsx   Example Industry Constraint for VEDA Forum.xlsx (Size: 26.92 KB / Downloads: 5)
Reply
#2
(27-05-2020, 09:11 PM)NeilGrant Wrote: Hi there,
I have been trying to apply a policy which reduces final energy consumption in industry by different amounts across my 15 regions in TIAM.

I'm attaching the scenario file which I am using to do this, which attempts to use UC_COMCON to do this. 

This file syncs correctly in the model, and when looking at the constraint in VEDA_FE all seems to be OK. But the model terminates the run without solving. I'm attaching the LST file - which reports an error code 172 - Element Redefined. 

Does anyone know what the issue is here? It appears I am defining something (a coefficient? the UC_RHSRT?) multiple times and this is causing errors. But it's not clear to me where this is, and how I might go about fixing it.

I'm using 
VEDA_FE: 4.5.828
TIMES Source Code: V4.27
Microsoft Office 365

All the best,
Neil

See here for LST file - apologies it did not attach in previous post


Attached Files
.txt   GPP_Industry.txt (Size: 74.86 KB / Downloads: 6)
Reply
#3
Yes, the reason seems to be that you appear to be using too long UC names.

The "element redefined" error is caused by the dummy commodities VEDA has created, appending the UC constraint names with "_" or "-" , but the total length appears to get truncated at 32 characters.  I guess your version of VEDA may have a 32 character limit for commodity names.  Try making the UC names shorter (at most 30 chars).
Reply
#4
Thanks Antti.

Neil, you could also reimport this scenario after turning off dummy imports for UCs under user options - import settings.

I see that your UC names happen to be exactly 32 char.

Curious, that you chose to embed the region in  UC names... any particular reason why you did not did not use the region index of UC_RHSRT for this? And your interpolation options may not be working because the values have been specified for UC_RHSRTS and the interpolation options are for UC_RHSRT.

Note that a more robust and simpler specification for this UC would be CSET_SET=NRG and CSET_CN=IND*. You don't need any PSET cols as UC_COMCON only has a commodity index.
Reply
#5

.xlsx   Example Industry Constraint for VEDA Forum_AK.xlsx (Size: 30.91 KB / Downloads: 5)

try this version
Reply
#6
Hi Amit and Antti,
Thanks for your comments. Either reducing the length of the UC_Name, or turning off dummy imports for UC's fixed this issue, and the file is now syncing and running correctly.

Thanks for your help.

Cheers,
Neil
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Persistent Import Error after Sync Ismail Kimuli 0 562 02-03-2024, 02:54 PM
Last Post: Ismail Kimuli
  VB error Samaneh 10 15,110 29-09-2022, 03:05 PM
Last Post: Ravinder
  ODBC Driver error while synchronizing [email protected] 1 1,570 31-03-2022, 06:13 PM
Last Post: Ravinder
  user constraint on subset of emissions Stefan 2 2,765 10-11-2021, 08:26 PM
Last Post: Stefan
  DACCS Emissions Constraint not working UKTM User 10 9,198 07-10-2021, 03:30 PM
Last Post: UKTM User
  IMPNGZ Dummy Issue subhadipbhattacharya 1 2,233 17-09-2021, 06:58 PM
Last Post: Antti-L
  CPLEX Error 1707 - Infeasibility, but can't find where henriqueanjos 3 3,436 30-07-2021, 11:41 PM
Last Post: Antti-L
  "automation error interface" error shivika 4 4,813 17-06-2021, 07:32 PM
Last Post: Ravinder
  "automation error interface" error shivika 0 1,486 17-06-2021, 02:13 AM
Last Post: shivika
  VFE case export issue james 1 2,324 04-06-2021, 07:44 AM
Last Post: AKanudia

Forum Jump:


Users browsing this thread: 1 Guest(s)