Originally posted by: 88Simon88
Hello everybody,
I want to read some data from Excel, but the index is defined by decision variables. I have:
TM[1..N][1..3] : this is the data which I have in the excel
Now, instead of the first index, I want to find that value by a summation like below:
sum (p in ppp) (Yp * p);
Y is binary variable and p is an integer, so the outcome is an integer variable, but when I write the array as below, I face with an error "Indexing the array "TM" with the type dexpr int is not supported by this algorithm."
Could you please help me in this regard?
Thanks in advance for your help.
#DecisionOptimization#OPLusingCPLEXOptimizer