Solved

Index scope not specified

  • 7 November 2020
  • 3 replies
  • 41 views

Dear community,

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, 

Stijn

icon

Best answer by Gertjan 7 November 2020, 18:00

Hi @StijnCremers 

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,

 

 

 

View original

3 replies

 

Userlevel 6

Hi @StijnCremers 

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,

 

 

 

This makes it clear now, thanks a lot!

Reply


Didn't find what you were looking for? Try searching on our documentation pages:

AIMMS Developer & PRO | AIMMS How-To | AIMMS SC Navigator