Skip to content

Certify simplex optimality only from a refactorized basis - #3195

Closed
EamonHetherton wants to merge 1 commit into
ERGO-Code:latestfrom
EamonHetherton:issue-3194
Closed

Certify simplex optimality only from a refactorized basis#3195
EamonHetherton wants to merge 1 commit into
ERGO-Code:latestfrom
EamonHetherton:issue-3194

Conversation

@EamonHetherton

Copy link
Copy Markdown

Fixes #3194.

When dual or primal simplex concludes optimality at a rebuild whose factor still carries updates, force a refactorization and reassess instead of certifying. On the LP of #3194 the values computed through the update chain are wrong by 91.81 in the objective while showing no infeasibility; the same basis refactorized yields the correct solution.

🤖 Generated with Claude Code

When dual or primal simplex concludes optimality at a rebuild whose factor
still carries updates, force a refactorization and reassess instead of
certifying. Values recomputed through a long update chain can be wrong
without creating any visible infeasibility: on the reproducer LP, a warm
start from an accepted alien basis reached the optimal basis but returned
an objective 91.81 above the optimum, reporting Optimal with zero measured
infeasibilities, because the final primal values came through a factor
carrying 266 updates. The same basis refactorized yields the correct
values, which is what the certification path now guarantees.

Fixes ERGO-Code#3194

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@jajhall

jajhall commented Aug 3, 2026

Copy link
Copy Markdown
Member

I'll look at #3194 in due course, but the proposed certification of simplex optimality only from a refactorized basis hasn't been necessary previously, and would be a performance hit

@jajhall jajhall closed this Aug 3, 2026
@codecov

codecov Bot commented Aug 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.96%. Comparing base (187c624) to head (9ace1e4).
⚠️ Report is 127 commits behind head on latest.

Additional details and impacted files
@@            Coverage Diff             @@
##           latest    #3195      +/-   ##
==========================================
+ Coverage   72.92%   72.96%   +0.04%     
==========================================
  Files         436      436              
  Lines      106038   106099      +61     
  Branches    17071    17081      +10     
==========================================
+ Hits        77329    77419      +90     
+ Misses      28433    28403      -30     
- Partials      276      277       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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