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..::..Int32On entry: , the number of variables.
- ncall
- Type: System..::..Int32On 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.
- , the current number of sub-boxes.
- , the cumulative number of calls to objfun made in local searches.
- , the cumulative number of points used as start points for local searches.
- , the cumulative number of sweeps through levels.
- , the cumulative number of splits by initialization list.
- , 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>[]()[][]
- nbaskt
- Type: System..::..Int32On entry: the number of points in the ‘shopping basket’ xbaskt.
- xbaskt
- Type: array<System..::..Double,2>[,](,)[,][,]Note: the th candidate minimum has its th coordinate stored in , for and .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
- 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.