Skip to content

Inclusion of keyword arguments#9

Open
JulStraus wants to merge 3 commits into
mainfrom
enhance/kwargs
Open

Inclusion of keyword arguments#9
JulStraus wants to merge 3 commits into
mainfrom
enhance/kwargs

Conversation

@JulStraus

Copy link
Copy Markdown
Member

This PR adds two keyword arguments:

  • use_op_per_strat is a Boolean that can be utilized to adjust the reference value for parameters indexed over strategic periods. In the previous version, these parameters were always based on a duration of 1 of an operational period while the new keyword argument allows to include a parameter op_per_strat to the provided TimeStructure to specify the reference.
  • optimizer_param which can be utilized for providing optimizer parameters.

@JulStraus JulStraus added the enhancement New feature or request label Jun 10, 2026

@lfbernardino lfbernardino left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The additions look straightforward. The incorporation of op_per_strat is solely related to the units of the strategic parameters at this point, as the model is still focusing on operational models (i.e. defined in a single strategic period).

The following points should be accounted for when setting up a problem in [`EnergyModelsRecedingHorizon`](@ref):

- The provided case object should be an [`EMB.Case`](@extref EnergyModelsBase.Case) with problem horizons included in the case object through the `misc` dictionary using the `:horizons` key.
- The modetype object must be a subtype of [`RecHorEnergyModel`](@ref EMRH.RecHorEnergyModel) for dispatching purposes.- The provided case object should be an [`Case`](@extref EnergyModelsBase.Case) with problem horizons included in the case object through the `misc` dictionary using the `:horizons` key.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
- The modetype object must be a subtype of [`RecHorEnergyModel`](@ref EMRH.RecHorEnergyModel) for dispatching purposes.- The provided case object should be an [`Case`](@extref EnergyModelsBase.Case) with problem horizons included in the case object through the `misc` dictionary using the `:horizons` key.
- The modeltype object must be a subtype of [`RecHorEnergyModel`](@ref EMRH.RecHorEnergyModel) for dispatching purposes.
- The provided case object should be an [`Case`](@extref EnergyModelsBase.Case) with problem horizons included in the case object through the `misc` dictionary using the `:horizons` key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants