Skip to content

Fix error in ReversePropagationGuidedNeighborhood - #1239

Merged
cprudhom merged 1 commit into
developfrom
fix_rpg-lns
Aug 31, 2026
Merged

cprudhom merged 1 commit into
developfrom
fix_rpg-lns

Conversation

@cprudhom

Copy link
Copy Markdown
Member

The fix wraps the propagation call in a try-catch block within the update() method.
When freezing a variable to its solution value and propagating, a contradiction can occur (e.g., due to a cut on the objective function invalidating that value).
The try-catch silently handles this, allowing the algorithm to continue processing remaining variables. The variable is still removed from the fragment (fragment.clear(id) executes afterward), ensuring the fragment is properly adjusted when such contradictions arise.
Therefore, if an exception is raised, it will be raised once the variables have actually been set, and not before.

This PR fixes the remaining bug in #1238

  • update Javadoc

@cprudhom cprudhom added this to the 6.0.2 milestone Aug 31, 2026
@cprudhom cprudhom self-assigned this Aug 31, 2026
@cprudhom cprudhom added the bug label Aug 31, 2026
@mergify

mergify Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@cprudhom
cprudhom merged commit c180165 into develop Aug 31, 2026
22 checks passed
@cprudhom
cprudhom deleted the fix_rpg-lns branch August 31, 2026 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants