'Branching in Pyscipopt

Branching on t_x21 led to this error

[scip_branch.c:1061] ERROR: cannot branch on variable <t_x21> with fixed domain [-0,0]

So, my guess as to why this did not work is that during presolving, SCIP fixed this variable to be 0 and hence it throws an error if we try to branch on it? Is this correct? (Also, this error occured after a restart)

Link to scip_branch.c



Solution 1:[1]

Yeah, branching on a fixed variable does not make much sense. You should check the bounds before selecting a variable as a branching candidate, I suppose.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 mattmilten