Last modified: December 2013

URL: http://cxc.harvard.edu/sherpa/ahelp/show_method.html
Jump to: Description · Examples · Bugs · See Also


AHELP for CIAO 4.11 Sherpa v1

show_method

Context: info

Synopsis

Display the optimization method

Syntax

show_method([outfile=None, clobber=False] )

Description

The show_method command displays the current optimization method and parameters.

The command output looks like:

Optimization Method: NelderMead
name         = simplex
ftol         = 1.19209289551e-07
maxfev       = None
initsimplex  = 0
finalsimplex = 9
step         = None
iquad        = 1
verbose      = 0

The behavior of the screen output is determined by the user's $PAGER environment variable setting, which is usually a variant of "more." To disable paging within show_all() - i.e. print the entire contents, even if it scrolls offscreen - change this setting to "cat" before starting Sherpa:

unix% setenv PAGER cat

unix% sherpa

Examples

Example 1

sherpa> show_method()

Print the optimization method to the screen.

Example 2

sherpa> show_method("sherpa.method", True)

Write the optimization method to the file "sherpa.method", clobbering any existing file with the same name.


Bugs

See the bugs pages on the Sherpa website for an up-to-date listing of known bugs.

See Also

filtering
show_filter
info
list_bkg_ids, list_functions, show_all, show_bkg_model, show_bkg_source, show_conf, show_covar, show_data, show_fit, show_model, show_proj, show_source, show_stat