Skip to content
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

Jd/subsystems implementation #1

Merged
merged 18 commits into from
Mar 15, 2024
Merged

Jd/subsystems implementation #1

merged 18 commits into from
Mar 15, 2024

Conversation

jd-lara
Copy link
Member

@jd-lara jd-lara commented Feb 29, 2024

No description provided.

@jd-lara jd-lara requested a review from daniel-thom February 29, 2024 18:00
@jd-lara jd-lara self-assigned this Feb 29, 2024
src/multiproblem_template.jl Outdated Show resolved Hide resolved
src/multiproblem_template.jl Outdated Show resolved Hide resolved
Comment on lines 72 to 74
function PSI.serialize_problem(model::PSI.DecisionModel{MultiRegionProblem};
optimizer::Nothing)
end
Copy link

Choose a reason for hiding this comment

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

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
function PSI.serialize_problem(model::PSI.DecisionModel{MultiRegionProblem};
optimizer::Nothing)
end
function PSI.serialize_problem(
model::PSI.DecisionModel{MultiRegionProblem};
optimizer::Nothing,
) end

@@ -88,7 +88,7 @@ PSI.get_initial_conditions_data(container::MultiOptimizationContainer) =
container.initial_conditions_data
PSI.get_initial_time(container::MultiOptimizationContainer) =
PSI.get_initial_time(container.settings)
PSI.get_jump_model(container::MultiOptimizationContainer) = container.main_JuMPmodel
PSI.get_jump_model(container::MultiOptimizationContainer) = PSI.get_jump_model(container.main_problem)
Copy link

Choose a reason for hiding this comment

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

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
PSI.get_jump_model(container::MultiOptimizationContainer) = PSI.get_jump_model(container.main_problem)
PSI.get_jump_model(container::MultiOptimizationContainer) =
PSI.get_jump_model(container.main_problem)

Comment on lines 131 to 132
function PSI._check_numerical_bounds(model::PSI.DecisionModel{MultiRegionProblem})
end
Copy link

Choose a reason for hiding this comment

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

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
function PSI._check_numerical_bounds(model::PSI.DecisionModel{MultiRegionProblem})
end
function PSI._check_numerical_bounds(model::PSI.DecisionModel{MultiRegionProblem}) end

src/problems/multi_region_problem.jl Outdated Show resolved Hide resolved
src/problems/multi_region_problem.jl Outdated Show resolved Hide resolved
return (first(dim1),)
end


Copy link

Choose a reason for hiding this comment

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

[JuliaFormatter] reported by reviewdog 🐶

Suggested change

Comment on lines 76 to 77
common_axes =
Dict{Symbol, Dict{PSI.OptimizationContainerKey, SortedDict{Int, Set}}}(key => Dict{PSI.OptimizationContainerKey, SortedDict{Int, Set}}() for key in CONTAINER_FIELDS)
Copy link

Choose a reason for hiding this comment

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

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
common_axes =
Dict{Symbol, Dict{PSI.OptimizationContainerKey, SortedDict{Int, Set}}}(key => Dict{PSI.OptimizationContainerKey, SortedDict{Int, Set}}() for key in CONTAINER_FIELDS)
common_axes = Dict{Symbol, Dict{PSI.OptimizationContainerKey, SortedDict{Int, Set}}}(
key => Dict{PSI.OptimizationContainerKey, SortedDict{Int, Set}}() for
key in CONTAINER_FIELDS
)

@@ -23,7 +21,24 @@ function build_main_problem!(
sys::PSY.System,
) end


Copy link

Choose a reason for hiding this comment

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

[JuliaFormatter] reported by reviewdog 🐶

Suggested change

@jd-lara jd-lara merged commit 2754405 into main Mar 15, 2024
3 of 7 checks passed
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