Skip to content

telco_network_recovery: solver fallback handles non-OPTIMAL status#72

Draft
cafzal wants to merge 1 commit into
mainfrom
telco-template-learnings
Draft

telco_network_recovery: solver fallback handles non-OPTIMAL status#72
cafzal wants to merge 1 commit into
mainfrom
telco-template-learnings

Conversation

@cafzal
Copy link
Copy Markdown
Collaborator

@cafzal cafzal commented May 20, 2026

Summary

Follow-up to #71. The Gurobi→HiGHS fallback added in #71 only catches raised exceptions — but a non-OPTIMAL solve (e.g. a transient OTHER_ERROR on a cold Gurobi call) returns a termination status without raising, so the fallback never fired and the run would fail downstream.

This adds a post-solve check: if the solver was Gurobi and solve_info().termination_status != "OPTIMAL", retry on HiGHS so the chain still produces a plan.

Surfaced by paste-testing the same chain in the internal summit demo, where a cold Gurobi call returned OTHER_ERROR and the exception-only fallback let it through.

Test plan

  • Run telco_network_recovery.py — happy path: Gurobi solves OPTIMAL, no retry (unchanged behavior).
  • Simulate a non-OPTIMAL Gurobi return — confirm the HiGHS retry fires and the plan is produced.

The Gurobi→HiGHS fallback only caught raised exceptions. A non-OPTIMAL
solve (e.g. a transient OTHER_ERROR on a cold Gurobi call) returns a
termination status without raising, so the fallback never fired. Now
also checks solve_info().termination_status after the solve and retries
on HiGHS. Surfaced by paste-testing the same chain in the summit demo.
@github-actions
Copy link
Copy Markdown

The docs preview for this pull request has been deployed to Vercel!

✅ Preview: https://relationalai-docs-2rn2w4acu-relationalai.vercel.app/build/templates
🔍 Inspect: https://vercel.com/relationalai/relationalai-docs/BuSpxQomhjD2Q4L8qz79aGBBixCW

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.

1 participant