Originally posted by: NiuX-HNU
Hi
Both of the 1000 values are the same, for instance, 3e+4. They are not stored somewhere. I tried to find some useful information on the OPL reference manual yesterday, then I successfully used the internal data initialization as the following statements showed to solve my problem.
int B=...; //the amount of batteries
range battery=1..B; //the range of batteries
float gbmax[b in battery]=3e+4; //the maximum capacity of battery b
However, internal data initialization may has some pitfalls comparing to the internal data initialization as the OPL reference manual said. So I want know how to use external data initialization to express the same meanings as the internal data initialization does.
Thanks a lot for your reply
#DecisionOptimization#OPLusingCPLEXOptimizer