Skip to content

Branch and Price Constraint Handler #580

@thksid

Description

@thksid

Hi guys, I had a quick question on implementing branch and price using pySCIPOpt. The issue #395 was very helpful in explaining how to implement branch and price in pySCIPOpt.

My pricer and branch rule both seem to work properly. My only issue is with the constraint handler. From what I understand, after the branching is done (i.e. create child constraint nodes), the model should enter one of the child nodes and go to the "consactive" method of the constraint handler. However, this does not happen for me. After my branching, the model goes back to the pricer. If I check "self.model.data['branchingCons']", I notice that the branching constraints are added but none of the constraints are active (I check this using the .isActive() method).

How can I ensure that the model goes to the constraint handler after the branching is done?

-Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions