Skip to main content
Solved

Error message: "the scope of index "m" has not been specified"

  • April 29, 2021
  • 2 replies
  • 202 views

Forum|alt.badge.img

Hello everyone,

I have been using AIMMS for a short time and am still a beginner.

When I encode my objective function, the following error message appears : “the scope of index “m” has not been specified”.

I have tried several ways to solve this problem but none worked.

Has anyone experienced this problem before and can help me? I would be very grateful!

Best answer by mohansx

@Anneco 

 

There seems to parenthesis mismatch in the sum operators in your objective function definition. 

 

sum(i, m, t), (coutdeprod*Qaprod(i,m,t) + sum(i,t), ((coutdesetup*setup(i,t)) + (coutinventaire*Inventaire(i,t)))

 

must be

 

sum[(i, m, t), (coutdeprod*Qaprod(i,m,t)]  +  sum[(i,t), ((coutdesetup*setup(i,t)) + (coutinventaire*Inventaire(i,t)))]

2 replies

mohansx
Forum|alt.badge.img+5
  • Former AIMMSian
  • 223 replies
  • Answer
  • April 29, 2021

@Anneco 

 

There seems to parenthesis mismatch in the sum operators in your objective function definition. 

 

sum(i, m, t), (coutdeprod*Qaprod(i,m,t) + sum(i,t), ((coutdesetup*setup(i,t)) + (coutinventaire*Inventaire(i,t)))

 

must be

 

sum[(i, m, t), (coutdeprod*Qaprod(i,m,t)]  +  sum[(i,t), ((coutdesetup*setup(i,t)) + (coutinventaire*Inventaire(i,t)))]


Forum|alt.badge.img
  • Author
  • Explorer
  • 2 replies
  • April 30, 2021

@mohansx  Thanks a lot !



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

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