Originally posted by: titino
Hello! I created an OPL model but I have any problems. I have a vector representing the demand values for each period t, which can have positive or zero values . The model will be launched only on the positive values and in particular from the third positive value.
For the second positive value I calculate Z_t_1, R_t_1, D_t_1 and tot_t_1 which are necessary for the resolution of the model from the third positive value. Based on the output values of the model each time you launch the next. When trying to evaluate D_t==(1-(x1/2))*(Z_t/R_t), the term Z_t/R_t evaluates to 0/0. Why are not calculated the term D_t, Z_t e R_t? Apparently the second execute block has no effect and I have the error "CPLEX(default) cannot extract expression: ((x1 / 2)*(-1)+1)*(0 / 0) == 0."
I attach below the model I created in txt files.
#DecisionOptimization#OPLusingCPLEXOptimizer