Skip to content

Support more cyclic timeseries#2102

Merged
visr merged 10 commits into
mainfrom
cyclic_demands
Feb 28, 2025
Merged

Support more cyclic timeseries#2102
visr merged 10 commits into
mainfrom
cyclic_demands

Conversation

@SouthEndMusic

@SouthEndMusic SouthEndMusic commented Feb 25, 2025

Copy link
Copy Markdown
Collaborator

Fixes #2094
Fixes #2095

@SouthEndMusic SouthEndMusic marked this pull request as draft February 25, 2025 11:23
@SouthEndMusic SouthEndMusic changed the title Support and test cyclic demands Support more cyclic timeseries Feb 25, 2025
@SouthEndMusic

Copy link
Copy Markdown
Collaborator Author

Cyclic PidControl is automatically supported via parse_static_and_time.

@SouthEndMusic SouthEndMusic marked this pull request as ready for review February 26, 2025 09:22
@SouthEndMusic SouthEndMusic requested a review from visr February 26, 2025 09:23
Comment thread core/src/model.jl Outdated
Comment on lines +123 to +128
vcat(
[
[cv.greater_than for cv in cvs] for
cvs in discrete_control.compound_variables
]...,
)...,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be good to avoid this splatting. From the vcat docs:

To concatenate a large vector of arrays, reduce(vcat, A) calls an efficient method when A isa
  AbstractVector{<:AbstractVecOrMat}, rather than working pairwise.

@visr visr merged commit 7746ddf into main Feb 28, 2025
@visr visr deleted the cyclic_demands branch February 28, 2025 09:41
visr added a commit that referenced this pull request Mar 3, 2025
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.

Add cyclic timeseries support for miscellaneous nodes Add cyclic timeseries support for demand nodes

2 participants