monfun may be used to monitor the optimization process. It is invoked every time a new trust-region radius is chosen.
If no monitoring is required, monfun may be the dummy monitoring method E04JCP supplied by the NAG Library.
Syntax
C# |
---|
public delegate void E04JC_MONFUN( int n, int nf, double[] x, double f, double rho, out int inform ) |
Visual Basic |
---|
Public Delegate Sub E04JC_MONFUN ( _ n As Integer, _ nf As Integer, _ x As Double(), _ f As Double, _ rho As Double, _ <OutAttribute> ByRef inform As Integer _ ) |
Visual C++ |
---|
public delegate void E04JC_MONFUN( int n, int nf, array<double>^ x, double f, double rho, [OutAttribute] int% inform ) |
F# |
---|
type E04JC_MONFUN = delegate of n : int * nf : int * x : float[] * f : float * rho : float * inform : int byref -> unit |
Parameters
- n
- Type: System..::..Int32On entry: , the number of independent variables.
- nf
- Type: System..::..Int32On entry: the cumulative number of calls made to objfun.
- x
- Type: array<System..::..Double>[]()[][]On entry: the current best point.
- f
- Type: System..::..Double
- rho
- Type: System..::..DoubleOn entry: a lower bound on the current trust-region radius.
- inform
- Type: System..::..Int32%On exit: must be set to a value describing the action to be taken by the solver on return from monfun. Specifically, if the value is negative the solution of the current problem will terminate immediately; otherwise, computations will continue.