Originally posted by: SystemAdmin
Using OPL script, I generate 100 problems and solve them. After each solve, I need to get some of the decision variable values at optimality. I use the following code:
if (g_cplex.solve()) {
for (i=1; i<= N_Local; i++){
for (l=1; l<= T_local; l++){
xval= g_cplex.getValue(X[i][l]);
}
}
}
and get the following error:
scripting runtime error: unknown property 'getValue'
What is wrong with my use of getValue? I am using IBM ILOG Optimization Studio (cplex 12.2) as a side note.
Thank you.
#DecisionOptimization#OPLusingCPLEXOptimizer