Skip to content

feat(multitask): forward max_time_spotoptim to SpotOptim#209

Merged
bartzbeielstein merged 2 commits into
developfrom
feat/spotoptim-max-time
Jun 10, 2026
Merged

feat(multitask): forward max_time_spotoptim to SpotOptim#209
bartzbeielstein merged 2 commits into
developfrom
feat/spotoptim-max-time

Conversation

@bartzbeielstein

Copy link
Copy Markdown
Collaborator

SpotOptimStrategy now forwards the new ConfigMulti/ConfigEntsoe field max_time_spotoptim (sf2-safe 21.2.0; wall-clock minutes, default None = no limit) as SpotOptim's max_time, so the surrogate search stops at n_trials_spotoptim evaluations or the time limit, whichever comes first. Read via getattr, so older configs keep working. Bumps the sf2-safe pin to >=21.2.0,<22.

Verified locally: full suite (1167 passed, incl. the team4 consumer-contract tests against the released 21.2.0), ruff, quartodoc + full quarto render.

🤖 Generated with Claude Code

bartzbeielstein and others added 2 commits June 10, 2026 18:19
ConfigMulti/ConfigEntsoe (sf2-safe >= 21.1.0) carry a new
max_time_spotoptim field: a wall-clock budget for the surrogate search
in minutes. SpotOptimStrategy now forwards it as SpotOptim's max_time,
so the search stops at n_trials_spotoptim evaluations or the time
limit, whichever comes first. Unset/None forwards nothing (read via
getattr, so older sf2-safe configs keep working).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
21.2.0 carries the max_time_spotoptim config field consumed by
SpotOptimStrategy.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@bartzbeielstein bartzbeielstein merged commit 8f5c3e7 into develop Jun 10, 2026
7 checks passed
@bartzbeielstein

Copy link
Copy Markdown
Collaborator Author

🎉 This PR is included in version 7.1.0-rc.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@codecov

codecov Bot commented Jun 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@bartzbeielstein

Copy link
Copy Markdown
Collaborator Author

🎉 This PR is included in version 7.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@bartzbeielstein bartzbeielstein deleted the feat/spotoptim-max-time branch June 12, 2026 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant