suboptimumg.sweep.array_sweeper#
- class suboptimumg.sweep.array_sweeper.ArraySweeper(comp_data, var_list, var_percent_step_list=array([-0.1, -0.08, -0.06, -0.04, -0.02, 0., 0.02, 0.04, 0.06, 0.08, 0.1]))[source]#
Bases:
objectSweeps a list of variables at a list of percent steps.
Notes
Each variable is swept independently. The percent steps are relative to the default value of the variable. The 1D sweep calls this class with a single variable and a list of percent steps.
- Parameters:
comp_data (CompetitionData)
var_list (list)
var_percent_step_list (ndarray)
- sweep(verbose=False, num_processes=None)[source]#
Run the sweep using multiprocessing.
- Parameters:
verbose (bool, optional) – Whether to show detailed progress (default is False)
num_processes (int, optional) – Number of processes to use. Defaults to CPU count.
- Returns:
Results of the sweep operation
- Return type: