Skip to content

Fix values from a FixValueFeedforward between solves - #1694

Merged
jd-lara merged 5 commits into
psy6from
mb/recurrent-in-memory
Oct 11, 2026
Merged

jd-lara merged 5 commits into
psy6from
mb/recurrent-in-memory

Conversation

@m-bossart

Copy link
Copy Markdown
Contributor

In a simulation without rebuilds, a model is built for recurrent solves, so its parameter arrays hold JuMP variables.
Updating a FixValueFeedforward parameter then had no _fix_parameter_value! method for that array type, and the simulation failed at its second step with a MethodError.
The parameter update already fixes each parameter variable to its state value, and the FeedforwardFixValueConstraint rows built with the model tie the affected variables to them, so the new method has nothing further to do.

Testing

Adds a two-stage UC→ED testset to test_simulation_execute.jl, run with the in-memory and HDF stores, that fixes the ED's OnVariable to the UC's.
It checks that every ED commitment equals the UC commitment of the hour it falls in.
Before the fix the simulation fails with the MethodError; after it, every test in the file passes (with #1690 and #1691 applied).

🤖 Generated with Claude Code

@jd-lara
jd-lara self-requested a review October 10, 2026 23:20
@jd-lara
jd-lara changed the base branch from psy6 to mb/follow-iom-pom-api October 10, 2026 23:22
@codecov

codecov Bot commented Oct 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@jd-lara
jd-lara changed the base branch from mb/follow-iom-pom-api to psy6 October 11, 2026 03:31
@jd-lara
jd-lara merged commit e6e6f3e into psy6 Oct 11, 2026
10 of 11 checks passed
@jd-lara
jd-lara deleted the mb/recurrent-in-memory branch October 14, 2026 20:21
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