Last modified: December 2022

URL: https://cxc.cfa.harvard.edu/sherpa/ahelp/set_method_opt.html
Jump to: Description · Example · PARAMETERS · Bugs · See Also


AHELP for CIAO 4.15 Sherpa

set_method_opt

Context: methods

Synopsis

Set an option for the current optimization method.

Syntax

set_method_opt(optname, val)

optname - str

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 Definition
optname 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, get_xsabund, get_xscosmo, get_xsxsect, get_xsxset, set_bkg_model, set_bkg_source, set_full_model, set_model, set_par, set_pileup_model, set_source, set_xsabund, set_xscosmo, set_xsxsect, set_xsxset
statistics
set_prior, set_sampler, set_sampler_opt, set_stat
utilities
set_analysis, set_default_id
visualization
image_setregion