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.
This commit is contained in:
Normann 2024-10-06 14:49:49 +02:00 committed by Andreas
parent 738a4da455
commit fb59c9dd14

View File

@ -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