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

Adding parameters to allow more fine-grained control of cut generation #145

Merged
merged 9 commits into from
Nov 24, 2024

Conversation

tkralphs
Copy link
Member

No description provided.

@@ -420,6 +427,7 @@ MibSBilevel::checkBilevelFeasibility(bool isRoot)
}else{
startTimeVF = model_->broker_->subTreeTimer().getTime();
lSolver->branchAndBound();
lSolver->writeLp("water");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a typo, shouldn't this be commented out?

(ISICGenStrategy == MibSIDICGenStrategyLInt ||
ISICGenStrategy == MibSIDICGenStrategyAlways ||
(ISICGenStrategy == MibSIDICGenStrategyAlwaysRoot &&
localModel_->activeNode_->getDepth() == 0))))){
Copy link

@febattista febattista Oct 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't make sense out of this straightforwardly. Here the code should decide whether to undertake the generation of an IDIC, but is checking for the bilevel free set type for ISIC and whether an improving solution is available or not. Moreover, I might be wrong but I guess here ISICGenStrategy should be replaced with IDICGenStrategy.

ISICGenStrategy == MibSIDICGenStrategyAlways ||
(ISICGenStrategy == MibSIDICGenStrategyAlwaysRoot &&
localModel_->activeNode_->getDepth() == 0))))){
cutType = MibSIntersectionCutImprovingSolution;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similarly as above, I guess MibSIDICGenStrategyYInt, MibSIDICGenStrategyAlways and MibSIDICGenStrategyAlwaysRoot should be replaced with MibSISICGenStrategyYInt, MibSISICGenStrategyAlways and MibSISICGenStrategyAlwaysRoot, respectively.

@tkralphs tkralphs merged commit 51971bf into stable/1.2 Nov 24, 2024
10 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants