Hello VEDA community! I've been having some troubles getting a UC to work regarding the imports of a commodity. The idea is that I want the imports of this commodity to be limited as a maximum of 34.37% of the total commodity that enters the system (i.e, the sum of the production in the region and the imports) from the starting to the ending year. I have done this as well for exports, establishing in their case a minimum export ratio, and they work perfectly fine, growing accordingly as the demand grows. However, the imports seem to be limited to the value of the BY and remain constant in all the years.
The BY values for both imports (3.26 MT) and exports (2.83 MT), which correspond these ratios, were set in the VT with an BNDACT~UP~2016 (the BY) and a BNDACT~LO~2016 respectively. Then, the following UC were set for both:
As you can see in the results, exports are working correctly (they grow as the demand of the IPH commodity does, maintaining the 29.86% ratio), but imports are not, and, instead, are stuck in the BY value.
I tried changing the UP limit to FX to see how the model would react and it reached the following infeasibility, which makes me question: where do the first and last variables in conflict come from? They should only be the limits for the BY, not 2050 or any other year, and while the EXPIPH one doesn't conflict with the UC, as it's a LO limit, the IMPIPH one clearly does and might be the source of this problem.
Number of equations in conflict: 2
fixed: EQE_COMBAL('ES',2050,'IPH',ANNUAL) = 8.30544
fixed: EQE_UCRTS('UC_MaxImp_IPH','ES',2050,ANNUAL) = 0
Number of variables in conflict: 4
lower: VAR_ACT('ES',2050,2050,'EXPIPH',ANNUAL) > 2.82942
lower: VAR_COMNET('ES',2050,'IPH',ANNUAL) > 0
fixed: VAR_UCRTS('UC_MaxImp_IPH','ES',2050,ANNUAL) = 0
upper: VAR_ACT('ES',2050,2050,'IMPIPH',ANNUAL) < 3.25592
Thank you all for your time!
The BY values for both imports (3.26 MT) and exports (2.83 MT), which correspond these ratios, were set in the VT with an BNDACT~UP~2016 (the BY) and a BNDACT~LO~2016 respectively. Then, the following UC were set for both:
As you can see in the results, exports are working correctly (they grow as the demand of the IPH commodity does, maintaining the 29.86% ratio), but imports are not, and, instead, are stuck in the BY value.
I tried changing the UP limit to FX to see how the model would react and it reached the following infeasibility, which makes me question: where do the first and last variables in conflict come from? They should only be the limits for the BY, not 2050 or any other year, and while the EXPIPH one doesn't conflict with the UC, as it's a LO limit, the IMPIPH one clearly does and might be the source of this problem.
Number of equations in conflict: 2
fixed: EQE_COMBAL('ES',2050,'IPH',ANNUAL) = 8.30544
fixed: EQE_UCRTS('UC_MaxImp_IPH','ES',2050,ANNUAL) = 0
Number of variables in conflict: 4
lower: VAR_ACT('ES',2050,2050,'EXPIPH',ANNUAL) > 2.82942
lower: VAR_COMNET('ES',2050,'IPH',ANNUAL) > 0
fixed: VAR_UCRTS('UC_MaxImp_IPH','ES',2050,ANNUAL) = 0
upper: VAR_ACT('ES',2050,2050,'IMPIPH',ANNUAL) < 3.25592
Thank you all for your time!