I just rolled into AIMMS, so the application is very new to me.
I came across a problem with implementing constraints into my model. You can see the specific constraint and my model in the attached illustrations.
After filling in the definition for the constraint, an error popped up, saying "The scope of index "cred" has not been specified.", where "cred" is the index domain for the variable "CarbonCredits".
I already tried to re-implement the whole model, change the index and i messed around with different brackets in different positions. Nonetheless, i kept getting the same error.
I would appreciate it if someone could help me out. A picture (of an example) on how the definition of this constraint should look like would be phenomenal as well.
Thanks in advance,
Best answer by Gertjan
You are having a constraint for all ‘co2’. The variable CarbonCredits specified over index ‘cred’ is not referenced in either the index of the constraint or somehow in a function over ‘cred’ in the constraint (like you do a sum of EnergyQuantity over ‘i’ to eliminate ‘i’). This is why you get this warning.
Hope this helps,