Skip to content

Pass the evaluation data into calculate_aux_variable_value! - #168

Merged
jd-lara merged 1 commit into
mainfrom
lk/pass-evaluation-data
Sep 18, 2026
Merged

jd-lara merged 1 commit into
mainfrom
lk/pass-evaluation-data

Conversation

@luke-kiernan

Copy link
Copy Markdown
Collaborator

calculate_aux_variables! already holds the evaluator it just ran, so pass it to calculate_aux_variable_value! rather than making the implementation find it again. POM's power-flow read-back was finding it with a findlast over a Dict, which returns an arbitrary evaluator as soon as more than one is registered (Sienna-Platform/PowerOperationsModels.jl#308); the POM-side PR that deletes that search and adds the multi-evaluator tests depends on this one.

🤖 Generated with Claude Code

The loop already holds the evaluator that just ran, so hand it to the
aux-var calculation instead of making the implementation look it up.
POM's power-flow read-back searched for it with a `findlast` over a
`Dict`, which returns an arbitrary evaluator once more than one is
registered.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Performance Results
Main


This branch


@codecov

codecov Bot commented Sep 17, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/core/optimization_container.jl 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@jd-lara
jd-lara merged commit 1298443 into main Sep 18, 2026
7 of 8 checks passed
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.

2 participants