Release v0.2.0: Sequential mode improvements and refactoring - #289
Merged
Conversation
Bump version from 0.1.3 to 0.2.0 in pyproject.toml and uv.lock, and finalize the CHANGELOG for the 0.2.0 release: integer strategy and thermal heuristics, lower_bound()/upper_bound() expression operators, the configurable sequential-mode carry-over-length, the linopy >= 0.9.0 upgrade (Python >= 3.11), the optim-config parsing/validation split, and the fast-heuristic and hybrid port-type fixes that landed since 0.1.3. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QwP1EdXwXBpTQdTqT7U5yP
The deleted models-design/ folder was repo-internal tooling never shipped in the package, so it does not belong in the user-facing changelog. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QwP1EdXwXBpTQdTqT7U5yP
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QwP1EdXwXBpTQdTqT7U5yP
aoustry
marked this pull request as ready for review
August 24, 2026 09:33
Juliette-Gerbaux
approved these changes
Aug 24, 2026
tbittar
approved these changes
Aug 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Process ID
Process: N/A
Description
This PR releases version 0.2.0 with several significant improvements and refactoring:
Key Changes
Sequential mode carry-over length is now user-controlled - Introduces a new
resolution.carry-over-lengthparameter (default:block-overlap) that allows users to control how many shared leading timesteps of block N+1 are pinned to block N's solved values. This replaces the previous hardcoded behavior and fixes incorrect stitching forblock-overlap >= 2.linopy upgraded to >=0.9.0 - Minimum supported Python version now rises to 3.11 accordingly.
Module reorganization -
validate_optim_configmoved fromgems_craft.optim_config.parsingtogems_craft.optim_config.validation. Package-level imports remain unchanged; only direct imports from the parsing module need updating.Removed unused models-design/ folder - Cleaned up drawio diagrams that are no longer referenced.
Fixed
fastthermal heuristic with no minimum power -find_min_generation_fastno longer short-circuits to all-zero output whenmin_power_per_unitis ~0, ensuring unit-commitment information is preserved.Standard library parsing now accepts hybrid port-type fields -
parse_yaml_libraryno longer rejectsarea-connection/thermal-capacity-connectionon port-types.Impact Analysis
Modules affected: optim_config/, simulation/ (thermal heuristics)
Solver output changes: The fix to sequential mode stitching may produce different results for problems using
block-overlap >= 2, as the previous behavior was incorrect. The thermal heuristic fix ensures committed units remain available for production when minimum power is near zero.Checklist
pytest)mypy)black,isort)pyproject.tomlversion bumped (0.1.3 → 0.2.0)AGENTS.mdreviewed for impact and updated if neededhttps://claude.ai/code/session_01QwP1EdXwXBpTQdTqT7U5yP