Originally posted by: SystemAdmin
[shadi said:]
hi,
i have the following declaration in my opl model:
[b]range Trips = 0..card(RawTimetable)+card(Location)-1;
int Origin[trips] = ...; [/b]
when i try to assign this variable from my c# code by implementing the CustomOplDataSource class, it give me an error (variable dosnt exist),but when i change the declaration as following:
int [b]Origin[0..81] = ...;[/b] it works, my problem is how i can make it dynamic, i mean to declare the range by using a variable ([0..x]) and not a number ([0..81])???
thank you
#ConstraintProgramming-General#DecisionOptimization