Skip to content

Follow the IOM and POM main APIs - #1691

Merged
jd-lara merged 6 commits into
psy6from
mb/follow-iom-pom-api
Oct 11, 2026
Merged

jd-lara merged 6 commits into
psy6from
mb/follow-iom-pom-api

Conversation

@m-bossart

Copy link
Copy Markdown
Contributor

Changes

  • Read post-solve variable and expression values through IOM.lookup_value in the store writer and the warm start.
    IOM no longer defines isempty for PrimalValuesCache, so every simulation failed writing its first results.
    lookup_value reads the values cached after a MILP's dual computation and falls back to the solver otherwise.
    Parameters keep calculate_parameter_values.
  • Update branch-rating time-series parameters through POM.get_branch_catalog.
    The update read network_model.network_reduction, which NetworkModel no longer has, so a simulation with branch rating series failed at step 2.
    Adds test/test_branch_rating_time_series_simulation.jl: a two-step ED on c_sys5_ed with a PTDF network and a rating forecast on one line, checking the second step holds the second window's rating.

Testing

Depends on #1690; the suite does not load without it.
With both: 18162 pass, 106 fail, 211 error; the remaining failures are listed in that PR.
The new branch-rating test passes (4/4). It cannot be shown failing in isolation, because without the lookup_value change the simulation fails earlier.

🤖 Generated with Claude Code

- _apply_warm_start! reads the value of every variable first and then
  sets the start values. Setting a start value makes JuMP report
  OPTIMIZE_NOT_CALLED, so each read after the first set returned NaN.
  HiGHS rejected the NaN starts, and the events simulations failed.
- The store writer copies the aux variable values. IOM.lookup_value
  returns the container's own aux array, which the next solve changes
  in place. The in-memory store kept that reference, so the stored aux
  values changed after the write.
@jd-lara
jd-lara changed the base branch from psy6 to mb/follow-psy-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!

Base automatically changed from mb/follow-psy-api to psy6 October 11, 2026 03:26
@jd-lara
jd-lara self-requested a review October 11, 2026 03:26
@jd-lara
jd-lara merged commit 9e0d448 into psy6 Oct 11, 2026
10 of 12 checks passed
@jd-lara
jd-lara deleted the mb/follow-iom-pom-api 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