I'm trying to conditionalize the following constraint:
Code: Select all
INVE.UP("windOn","FRA")$(card(r)<=2) =50;
r is a set defined in the set up of the model:
Code: Select all
$IFi %REGIONS%=='2R' $set r FRA,GER
Code: Select all
$IFi %REGIONS%=='1R' $set r GER
Code: Select all
3243 INVE.UP("windOn","FRA")$(card(r)<=2) =50;
**** $170
**** LINE 21 INCLUDE C:\Users\Leo\Desktop\Model Test - Endogenous Allocation - 06172019 1006 incl. countries incl. agg share - WIP\scen\y_windshare.gms
**** LINE 2541 INPUT C:\Users\Leo\Desktop\Model Test - Endogenous Allocation - 06172019 1006 incl. countries incl. agg share - WIP\EMMA.gms
**** 170 Domain violation for element
Best,
Leo