Synopsis
Set an option for the current optimization method.
Syntax
set_method_opt(optname, val)
Description
This is a helper function since the optimization options can also be set directly using the object returned by `get_method` .
Example
Change the maxfev parameter for the current optimizer to 2000.
>>> set_method_opt('maxfev', 2000)PARAMETERS
The parameters for this function are:
| Parameter | Type information | Definition | 
|---|---|---|
| optname | str | The name of the option to set. The `get_method` and `get_method_opt` routines can be used to find out valid values for this argument. | 
| val | The new value for the option. | 
Bugs
See the bugs pages on the Sherpa website for an up-to-date listing of known bugs.
See Also
- confidence
 - set_conf_opt, set_covar_opt, set_proj_opt
 - data
 - set_areascal, set_arf, set_backscal, set_bkg, set_coord, set_counts, set_data, set_dep, set_exposure, set_grouping, set_quality, set_rmf, set_staterror, set_syserror
 - filtering
 - set_filter
 - methods
 - get_method, get_method_opt, gridsearch, levmar, list_iter_methods, list_methods, moncar, neldermead, set_iter_method, set_iter_method_opt, set_method
 - modeling
 - get_par, set_bkg_model, set_bkg_source, set_full_model, set_model, set_par, set_pileup_model, set_source
 - statistics
 - set_prior, set_sampler, set_sampler_opt, set_stat
 - utilities
 - set_analysis, set_default_id
 - visualization
 - image_setregion