Originally posted by: HM62_Xingquan_Zuo
When I use the column to generate the solution to the main problem, the solveFixed() is used before the getDual() is called. However, the value of the dual variable corresponding to all the constraint variables is zero. The solution to the original problem is correct. Why does this happen?
void MasterProblem::printDuals() {
for (int i = 0; i<lambda.getSize(); i++)
cout << "Lambda[" << i << "] = " << cplex.getDual(lambda[i]) << endl;
for (int i = 0; i<mu.getSize(); i++)
cout << "mu[" << i << "] = " << cplex.getDual(mu[i]) << endl;
}
#CPLEXOptimizers#DecisionOptimization