I have several problems but I think they are related to each other. For all my constraints I get the warning “The index “i” already has a scope” and I also get this warning when I want to enter my data. Also when I want to specify the objective for my Mathematical Program I get the warning: “Expecting a scalar identifier (no free indices)”. I’ve added pictures of one of my constraints, the warning from the Mathematical Program and my Set where I believe the problem might be with the index i. But I don’t really know how to fix it so if someone could help me I would be very grateful.
![](https://uploads-eu-west-1.insided.com/aimms-en/attachment/14fba6ed-526f-46af-bc66-ededca1587af.jpg)
![](https://uploads-eu-west-1.insided.com/aimms-en/attachment/17798009-8dbb-428e-a51b-982d8705db39.jpg)
![](https://uploads-eu-west-1.insided.com/aimms-en/attachment/05bc9fda-3abd-457e-a59c-12e9a5d0a82f.jpg)
Best answer by deannezhang
View original