I use an OPLDataElements variable "dataElem" in C# code which includes an integer range "A" and an integer variable "nOpt". I use "dataElem" as a data source for a model which is run multiple times and, therefore, it is necessary to change how large "A" is. In the OPL model, "A" is defined as "range A = 1..nOpt". However, when I change the value of "nOpt" from C#, the range "A" doesn't get updated. Is there any way to change the upper bound of "A" from C#?
Thanks for your help!