I want to get the dual values of extreme points when the submodel is infeasible but when the written code reaches the "
fksvalues[k] = fksConstraint.Get(GRB.DoubleAttr.FarkasDual);" show the error code that "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
I am trying to use benders decomposition to solve a problem. As there may be some modelling errors in the dual form of subproblem I decided to use the farkas for the subproblem when it is infeasible so its dual is infinite. But unfortunately I cant find any example code in C# or C++ that uses the farkas dual and proof.
Inaddition if iI am not wrong the FarkasDual provides the values of constraint while the dual model is infinite and so I can use these values as the variable values of dual subproblem's variables. So I what the FarkasProof provides ???
Thanks for your attention...
ATA