Skip to content

Conversation

@p-snft
Copy link
Member

@p-snft p-snft commented Oct 27, 2025

To avoid misunderstandings about shared functionality, this splits shared functions from NonConvexFlowBlock to a separate file and imports it to both, InvestNonConvexFlowBlock and NonConvexFlowBlock. Until now, one inherited from the other but this is rather historical than a parent child relationship in the sense of object oriented programming.

p-snft and others added 4 commits October 27, 2025 16:05
The new name reflects the fact that INVEST_NON_CONVEX_FLOWS is not a
subset of the set that is now called FIXED_CAPACITY_NONCONVEX_FLOWS.
Originally (before solph 0.5), this was implicit as investment and
binary status could not be combined. Now, the name was misleading.

As this only affects expert users, we do not consider this API breaking.
To avoid misunderstandings about shared functionality, this splits
shared functions from NonConvexFlowBlock to a separate file and imports
it to both, InvestNonConvexFlowBlock amd NonConvexFlowBlock. Until now,
one inherited from the other but this is rather historical than a parent
child relationship in the sense of object oriented programming.
@p-snft p-snft marked this pull request as ready for review October 30, 2025 13:06
@p-snft p-snft requested a review from uvchik October 30, 2025 13:06
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