![](https://uploads-eu-west-1.insided.com/aimms-en/attachment/0192aa6d-afeb-413d-b1d7-f298011c38db.png)
![](https://uploads-eu-west-1.insided.com/aimms-en/attachment/e7245e3a-5509-42fa-ba87-4886c24311d6.png)
So, I have question. What’s the differences between these two type of declaration? and what is the condition to use each of it. Can someone explain to me?
So, I have question. What’s the differences between these two type of declaration? and what is the condition to use each of it. Can someone explain to me?
To me not really sure what your exact question is.
One screenshot shows the declaration of the identifier with a certain index domain with a restriction (i.e. only generate the variables for those combinations c,l,t,v for which the Demo_Lab(c,l) parameter is having a non-zero value.
The other screenshot is a constraint that uses the X variable in a summation, but only for those c,l combinations for which Demo_lab(c,l) is non-zero
Not sure what is your exact question!
The second screenshot suggests that X is a binary variable and it will be created when “Demo_lab(c,l)” is non-zero.
If your question is: Where to put index domain specifically? The answer is if you put it while defining the variables, it will be applicable to all the constraints where the ceratin variabls have been defined.
Already have an account? Login
Please use your business or academic e-mail address to register
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Didn't find what you were looking for? Try searching on our documentation pages: