monit may be used to monitor the optimization process. It is invoked upon every successful completion of the procedure in which a sub-box is considered for splitting. It will also be called just before e05jb exits if that splitting procedure was not successful.
If no monitoring is required, monit may be the dummy monitoring method E05JBK supplied by the NAG Library.

Syntax

C#
public delegate void E05JB_MONIT(
	int n,
	int ncall,
	double[] xbest,
	int[] icount,
	double[,] list,
	int[] numpts,
	int[] initpt,
	int nbaskt,
	double[,] xbaskt,
	double[] boxl,
	double[] boxu,
	int nstate,
	out int inform
)
Visual Basic
Public Delegate Sub E05JB_MONIT ( _
	n As Integer, _
	ncall As Integer, _
	xbest As Double(), _
	icount As Integer(), _
	list As Double(,), _
	numpts As Integer(), _
	initpt As Integer(), _
	nbaskt As Integer, _
	xbaskt As Double(,), _
	boxl As Double(), _
	boxu As Double(), _
	nstate As Integer, _
	<OutAttribute> ByRef inform As Integer _
)
Visual C++
public delegate void E05JB_MONIT(
	int n, 
	int ncall, 
	array<double>^ xbest, 
	array<int>^ icount, 
	array<double,2>^ list, 
	array<int>^ numpts, 
	array<int>^ initpt, 
	int nbaskt, 
	array<double,2>^ xbaskt, 
	array<double>^ boxl, 
	array<double>^ boxu, 
	int nstate, 
	[OutAttribute] int% inform
)
F#
type E05JB_MONIT = 
    delegate of 
        n : int * 
        ncall : int * 
        xbest : float[] * 
        icount : int[] * 
        list : float[,] * 
        numpts : int[] * 
        initpt : int[] * 
        nbaskt : int * 
        xbaskt : float[,] * 
        boxl : float[] * 
        boxu : float[] * 
        nstate : int * 
        inform : int byref -> unit

Parameters

n
Type: System..::..Int32
On entry: n, the number of variables.
ncall
Type: System..::..Int32
On entry: the cumulative number of calls to objfun.
xbest
Type: array<System..::..Double>[]()[][]
On entry: the current best point.
icount
Type: array<System..::..Int32>[]()[][]
On entry: an array of counters.
icount[0]
nboxes, the current number of sub-boxes.
icount[1]
ncloc, the cumulative number of calls to objfun made in local searches.
icount[2]
nloc, the cumulative number of points used as start points for local searches.
icount[3]
nsweep, the cumulative number of sweeps through levels.
icount[4]
m, the cumulative number of splits by initialization list.
icount[5]
s, the current lowest level containing non-split boxes.
list
Type: array<System..::..Double,2>[,](,)[,][,]
On entry: the initialization list.
numpts
Type: array<System..::..Int32>[]()[][]
On entry: the number of points in each coordinate at which to split according to the initialization list list.
initpt
Type: array<System..::..Int32>[]()[][]
On entry: a pointer to the ‘initial point’ in list. Element initpt[i-1] is the column index in list of the ith coordinate of the initial point.
nbaskt
Type: System..::..Int32
On entry: the number of points in the ‘shopping basket’ xbaskt.
xbaskt
Type: array<System..::..Double,2>[,](,)[,][,]
Note: the jth candidate minimum has its ith coordinate stored in xbaskt[j-1,i-1], for i=1,2,,n and j=1,2,,nbaskt.
On entry: the ‘shopping basket’ of candidate minima.
boxl
Type: array<System..::..Double>[]()[][]
On entry: the array of lower bounds of the current search box.
boxu
Type: array<System..::..Double>[]()[][]
On entry: the array of upper bounds of the current search box.
nstate
Type: System..::..Int32
On entry: is set by e05jb to indicate at what stage of the minimization monit was called.
nstate=1
This is the first time that monit has been called.
nstate=-1
This is the last time monit will be called.
nstate=0
This is the first and last time monit will be called.
inform
Type: System..::..Int32%
On exit: must be set to a value describing the action to be taken by the solver on return from monit. Specifically, if the value is negative the solution of the current problem will terminate immediately; otherwise, computations will continue.

See Also