Originally posted by: J5JK_chao_lei
Lately, I have been trying to get dual variable values, using
getDual() method, by solving a primal problem and then using the dual values to generate a cut to add into the model.
However, the cut generated this way seems not right by cutting the optimal solution out of feasible domain. Then I tried to formulate the dual of problem and use
getValue() method to get the "dual" information and this time, the cut functions well.
It seems that many values obtaining from
getDual() are "-0.0"s. Is that the source of the problem? If not, what reasons do you think can explain the error?
#CPLEXOptimizers#DecisionOptimization