From b3d75cd2696de83ad8bf265842b2e702a7968e6c Mon Sep 17 00:00:00 2001
From: jkriwet <jonathan.kriwet@eonerc.rwth-aachen.de>
Date: Thu, 7 Nov 2024 17:35:20 +0100
Subject: [PATCH] changes to calibration class

---
 energyplus_calibrator/calibration_class.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/energyplus_calibrator/calibration_class.py b/energyplus_calibrator/calibration_class.py
index c70f77a..05810b9 100644
--- a/energyplus_calibrator/calibration_class.py
+++ b/energyplus_calibrator/calibration_class.py
@@ -628,7 +628,8 @@ class EnergyPlusCalibrator:
                              "ret_val_on_error": 10_000,
                              # For this example, let's keep the runtime low
                              "max_itercount": 1_000_000,
-                             "max_time": max_time
+                             "max_time": max_time,
+                             'save_current_best_iterate': True
                              }
 
         kwargs_scipy_dif_evo = {"maxiter": 1_000_000,
-- 
GitLab