I want to model a variable that only can be applied for certaint set index. For example:
Variable NPGMax { IndexDomain: (i,g,ng)|ord(i) = 1 or ord(i) = 3 or ord(i) = 6; }
where the variable NPGMax is only applied for index 1, 3, or 6 of set bus with index i.
Is it possibel to do it dynamiclly where the value 1,3, or 6 can be assigned as an input parameter?
Thank you very much.
Page 1 / 1
Hi @rahmat ,
I recommend you to declare a binary parameter indexed over your set, say BP_SelectedVariables(i), and apply this parameter in the domain condition of your variable:
Based on your reply, the approach can be used to substitute the compound set (that no longer supported by AIMMS). For example:
@rahmat , yes. The binary parameter acts as a condition to generate the valid tuples. NewGenBus(Bus1, GenTech1) = 1 indicates that NewGen is possible with i = Bus1 and g = GenTech1
Based on your reply, the approach can be used to substitute the compound set (that no longer supported by AIMMS). For example:
@rahmat , yes. The binary parameter acts as a condition to generate the valid tuples. NewGenBus(Bus1, GenTech1) = 1 indicates that NewGen is possible with i = Bus1 and g = GenTech1
@mohansx, thanks a lot...
Reply
Sign up
Already have an account? Login Please use your business or academic e-mail address to register