-
Notifications
You must be signed in to change notification settings - Fork 239
Indicator Strengthening #1983
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
Merged
Merged
Indicator Strengthening #1983
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
19c19ac
activated capacity constraints presolve reduction
nguidotti c57c8a1
group cover cuts
nguidotti 9bb432f
enable the group cover cuts and activated capacity presolve by defaul…
nguidotti ed6e7ba
converted to activated capacity to a cut
nguidotti d3a7a2f
renamed variables/cuts/etc. to be closer to the textbook nomenclature.
nguidotti 01584e1
transform the cuts into presolve reductions
nguidotti 74e2f1f
simplified the code
nguidotti 2ef43c1
Merge branch 'main' into set-cover
nguidotti e69fcda
refactor presolve to use an object-oriented style. separated the two …
nguidotti 5a6e281
Merge remote-tracking branch 'origin/set-cover' into set-cover
nguidotti 3e2acda
addressed code rabbit
nguidotti 3a618d1
added hyper parameter and unit test. added additional comments.
nguidotti c170fdd
add more comments. tightened the formulation for implied indicator.
nguidotti 5cfad1d
add missing include
nguidotti File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
425 changes: 425 additions & 0 deletions
425
cpp/src/mip_heuristics/presolve/indicator_strengthening.cpp
Large diffs are not rendered by default.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
cpp/src/mip_heuristics/presolve/indicator_strengthening.hpp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| /* clang-format off */ | ||
| /* | ||
| * SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| */ | ||
| /* clang-format on */ | ||
|
|
||
| #pragma once | ||
|
|
||
| #if !defined(__clang__) | ||
| #pragma GCC diagnostic push | ||
| #pragma GCC diagnostic ignored "-Wstringop-overflow" // ignore boost error for pip wheel build | ||
| #pragma GCC diagnostic ignored "-Wnarrowing" | ||
| #endif | ||
| #include <papilo/Config.hpp> | ||
| #include <papilo/core/Problem.hpp> | ||
| #if !defined(__clang__) | ||
| #pragma GCC diagnostic pop | ||
| #endif | ||
|
|
||
| namespace cuopt::mathematical_optimization::mip { | ||
|
|
||
| // Adds an implied indicator row y <= sum_{g in D} z_g for every implication row | ||
| // y <= sum_{j in S} x_j whose members are bounded by indicators x_j <= z_g, and lifts every | ||
| // capacity row sum_{i in S} x_i - s <= K whose members share an indicator z into sum_{i in S} x_i - | ||
| // s <= K z. Both need an integral indicator, so this is for MIPs only. | ||
| template <typename i_t, typename f_t> | ||
| void strengthen_indicators(papilo::Problem<f_t>& problem); | ||
|
|
||
| } // namespace cuopt::mathematical_optimization::mip | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.