OptimizationFunctions

class OptimizationFunctions.Optimization(case_folder, options_list, obj_widjet, hpc_run)

Bases: object

define_n_models()
static normalize(value, bounds)
objective_function(free_variables)
static opt_callback(free_variables)
parameter_grid_sweep(nn, results_file='sweep_params.cvs', verbose=False)

Sample input parameters on a grid and run simulations.

Parameters:
  • nn – (int) The number of points to select across each value

  • results_file – The filename to write sweep results including extension, defaults to ‘sweep_params.cvs’

run_models_with_new_values(dimensional_values, verbose=False)
static scale_back(value, bounds)
scipy_minimize(objective_fn, method='SLSQP', opt_results_file='optimization_results.csv')