Veda2.0 Released!


Unexpected Termination of Run
#1
Hi all,
I currently have an issue with constraining MIN* processes. I'm trying to constrain MIN* processes in China - using the excel sheet attached.

My current versions of VEDA FE/BE/TIMES Source Code are:
FE: 4.5.812
BE: 4.9.2009
My TIMES Source Code is v4.27


When attempting to run this, I get the errror: Unexpected Termination of Run! When I remove the MIN* constraints, then the model solves as normal. I attach the .LST file as well, which appears to confirm that the problem is the MIN* processes - the .LST file keeps referring to them over and over.


It also includes these error messages:


Error Messages


  1  Real number expected
148  Dimension different - The symbol is referenced with more/less
        indices as declared
170  Domain violation for element
334  Illegal data following a data element - rest ignored
338  Unique element expected - symbol was not an element
        and the following text will be skipped until a proper
        symbol is found to recover. Remember that an UNQUOTED
        element has to start with a letter or digit
        followed by letters, digits, '+', '-' or '_'. The length
        is limited to 63 characters. The following words are
        reserved (starting symbols of a GAMS statement) and cannot
        be used for UNQUOTED set elements:
    
           ABORT, ACRONYM(S), ALIAS, BINARY, DISPLAY, ELSE
           EQUATION(S), EXECUTE, FILE(S), FOR, FREE, IF, INTEGER, LOOP
           MODEL(S), NEGATIVE, OPTION(S), PARAMETER(S)
           POSITIVE, PROCEDURE(S), PUT, PUTCLEAR, PUTCLOSE, PUTHD
           PUTPAGE, PUTTL, SCALAR(S), SEMICONT, SET(S), SOS1, SOS2
           TABLE, VARIABLE(S), WHILE
    
        QUOTED elements can contain any character. Single and
        double quotes can be used (starting and ending quote have
        to match).
342  Illegal suffix syntax - has to start with a letter
343  Abort triggered by above statement



Does anyone have any idea what is going wrong here? Have I defined the constraints incorrectly in my Excel sheets?


All the best,

Neil Grant
PhD Student
Imperial College London


Attached Files
.xlsx   Error_Example.xlsx (Size: 18.35 KB / Downloads: 10)
.txt   LSTfile.txt (Size: 190.71 KB / Downloads: 4)
Reply
#2
UC_IRE needs Imp-Exp qualifiers too. there are veda parameters UC_IRE-I and UC_IRE-E to make this simpler.

using UC_IRE-I instead of UC_IRE should solve this problem.
Reply
#3
In addition to the obvious constraint specification error pointed out by Amit, you also seem to have "substance" errors, assuming that your descriptions are supposed to be valid.  China has notable energy imports, and some exports too, but you seem to be only taking into account so-called "mining" processes. Yet, your descriptions refer to "TPES" shares, and "Caps total primary energy consumption to 165EJ".  

However, if you exclude imports and exports, your constraints are not about TPES, but only domestic extraction.   Rolleyes
Reply
#4
Hi Amit and Antti,
Thanks for both your rapid responses and patience with my questions! It's really appreciated.

Antti - I understand what you're saying and hadn't thought of that. To cover all primary energy, I would need to add my trade flows to the processes being constrained e.g. TU_COAHCO_AUS_CHI_01 and TU_COAHCO_CHI_AUS_01 (trade in hard coal between Australia and China in both directions), and the same for all other traded resources. 

Is that correct? My understanding is that I wouldn't want to constrain IMPNRGZ, as it's a dummy process which impacts more than just primary energy flows.

Best wishes,
Neil
Reply
#5
and you should use UC_IRE-I for inflows and UC_IRE-E for outflows (with -1 as the coefficient for outflows)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)