OSeMOSYS / OSeMOSYS_GNU_MathProg

The GNU MathProg implementation of OSeMOSYS
Apache License 2.0
9 stars 14 forks source link

Balancing constraint EBa10 (trade) generates constraints in single region model #54

Closed willu47 closed 3 years ago

willu47 commented 3 years ago

Constraint EBa10 is active in long, short and fast versions of the code.

s.t. EBa10_EnergyBalanceEachTS4
    {r in REGION, rr in REGION, l in TIMESLICE, f in FUEL, y in YEAR}: 
    Trade[r,rr,l,f,y] = -Trade[rr,r,l,f,y];

In models with single regions, this constraint will still be generated even though no trade is possible.

I recommend that the TradeRoute parameter be constrained to binary and used to identify whether constraint EBa10 should be generated.

willu47 commented 3 years ago

Follow up question - are TradeRoutes permitted between the same region e.g. where r = rr?