From bb87a8e2c4853820bf3ea5f80a26a3ca98b84496 Mon Sep 17 00:00:00 2001 From: jd-lara Date: Sat, 4 Sep 2021 14:46:03 -0700 Subject: [PATCH] updates --- src/build_problem.jl | 2 +- src/solve_problem.jl | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/build_problem.jl b/src/build_problem.jl index a1197b5..da02539 100644 --- a/src/build_problem.jl +++ b/src/build_problem.jl @@ -394,7 +394,7 @@ function get_sddp_model(problem::PSI.OperationsProblem{MultiStageCVAR}) model = SDDP.MarkovianPolicyGraph( transition_matrices = problem.ext["MARKOV_TRANSITION"], sense = :Min, - lower_bound = 1e3, + lower_bound = 2.5e3, optimizer = sddp_solver, direct_mode = true, ) do sp, node diff --git a/src/solve_problem.jl b/src/solve_problem.jl index 11594fd..7d723d8 100644 --- a/src/solve_problem.jl +++ b/src/solve_problem.jl @@ -22,10 +22,14 @@ end function PSI.solve!(problem::PSI.OperationsProblem{MultiStageCVAR}) if !problem.ext["no_solar"] try + if problem.ext["hour"] < 0 + problem.ext["no_solar"] = true + return PSI.RunStatus.SUCCESSFUL + end model = problem.ext["mod"] SDDP.train( model; - stopping_rules = [SDDP.BoundStalling(20, 1)], + stopping_rules = [SDDP.BoundStalling(20, 100)], time_limit = RCVAR.ext["time_limit"], cut_deletion_minimum = 100, run_numerical_stability_report = false,