Originally posted by: SystemAdmin
[shadi said:]
Dear Katai,
i think that the algorithm that i suggested never terminate, i started to implement the reduced cost critirion, i understand the general concept, but i have new questions again:
as far as I understood i have first to convert the integer master model to linear master model, then i can use the primal variable values and reduced costs for every variable and the dual variable values and slack values for the every constraint which come with the LP solution,
1. how to get this values from the master model in order to be used in the slave model?????
2. how to convert the master model to linear? just by converting all discrete variables to continuous, i tried this option but i see that the model is still integer (the pair array gives 0 and 1 only).
3. the formulas that you suggested me to calculate the reduced cost is:
(cNew - sum(dualvectorI*aINew)
where:cNew is the coefficient in the goal function for the new column,
aINew is a coefficient for the ith constraint for the new column,
and dualvector is the dual vector of the actual solution).
[list]
[li] what do you mean goal function for the new column, the model which find new column is a cp model how to calculate the coefficient in the goal function ?[/li]
[li]can you give me an example how to calculate the reduced cost![/li]
[/list]
thanks in advanced
Kshieboun Shadi
#DecisionOptimization#OPLusingCPOptimizer