Skip to content

Fix #701: Add find_all_satisfying tests and register all canonical examples#702

Merged
GiggleLiu merged 4 commits intomainfrom
fix-701-find-all-satisfying-and-canonical-examples
Mar 19, 2026
Merged

Fix #701: Add find_all_satisfying tests and register all canonical examples#702
GiggleLiu merged 4 commits intomainfrom
fix-701-find-all-satisfying-and-canonical-examples

Conversation

@isPANN
Copy link
Copy Markdown
Collaborator

@isPANN isPANN commented Mar 19, 2026

Summary

  • Add find_all_satisfying + empty tests for 5 satisfaction models that were missing them: SequencingWithinIntervals, ShortestCommonSupersequence, MultiprocessorScheduling, FlowShopScheduling, RuralPostman
  • Register canonical_model_example_specs for 7 models that were missing them: BinPacking, GraphPartitioning, Knapsack, MinimumFeedbackArcSet, OptimalLinearArrangement, SubgraphIsomorphism, SubsetSum (all 70 problem types now registered)
  • Convert 9 paper problem-def entries from hardcoded to data-driven load-model-example
  • Update canonical examples for SequencingWithinIntervals and ShortestCommonSupersequence to use natural instances matching their issues

Test plan

  • make check passes (fmt + clippy + all tests)
  • make paper compiles successfully
  • model_specs_are_self_consistent validates all configs
  • model_specs_are_optimal confirms optimality via solver
  • All find_all_satisfying tests verify exact solution counts with solutions.contains(canonical_config)

Closes #701

🤖 Generated with Claude Code

isPANN and others added 4 commits March 19, 2026 18:24
…amples

- Add find_all_satisfying + empty tests for 5 satisfaction models:
  SequencingWithinIntervals (41 solutions), ShortestCommonSupersequence (42),
  MultiprocessorScheduling (2), FlowShopScheduling (99), RuralPostman (1)
- Update canonical examples for SequencingWithinIntervals and
  ShortestCommonSupersequence to use natural instances matching their issues
- Register canonical_model_example_specs for 7 missing models: BinPacking,
  GraphPartitioning, Knapsack, MinimumFeedbackArcSet,
  OptimalLinearArrangement, SubgraphIsomorphism, SubsetSum (70/70 now)
- Convert all 7 paper entries from hardcoded to data-driven load-model-example

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…eduling.rs

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…sfying-and-canonical-examples

# Conflicts:
#	src/models/mod.rs
GraphPartitioning/SimpleGraph now has a canonical example, so switch
the test to MaximumIndependentSet/KingsSubgraph/One which does not.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.40%. Comparing base (4635179) to head (4f36486).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #702      +/-   ##
==========================================
+ Coverage   97.38%   97.40%   +0.01%     
==========================================
  Files         341      341              
  Lines       43659    43884     +225     
==========================================
+ Hits        42519    42744     +225     
  Misses       1140     1140              

☔ View full report in Codecov by Sentry.
📢 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.

@GiggleLiu GiggleLiu merged commit 72809d9 into main Mar 19, 2026
5 checks passed
@GiggleLiu GiggleLiu deleted the fix-701-find-all-satisfying-and-canonical-examples branch April 12, 2026 00:49
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.

5 satisfaction problems missing find_all_satisfying tests

2 participants