Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Branching priorities #521

Closed
rrsadykov opened this issue May 4, 2021 · 5 comments · Fixed by #526
Closed

Branching priorities #521

rrsadykov opened this issue May 4, 2021 · 5 comments · Fixed by #526
Assignees
Labels
enhancement New feature or request

Comments

@rrsadykov
Copy link
Collaborator

In our problem we would need to give different branching priorities for different variables. I will be able to modify VarBranchingRule algorithm for that myself. However, I would need to retrieve the name of a variable (without indices), given by the user in JuMP. Is it possible now?

@rrsadykov rrsadykov added the enhancement New feature or request label May 4, 2021
@guimarqu
Copy link
Contributor

guimarqu commented May 4, 2021

It's not possible at the moment except if you extract it with a regex.
How the user defines the branching priorities ?

@rrsadykov
Copy link
Collaborator Author

rrsadykov commented May 4, 2021

Extracting with regex would be ok. Can you add such a method to MathProg?

For branching priorities, we should add field varname to VarBranchingRule (empty name would be branching on all variables as it is now). Then the user would add several VarBranchingRules to vector rules together with priorities to StrongBranching. As I remember, this branching algorithm already supports priorities. Probably StrongBranching should be renamed just to Branching.

@guimarqu
Copy link
Contributor

guimarqu commented May 10, 2021

Modelling part (@laradicp) :

@guimarqu
Copy link
Contributor

@rrsadykov May I let you do the changes in the branching algorithm and open a PR to merge into master ? I'll tag 0.3.9 just after.

@rrsadykov
Copy link
Collaborator Author

Implemented in pull request #528

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants