The GRID method samples the parameter space bounded by the
lower and upper limits for each thawed parameter.
At each grid point, the fit statistic is evaluated.
The advantage of GRID is that it can provide a thorough sampling of
parameter space. This is good for situations where the best-fit
parameter values are not easily guessed a priori, and where there is a
high probability that false minima would be found if
one-shot techniques such as POWELL are used instead.
Its disadvantages are that it can be slow, and that because of the
discrete nature of the search, the global
fit-statistic minimum can easily be missed.
(The latter disadvantage may be
alleviated by combining a grid search with Powell minimization;
see GRID-POWELL.)
The user should change the parameter grid.totdim so that its value matches
the number of thawed parameters in the fit. When this change
is made, the total number of GRID parameters changes, e.g.
if the user first changes grid.totdim to 6,
the parameters grid.nloop05 and grid.nloop06
will appear, each with default values of 10.
If the Sherpa command FIT is given without changing grid.totdim to
match the number of thawed parameters, Sherpa will make the change
automatically. However, one cannot change the value of any
newly created grid.nloopi parameters until the fit is complete.
If one is interested in running the grid only over a subset of the
thawed parameter space, there are two options: first, one can freeze
the unimportant parameters at specified values, or second, one can set
grid.nloopi for each of the unimportant parameters to 1, while
also specifying their (constant) values.
The GRID algorithm uses the specified minimum and maximum values
for each thawed parameter to determine the grid points at which the
fit statistic is to be evaluated. If grid.nloopi = 1,
the grid point is assumed to be the current value of the associated
parameter, as indicated above. Otherwise, the grid points for
parameter x_i are given by
x_(i,min) , x_(i,min)+[x_(i,max)-x_(i,min)]/[grid.nloopi-1] , x_(i,min)+2[x_(i,max)-x_(i,min)]/[grid.nloopi-1], . . . , x_(i,max)
Note that the current parameter value will not be sampled unless the
minimum and maximum values, and the number of grid points, are chosen
appropriately.
The maximum number of grid points that may be sampled during one fit
is 1.e+7. The total number of grid points is found by taking the product
of all values of grid.nloopi.