From 6b8f2b5072995b296491cefc7240423de71ea027 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20N=C3=A4gele?= Date: Thu, 23 Nov 2023 16:13:17 +0100 Subject: [PATCH] Fix format --- src/Solve.jl | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Solve.jl b/src/Solve.jl index 87c0a68..08e768c 100644 --- a/src/Solve.jl +++ b/src/Solve.jl @@ -7,11 +7,11 @@ function solve(model, lags, exos, params; initial=fill(1.0, length(model.endogen nlsolve( (F, x) -> model.f!(F, x, lags, exos, params), initial, - autodiff = :forward, - method = method, + autodiff=:forward, + method=method, # iterations = 500, - ftol = 1e-40, - xtol = 1e-40 + ftol=1e-40, + xtol=1e-40 ).zero end @@ -20,7 +20,8 @@ function solve_nonlinear(model, lags, exos, params; initial=fill(1.0, length(mod (F, x, p) -> model.f!(F, x, lags, exos, p), initial, params, - abstol = 1e-40, reltol = 1e-40 + abstol=1e-40, + reltol=1e-40 ) sol = NonlinearSolve.solve(prob, method) return sol