Originally posted by: SystemAdmin
I have used the following c++ code to access the value of Excess which was declared as dexpr in opl.
IloOplElement ExcessElement = opl.getElement("Excess");
IloNumExprArg ExcessExpr = ExcessElement.asNumExpr();
Excess = cplex.getValue(ExcessExpr);
However, I got an error message from these statements:
concert exception: ILoExtractable 826 IloNumVarI has not been extracted by Iloalgorithm ...
What did I do wrong? Suggestions please.
#CPLEXOptimizers#DecisionOptimization