Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix type instability in set_objective_coefficient #3590

Merged
merged 5 commits into from
Nov 29, 2023
Merged

Conversation

joaquimg
Copy link
Member

This comparison is a call to isa that was giving me a performance hit on set_objective_coefficient.

Copy link

codecov bot commented Nov 29, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (35e7713) 98.26% compared to head (0ca3475) 98.39%.
Report is 25 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3590      +/-   ##
==========================================
+ Coverage   98.26%   98.39%   +0.13%     
==========================================
  Files          37       38       +1     
  Lines        5580     5675      +95     
==========================================
+ Hits         5483     5584     +101     
+ Misses         97       91       -6     

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

@odow
Copy link
Member

odow commented Nov 29, 2023

Looks like this goes back as far as #2008.

We could just fallback to MOI.modify for all objective types? I don't see why we need to throw the unsupported error?

@odow odow merged commit 3cbb874 into master Nov 29, 2023
12 checks passed
@odow odow deleted the jg/setobjcoef branch November 29, 2023 22:31
@odow odow mentioned this pull request Nov 29, 2023
17 tasks
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.

2 participants