From 40341d9aefd8cb7f230e15522f5de6a191415200 Mon Sep 17 00:00:00 2001 From: Normann Date: Sun, 6 Oct 2024 14:49:49 +0200 Subject: [PATCH] fixed_seed for single_test_optimization sets the seed for random to a fixed value to be able to compare results. Value chosen for obvious reason. Same value is used in the test case. --- single_test_optimization.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/single_test_optimization.py b/single_test_optimization.py index b758cf0..d2ea9dc 100644 --- a/single_test_optimization.py +++ b/single_test_optimization.py @@ -362,7 +362,7 @@ parameter = { # Initialize the optimization problem opt_class = optimization_problem( - prediction_hours=48, strafe=10, optimization_hours=24, verbose=True + prediction_hours=48, strafe=10, optimization_hours=24, verbose=True, fixed_seed=42 ) # Perform the optimisation based on the provided parameters and start hour