Repository navigation
Link selected values in induced linearity reformulation - #4117
Open
Kiril1Shevtsov wants to merge 1 commit into
Open
Kiril1Shevtsov wants to merge 1 commit into
Kiril1Shevtsov wants to merge 1 commit into
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Fix a correctness issue in the GDP transformation where a discrete value could be selected without properly constraining the corresponding original variable.
The previous transformation enforced the discrete selection but did not link that selection to the original variable. As a result, the transformed model could admit solutions that did not satisfy the intended relationship.
The patch adds the missing linking constraint and allows inactive variable copies to take the value zero.
Motivation and context
A GDP reformulation should preserve the constraints represented by the original model. Selecting a discrete value is not sufficient if the original variable remains free to take a different value.
The missing link could therefore produce solutions that were feasible for the transformed formulation but inconsistent with the original model.
The correction enforces the relationship between the selected value and the original variable while allowing inactive copies to remain at zero.
Testing
Validation included:
The GLPK-dependent cases were not executed, so these results do not establish solver-level correctness for those cases.
AI Disclosure
ChatGPT was used to translate this PR description into English, review the code for potential issues, suggest fixes that I subsequently verified myself, assist with writing tests, and help assess their correctness.