The variable to be optimzed should be a free scalar variable

  • 9 June 2021
  • 1 reply


I currently face the issue that the variable TotalCost needs to be a free scalar variable. The range of the variable is set to free and I don't have specified the index domain anymore. What can be the reason for this error?


1 reply

Userlevel 5
Badge +7

Not really sure what is going on there….


Can you also show the contents of the math program identifier as well as the procedure that you use to solve the math program?

Or did the variable have an index domain before and you removed it maybe? In that case, can you see what happens if you recompile the model with F5?


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

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