Index by number


I would like to index by number for the code provided below, but I get the warning that numeric values can not be used for indexing. Is it possible in AIMMS to do this?



Best answer by gdiepen 8 June 2021, 14:47

View original

3 replies


I figured out that the numeric values should be within quotations marks, but I do now have a similar problem. How do I index on the value of Job j that depends on value specified by the parameter ProductSKU(j).


Userlevel 5
Badge +7

If you make the set that the index belongs to a subset of Integers, you will not have to use the single quotes around it.


If you don’t do that, you will have to refer to the element by enclosing it in single quotes


Thank you for your reply @gdiepen, it is now working properly :).




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

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