-
Notifications
You must be signed in to change notification settings - Fork 1
Move EM/DM to IOM #160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Move EM/DM to IOM #160
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,53 +1,30 @@ | ||
| ################################################################################# | ||
| # Operation-problem type hierarchy | ||
| # | ||
| # IOM (#104 "Redistribute operation models") is a domain-neutral optimization | ||
| # library: it owns `DecisionModel{M}`/`EmulationModel{M}` and parameterizes them | ||
| # over the single abstract tag `IOM.AbstractOptimizationProblem`. The concrete, | ||
| # power-flavoured problem-type chain lives here in POM. POM-side methods dispatch | ||
| # on `DecisionModel{<:AbstractPowerOperationProblem}` (and its sub-tags) while IOM keeps only | ||
| # error-stub / extension-point methods on the neutral abstract. | ||
| # IOM is a domain-neutral optimization library: it owns `DecisionModel{M}`/ | ||
| # `EmulationModel{M}` and parameterizes them over `IOM.AbstractOptimizationProblem`. | ||
| # The decision↔emulation distinction is the wrapper's job (DecisionModel vs | ||
| # EmulationModel), so POM's power problem chain is a single linear hierarchy: the | ||
| # concrete problem type only describes domain content, not the solve strategy. | ||
| ################################################################################# | ||
|
|
||
| """ | ||
| Umbrella supertype for every PowerOperationsModels optimization problem. A | ||
| `DecisionModel`/`EmulationModel` parameterized over a subtype of this is a POM | ||
| operation model; dispatch on `DecisionModel{<:AbstractPowerOperationProblem}` selects the | ||
| POM-side implementations of IOM's extension points. | ||
| operation model. | ||
| """ | ||
| abstract type AbstractPowerOperationProblem <: IOM.AbstractOptimizationProblem end | ||
|
|
||
| """ | ||
| Supertype for single-period (decision) operation problems solved by `DecisionModel`. | ||
| Operation problems whose build/validate behavior is fully driven by the | ||
| `ProblemTemplate` (the common case). The seam for a future custom-build problem is | ||
| to subtype `AbstractPowerOperationProblem` directly instead of this. | ||
| """ | ||
| abstract type AbstractPowerDecisionProblem <: AbstractPowerOperationProblem end | ||
| abstract type GenericPowerOperationProblem <: AbstractPowerOperationProblem end | ||
|
|
||
| """ | ||
| Supertype for rolling-horizon (emulation) operation problems solved by `EmulationModel`. | ||
| Default concrete template-driven operation problem. The `M` used when a | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This comment is confusing. |
||
| `DecisionModel`/`EmulationModel` is built from a template without an explicit problem | ||
| type. | ||
| """ | ||
| abstract type AbstractPowerEmulationProblem <: AbstractPowerOperationProblem end | ||
|
|
||
| """ | ||
| Decision problems whose build/validate behavior is fully driven by the | ||
| `ProblemTemplate` (the common case). `DecisionModel{<:GenericPowerDecisionProblem}` | ||
| gets the generic template-driven `build_model!`/`validate_template` methods. | ||
| """ | ||
| abstract type GenericPowerDecisionProblem <: AbstractPowerDecisionProblem end | ||
|
|
||
| """ | ||
| Emulation problems whose build/validate behavior is fully driven by the | ||
| `ProblemTemplate`. | ||
| """ | ||
| abstract type GenericPowerEmulationProblem <: AbstractPowerEmulationProblem end | ||
|
|
||
| """ | ||
| Default concrete template-driven decision problem. The `M` used when a `DecisionModel` | ||
| is built from a template without an explicit problem type. | ||
| """ | ||
| struct DefaultPowerDecisionProblem <: GenericPowerDecisionProblem end | ||
|
|
||
| """ | ||
| Default concrete template-driven emulation problem. The `M` used when an `EmulationModel` | ||
| is built from a template without an explicit problem type. | ||
| """ | ||
| struct DefaultPowerEmulationProblem <: GenericPowerEmulationProblem end | ||
| struct DefaultPowerOperationProblem <: GenericPowerOperationProblem end | ||
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't like this docstring