Originally posted by: SystemAdmin
[BBstar said:]
Hello all,
I'm a new user of OPL 6.0 and I try to run a iterated stochastic model for inventory replenishment.
Due to the fact that generating the model uses more time than resolving it, I need to update the current stock level without regenerationg the dataset.
I have just seen in Help that it is possible to use "API of ILOG Script extensions for OPL".
Do you have any other idea ?
In the submodel :
float demand[Articles][TimePeriod] = ...;
Here is thre main model :
main {
...
for(var t = 1; t <= 52;t++) {<br />opl.Inv = opl.Inv + opl.Qty - opl.demand[:][t];
}
...}
There is a "sparse error" in opl.demand[:][t] , can you help me to solve this syntax issue ?
Thanks a lot,
--
BBstar
#DecisionOptimization#OPLusingCPLEXOptimizer