Skip to content

Fix the size of active set and shadow set reported#281

Open
LJS42 wants to merge 3 commits into
ZIB-IOL:mainfrom
LJS42:assetcallback
Open

Fix the size of active set and shadow set reported#281
LJS42 wants to merge 3 commits into
ZIB-IOL:mainfrom
LJS42:assetcallback

Conversation

@LJS42

@LJS42 LJS42 commented Jan 28, 2026

Copy link
Copy Markdown
Contributor

The active set and shadow set sizes were being reported as 0 in example portfolio.jl.

@matbesancon

Copy link
Copy Markdown
Member

good catch!

@codecov

codecov Bot commented Jan 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.31%. Comparing base (ee5cc6c) to head (5c1c96b).
⚠️ Report is 120 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #281      +/-   ##
==========================================
- Coverage   86.23%   84.31%   -1.92%     
==========================================
  Files          17       22       +5     
  Lines        1482     2640    +1158     
==========================================
+ Hits         1278     2226     +948     
- Misses        204      414     +210     

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

Comment thread src/callbacks.jl Outdated
Comment on lines +112 to +121
node = tree.nodes[tree.root.current_node_id[]]

if active_set != nothing
node.active_set_size = length(active_set)
end

if use_DICG && pre_computed_set != nothing
node.discarded_set_size = length(pre_computed_set)
end

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It would be better to move this into evaluate_node!. The shadow set size has to be set the same way, I would think.

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.

3 participants