I am trying to use dual values to create Bender cuts, but the dual values that I get seems not to be correct. I am solving a LP problem, and as primal has an optimal answer, there shouldn't be duality gap (as I know from LP), but when I use dual values to recalculate objective values, I will get a huge gap. I tried different solvers like gurobi, cplex, .., and I have got different answers but all doesnt look like correct (primal is alwyays feasible and has optimal answer). I don't know YALMIP change anything for calculating dual values or there is any special structure to get dual values for constraints. I used dual function to get dual values. Anyone could apply BD in YALMIP?