Repository navigation
fix(fix_var): add assert_fixable call in fix_var function to avoid no… - #80
Conversation
…n coherent variable fixing
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughFixing APIs now reject invalid values before applying fixed bounds. Validation covers finiteness, integer domains, declared bounds, and semicontinuity gaps. Tests cover rejected and accepted values across integer, binary, semicontinuous, and semi-integer variables. ChangesFix-value validation
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to The change rejects invalid variable-fixing values before state is modified; no actionable merge-blocking risk remains after normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Title checkExplanation The title clearly identifies the main change: adding an Full details: Description checkExplanation The description explains the purpose, lists the invalid values that are rejected, identifies the affected code paths, and mentions the added tests. It omits the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Great, you are now counted as a contributor! Thank you! |
Description
Add an assert function (
assert_fixable) to tell if a variable is fixable. Prevent the user from :Called in
Model.fix_varandVar.fixAdd tests
crates/oximo-core/tests/model.rsChecklist
cargo fmtandcargo clippyto ensure code quality