pymead.optimization.opt_setup.calculate_warm_start_index#
- calculate_warm_start_index(warm_start_generation: int, warm_start_directory: str)[source]#
Calculates the generation from which to restart the optimization. If the specified warm start generation is not found in the
algorithm_gen_xxx.pklfiles, an error is raised.- Parameters:
- Returns:
The index of the generation to start from.
- Return type: