From 86508b703958606fa73e4b7d6438115cd61dead8 Mon Sep 17 00:00:00 2001 From: ASC95 <16790624+ASC95@users.noreply.github.com> Date: Tue, 12 Dec 2023 17:48:56 -0500 Subject: [PATCH] potential fix for rate limit caused by using nrel example api key --- omf/solvers/reopt_jl/REoptSolver/src/REoptSolver.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/omf/solvers/reopt_jl/REoptSolver/src/REoptSolver.jl b/omf/solvers/reopt_jl/REoptSolver/src/REoptSolver.jl index 72fcffa5f..749202a44 100644 --- a/omf/solvers/reopt_jl/REoptSolver/src/REoptSolver.jl +++ b/omf/solvers/reopt_jl/REoptSolver/src/REoptSolver.jl @@ -6,6 +6,7 @@ export run using REopt, JuMP, JSON, HiGHS #SCIP #, Cbc #Ipopt, ECOS, Clp, GLPK +ENV["NREL_DEVELOPER_API_KEY"]="WhEzm6QQQrks1hcsdN0Vrd56ZJmUyXJxTJFg6pn9" function get_model(path::String, max_runtime_s::Union{Nothing,Int}) m = Model(HiGHS.Optimizer)