Topic
No replies
SystemAdmin
SystemAdmin
1883 Posts
ACCEPTED ANSWER

Pinned topic Change range interval from C#

‏2012-11-13T11:13:53Z |
Hello,

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!

Radu