Skip to content

Conversation

@odow
Copy link
Member

@odow odow commented Jun 10, 2025

Part of #105
Alternative to #107

I'll comment in-line.

yI, yN = zeros(n), zeros(n)
δ = sense == MOI.MIN_SENSE ? -1 : 1
# This tolerance is really important!
δ = 1.0
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this tolerance arbitrary? Why 1.0?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since these algorithms target integer programs, the e-constraints enforces f_i(x) < u_i and the bound are integer as well.

end
_, Y = _compute_point(model, variables, f_i)
yN[i] = Y
yN[i] = Y + δ
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the +1 (now + δ) was needed because we have a separate constraint that f_i <= u - δ. So the box bounds need to account for that?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was a +1 here because the \delta was for e-constraints. Having +1 makes it consistent with KS and DR. Original algorithm uses some big M.

@codecov
Copy link

codecov bot commented Jun 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.78%. Comparing base (dabce8d) to head (35918ac).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #108      +/-   ##
==========================================
- Coverage   98.78%   98.78%   -0.01%     
==========================================
  Files           9        9              
  Lines         991      990       -1     
==========================================
- Hits          979      978       -1     
  Misses         12       12              

☔ 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.

@odow odow merged commit be91d02 into master Jun 10, 2025
7 checks passed
@odow odow deleted the od/ks branch June 10, 2025 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants