Hi dears,
I am using column generation technique. I have a problem in my algorithm and to be sure that the objective function of the Pricing Problem is working, I need to access to the reduced cost of each column added in the Relaxed Master Problem before optimizing the model. The value of the objective function in Pricing Problem and the reduced cost must be the same. I follow this process:
1- Adding the column generated in Pricing Problem to Master Problem
2- Relaxing Master Problem
3- Returning the RC attribute of the added VAR to Master.
To return the RC, I use the the following part of code:
Master.relax().getVarByName(vname.str()).get(GRB_DoubleAttr_RC);
I get this error
Error code = 10005
var :: get
Can you help me about what I am doing wrong? Is there another attribute except "RC" that returns the reduced cost before optimizing the model?
The best,
hmd