From 1d36fb5e72ac5463949d582a76693e4bbed022ee Mon Sep 17 00:00:00 2001 From: Jose Daniel Lara Date: Thu, 4 Apr 2024 11:42:30 -0600 Subject: [PATCH] formatter --- src/problems/multi_region_problem.jl | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/problems/multi_region_problem.jl b/src/problems/multi_region_problem.jl index 9502afc..867c4e5 100644 --- a/src/problems/multi_region_problem.jl +++ b/src/problems/multi_region_problem.jl @@ -339,7 +339,6 @@ function PSI.update_parameters!( end end - if !PSI.is_synchronized(model) for subproblem in values(container.subproblems) PSI.update_objective_function!(subproblem) @@ -353,8 +352,15 @@ end """ Default problem update function for most problems with no customization """ -function PSI.update_model!(model::PSI.DecisionModel{MultiRegionProblem}, sim::PSI.Simulation) - PSI.update_model!(model, PSI.get_simulation_state(sim), PSI.get_ini_cond_chronology(sim)) +function PSI.update_model!( + model::PSI.DecisionModel{MultiRegionProblem}, + sim::PSI.Simulation, +) + PSI.update_model!( + model, + PSI.get_simulation_state(sim), + PSI.get_ini_cond_chronology(sim), + ) #= if get_rebuild_model(model) container = get_optimization_container(model)