Chandra X-Ray Observatory
Skip to the navigation links
Last modified: December 2010

Jump to: Description · Example · Bugs · See Also

AHELP for CIAO 4.3 Sherpa v1


Context: methods


Monte Carlo optimization method


The monte carlo optimization method is an implementation of the differential evolution algorithm.

Differential Evolution

A population of fixed size which contains n-dimensional vectors of (where n is the number of free parameters) are randomly initialized. At each iteration, a new n-dimensional vector is generated by combining vectors from the pool of population, the resulting trial vector is selected if it lowers the objective function. For more details see:

Storn, R. and Price, K. "Differential Evolution: A Simple and Efficient Adaptive Scheme for Global Optimization over Continuous Spaces." J. Global Optimization 11, 341-359, 1997.


Method Options

  • ftol - the function tolerance to terminate the search for the minimum; default is sqrt( DBL_EPSILON ) ~ 1.19209289551e-07, where DBL_EPSILON is the smallest number x such that 1.0 != 1.0 + x.
  • maxfev - the maximum number of function evaluations; default is 8192 * n (number of free parameters).
  • verbose - the amount of information to print about the fit progress. Default is 0 (no output).
  • seed - the seed for the random number generator; default value is 2357.
  • population_size - the population of potential solutions is allowed to evolve to search for the minimum of the fit statistics. The trial solution is randomly chosen from a combination from the current population, and it is only accepted if it lowers the statistics. The default value for the population size is 16 times the number of free parameters.
  • xprob - the crossover probability should be within the range [0.5,1.0]; default value is 0.9. A high value for the crossover probability should result in a faster convergence rate; conversely, a lower value should make the differential evolution method more robust.
  • weighting_factor - the weighting factor should be within the range [0.5, 1.0]; default is 0.8. Differential evolution is more sensitive to the weighting_factor then the xprob parameter. A lower value for the weighting_factor, coupled with an increase in the population_size, gives a more robust search at the cost of efficiency.


sherpa> set_method("moncar")
sherpa> get_method_name()

Set the optimization method and then confirm the new value.


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

See Also

levmar, list_iter_methods, list_methods, neldermead, set_method, set_method_opt

Last modified: December 2010
Smithsonian Institute Smithsonian Institute

The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory. 60 Garden Street, Cambridge, MA 02138 USA.   Email: Smithsonian Institution, Copyright © 1998-2019. All rights reserved.