Closed abb-omidi closed 1 month ago
Hi @abb-omidi! You're absolutely welcome! it was a combined effort with a bunch of people (especially @Joao-Dionisio). We're glad it's helping already make Banch and Price more accessible.
However, I think your inquiry is mostly about another problem than the one in the exercises and I'd happily help but you could instead send me an email (you can find it on my profile) and please attach any code and relevant info if you can (maybe mentioning the parts you changed from the base code). I'll close this issue for now :)
Dear @mmghannam,
Many thanks for your comments. I will update my question as you suggested and send it to your email.
Best regards
Dear @mmghannam,
First, thank you so much for bringing such a useful example of
BnP
byPySCIPOpt
on our eyes to see many of the hidden DNA of the SCIP solver. It is truly helpful to see how the column generation procedure can be implemented in PySCIPOpt.I am currently working on a scheduling problem that is similar to the bin-packing formulation alongside additional constraints. One of the modeling constraints is the precedence constraint. It is in the following form:
$$ \sum{s} s . x{j,s} \leq \sum{s} s . x{k,s} \quad \forall (j,k) \in Arc_{j,k} $$
I would like to add this constraint to the subproblem already based on the machine block decomposition scheme. I reformulate that as a general precedence form like $ x{j} /leq x{k} $. In the first step, I am trying to solve the problem by column generation and in the root node. Since I solved the subproblem as a standard knapsack modeling like you wrote in the source code. It seems the problem works well without throwing any issues and the result is reasonable.
The issue was raised when I tried to solve that in the
BnP
scheme and the solver returned an undefined error. The solver log shows something like this:It is somewhat strange that the problem can be solved in the root node, but in this case, it produces this error.
(If you need more information please, let me know) All the best