Set the options of the chosen optimization method
set_method_opt( optname, val );
The set_method_opt command sets the options for the chosen
optimization method. Refer to the ahelp file for each method
for a complete description of the options (e.g. "ahelp
levmar").
-
optname - optimization method option name
-
val - value for the option
A list of the available options for each
method is returned by the get_method_opt command
("ahelp get_method_opt"), e.g.
sherpa> get_method_name();
levmar
sherpa> get_method_opt();
{'verbose': 0, 'factor': 100.0, 'gtol': 1.1920928955078125e-07,
'maxfev': None, 'xtol': 1.1920928955078125e-07, 'epsfcn':
1.1920928955078125e-07, 'ftol': 1.1920928955078125e-07}
sherpa> set_method_opt("levmar");
sherpa> set_method_opt("maxfev",750);
Set the "maxfev" option (maximum number of function
evaluations) in the levmar method to 750.
sherpa> set_method ("neldermead");
sherpa> set_method_opt ("maxfev", 2000);
sherpa> set_method_opt ("verbose", 1);
The optimization method is set to neldermead. The
"maxfev" is set to 2000 and the verbosity is set to 1.
- sl.sherpa
-
get_par,
image_setregion,
levmar,
list_methods,
moncar,
neldermead,
set_analysis,
set_areascal,
set_arf,
set_backscal,
set_bkg,
set_bkg_model,
set_coord,
set_counts,
set_covar_opt,
set_data,
set_default_id,
set_exposure,
set_grouping,
set_method,
set_model,
set_par,
set_pileup_model,
set_proj_opt,
set_rmf,
set_source,
set_stat,
set_staterror,
set_syserror
- sl.sherpa_contrib
-
set_param_limits_from_image
|