Originally posted by: SixtineB
I have coded a column generation procedure with cplex in c++ for solving a vehicle routing problem but at the first iteration, when I get the optimal solution for the primal, everything is fine (objective value = -1697, as expected) but dual variables obtained with cplex.getDuals are all equal to zero and I don't know the reason why.
These values should be non-zero (we should have the sum of the dual variables equal to -1697).
Any ideas for where it can come from? How can I fix this?
You will find enclosed the data file as well as the source file (.cpp) I used to solve only the first iteration (I got inspiration from the ilodiet.cpp file).
Thank you for your explanations and your solution as quickly as possible. I am stuck in this problem since a week.
#CPLEXOptimizers#DecisionOptimization