NAG CL Interface
e04ffc (handle_solve_dfls)
Note: this function uses optional parameters to define choices in the problem specification and in the details of the algorithm. If you wish to use default
settings for all of the optional parameters, you need only read Sections 1 to 10 of this document. If, however, you wish to reset some or all of the settings please refer to Section 11 for a detailed description of the algorithm and to Section 12 for a detailed description of the specification of the optional parameters.
1
Purpose
e04ffc is a forward communication Derivative-free Optimization (DFO) solver from the NAG optimization modelling suite (DFLS) for small to medium-scale nonlinear least squares problems with bound constraints.
2
Specification
The function may be called by the names: e04ffc or nag_opt_handle_solve_dfls.
3
Description
e04ffc is aimed at minimizing a sum of squares objective function subject to bound constraints:
Here the
are smooth nonlinear functions called residuals and
and
are
-dimensional vectors defining bounds on the variables. Typically, in a calibration or data fitting context, the residuals will be defined as the difference between the data points and a nonlinear model (see
Section 2.2.3 in the
E04 Chapter Introduction).
e04ffc serves as a solver for compatible problems stored as a handle. The handle points to an internal data structure which defines the problem and serves as a means of communication for functions in the NAG optimization modelling suite. To define a compatible problem handle, you must call
e04rac followed by
e04rmc to initialize it and optionally call
e04rhc to define bounds on the variables. If
e04rhc is not called, all the variables will be considered free by the solver. It should be noted that
e04ffc always assumes that the Jacobian of the residuals is dense, therefore, defining a sparse structure for the residuals in the call to
e04rmc will have no effect. See
Section 4.1 in the
E04 Chapter Introduction for more details about the NAG optimization modelling suite.
The solver allows fixing variables with the definition of the bounds. However, the following constraint must be met in order to be able to call the solver:
- for all non-fixed variable , the value of must be at least twice the starting trust region radius (see the consistency constraint of the optional parameter ).
The solver is based on a derivative-free trust region framework. This type of method is well suited for small to medium-scale problems (around 100 variables) for which the derivatives are unavailable or not easy to compute, and/or for which the function evaluations are expensive or noisy. For a detailed description of the algorithm see
Section 11.
The algorithm behaviour and solver strategy can be modified by various optional parameters (see
Section 12) which can be set by
e04zmc and
e04zpc at any time between the initialization of the handle by
e04rac and a call to the solver. The optional parameters' names specific for this solver start either with the prefix DFO (Derivative-free Optimization) or DFLS (Derivative-free Least Squares). The default values for these optional parameters are chosen to work well in the general case, but it is recommended you tune them to your particular problem. In particular, if the objective function is known to be noisy, it is highly recommended to set the optional parameter
to
.
Once the solver has finished, options may be modified for the next solve. The solver may be called repeatedly with various starting points and/or optional parameters.
The underlying algorithm implemented for
e04ffc is the same as the one used by
e04fgc.
e04ffc serves as a forward communication interface to the derivative-free solver for nonlinear least squares problems.
4
References
Cartis C, Fiala J, Marteau B and Roberts L (2018) Improving the Flexibility and Robustness of Model-Based Derivative-Free Optimization Solvers Technical Report University of Oxford
Cartis C and Roberts L (2017) A Derivative-Free Gauss-Newton Method
Conn A R, Scheinberg K and Vicente L N (2009) Introduction to Derivative-Free Optimization, vol. 8 of MPS-SIAM Series on Optimization MPS/SIAM, Philadelphia
Powell M J D (2009) The BOBYQA algorithm for bound constrained optimization without derivatives
Report DAMTP 2009/NA06 University of Cambridge
https://www.damtp.cam.ac.uk/user/na/NA_papers/NA2009_06.pdf
Zhang H, Conn A R and Scheinberg K (2010) A Derivative-Free Algorithm for Least-Squares Minimization SIAM J. Optim. 20(6) 3555–3576
5
Arguments
-
1:
– void *
Input
-
On entry: the handle to the problem. It needs to be initialized (e.g., by
e04rac) and to hold a problem formulation compatible with
e04ffc. It
must not be changed between calls to the NAG optimization modelling suite.
-
2:
– function, supplied by the user
External Function
-
objfun must evaluate the value of the nonlinear residuals
at a specified point
.
The specification of
objfun is:
-
1:
– Integer
Input
-
On entry: , the current number of decision variables in the model.
-
2:
– const double
Input
-
On entry: , the vector of variable values at which the residuals, , are to be evaluated.
-
3:
– Integer
Input
-
On entry:
, the number of residuals in the problem, as set during the initialization of the handle by
e04rmc.
-
4:
– double
Output
-
On exit: the value of the residuals at .
-
5:
– Integer *
Input/Output
-
On entry: a non-negative value.
On exit: may be used to indicate that the requested objective value could not be computed. Specifically, it can be set to a negative value:
- The solver will attempt a rescue procedure and request an alternative point. If the rescue procedure fails, the solver will exit with NE_RESCUE_FAILED.
- The solver will cleanly exit with NE_USER_STOP and return the best available point as well as the solve statistics.
-
6:
– Nag_Comm *
Pointer to structure of type Nag_Comm; the following members are relevant to
objfun.
- user – double *
- iuser – Integer *
- p – Pointer
The type Pointer will be
void *. Before calling
e04ffc you may allocate memory and initialize these pointers with various quantities for use by
objfun when called from
e04ffc (see
Section 3.1.1 in the Introduction to the NAG Library CL Interface).
Note: objfun should not return floating-point NaN (Not a Number) or infinity values, since these are not handled by
e04ffc. If your code inadvertently
does return any NaNs or infinities,
e04ffc is likely to produce unexpected results.
-
3:
– function, supplied by the user
External Function
-
monit is provided to enable you to monitor the progress of the optimization and, if necessary, to halt the optimization process.
If no monitoring is required,
monit may be specified as
NULLFN.
monit is called at the end of every
th step where
is controlled by the optional parameter
(default value
,
monit is never called).
The specification of
monit is:
-
1:
– Integer
Input
-
On entry: , the current number of decision variables in the model.
-
2:
– const double
Input
-
On entry: the current best point.
-
3:
– Integer *
Input/Output
-
On entry: a non-negative value.
On exit: may be used to request the solver to stop immediately. Specifically, if
, then the value of
rx will be discarded and the solver will terminate immediately with
NE_USER_STOP; otherwise, the solver will proceed normally.
-
4:
– const double
Input
-
On entry: best objective value computed and various indicators (the values are as described in the main argument
rinfo).
-
5:
– const double
Input
-
On entry: solver statistics at monitoring steps or at the end of the current iteration (the values are as described in the main argument
stats).
-
6:
– Nag_Comm *
Pointer to structure of type Nag_Comm; the following members are relevant to
monit.
- user – double *
- iuser – Integer *
- p – Pointer
The type Pointer will be
void *. Before calling
e04ffc you may allocate memory and initialize these pointers with various quantities for use by
monit when called from
e04ffc (see
Section 3.1.1 in the Introduction to the NAG Library CL Interface).
-
4:
– Integer
Input
-
On entry: , the current number of decision variables in the model.
-
5:
– double
Input/Output
-
On entry: , the initial estimates of the variables, .
On exit: the final values of the variables, .
-
6:
– Integer
Input
-
On entry:
, the number of residuals in the problem. It must be unchanged from the value set during the definition of the objective structure by
e04rmc.
Constraint:
.
-
7:
– double
Output
-
On exit: the values of the residuals at the final point given in
x.
-
8:
– double
Output
-
On exit: optimal objective value and various indicators at monitoring steps or at the end of the final iteration. The measures are given in the table below:
|
Objective function value (sum of the squared residuals). |
|
, the current lower bound of the trust region. |
|
, the current size of the trust region. |
|
The number of interpolation points used by the solver. |
|
Reserved for future use. |
-
9:
– double
Output
-
On exit: solver statistics at monitoring steps or at the end of the final iteration as given in the table below:
|
Number of calls to the objective function. |
|
Total time spent in the solver (including time spent evaluating the objective). |
|
Total time spent evaluating the objective function. |
|
Number of steps. |
– |
Reserved for future use. |
-
10:
– Nag_Comm *
-
The NAG communication argument (see
Section 3.1.1 in the Introduction to the NAG Library CL Interface).
-
11:
– NagError *
Input/Output
-
The NAG error argument (see
Section 7 in the Introduction to the NAG Library CL Interface).
6
Error Indicators and Warnings
- NE_ALLOC_FAIL
-
Dynamic memory allocation failed.
See
Section 3.1.2 in the Introduction to the NAG Library CL Interface for further information.
- NE_BAD_PARAM
-
On entry, argument had an illegal value.
- NE_HANDLE
-
The supplied
handle does not define a valid handle to the data structure for the NAG optimization modelling suite. It has not been properly initialized or it has been corrupted.
- NE_INT
-
Initial number of interpolation points , total number of interpolation points , number of variables .
Constraint: growing interpolation set is only supported for linear models ().
Use and to control the number of interpolation points.
The number of initial interpolation points is greater than the maximum.
Use and to control the number of interpolation points.
There were
unequal bounds and the optional parameter
.
Constraint:
.
Use
e04zmc to set compatible option values.
- NE_INTERNAL_ERROR
-
An internal error has occurred in this function. Check the function call and any array sizes. If the call is correct then please contact
NAG for assistance.
See
Section 7.5 in the Introduction to the NAG Library CL Interface for further information.
- NE_NO_IMPROVEMENT
-
No progress, the solver was stopped after consecutive slow steps.
Use the optional parameter to modify the maximum number of slow steps accepted.
The solver stopped after consecutive slow steps and a trust region above the tolerance set by .
- NE_NO_LICENCE
-
Your licence key may have expired or may not have been installed correctly.
See
Section 8 in the Introduction to the NAG Library CL Interface for further information.
- NE_PHASE
-
The problem is already being solved.
- NE_REAL_2
-
Inconsistent optional parameters
and
.
Constraint:
.
Use
e04zmc to set compatible option values.
Inconsistent optional parameters
and
.
Constraint:
.
Use
e04zmc to set compatible option values.
Optional parameter
,
,
and
.
Constraint: if
in coordinate
, then
.
Use
e04zmc to set compatible option values.
- NE_REF_MATCH
-
On entry,
, expected
.
Constraint:
nvar must match the current number of variables of the model in the
handle.
The information supplied does not match with that previously stored.
On entry,
must match that given during the definition of the objective in the
handle, i.e.,
.
- NE_RESCUE_FAILED
-
A rescue procedure has been called in order to correct damage from rounding errors when computing an update to a quadratic approximation of
, but no further progress could be made. Check your specification of
objfun and whether the function needs rescaling. Try a different initial
x.
Rescue failed: the trust region could not be reduced further after some function evaluation could not be provided. Check the specification of your objective and whether it needs rescaling. Try a different initial
x.
Some initial interpolation points were not provided. Rescue cannot be attempted at this stage.
Check the specification of your objective and whether it needs rescaling. Try a different initial
x.
- NE_SETUP_ERROR
-
This solver does not support the model defined in the handle.
- NE_TASK
-
Maximization is not possible for a nonlinear least squares problem.
- NE_TIME_LIMIT
-
The solver terminated after the maximum time allowed was exceeded.
Maximum number of seconds exceeded. Use optional parameter to reset the limit.
- NE_TOO_MANY_ITER
-
Maximum number of function evaluations exceeded.
- NE_TR_STEP_FAILED
-
The predicted reduction in a trust region step was non-positive. Check your specification of
objfun and whether the function needs rescaling. Try a different initial
x.
- NE_USER_STOP
-
User requested termination after a call to the objective function.
inform was set to a value lower than
within the user-supplied function
objfun.
User requested termination during a monitoring step.
inform was set to a value lower than
within the user-supplied function
monit.
- NW_NOT_CONVERGED
-
The problem was solved to an acceptable level after consecutive slow iterations.
Use the optional parameter to modify the maximum number of slow steps accepted.
The solver stopped after consecutive slow steps and a trust region below the tolerance set by .
7
Accuracy
In a non-noisy case, the solver can declare convergence on two conditions.
-
(i)The trust region radius is below the tolerance set by the optional parameter . When this condition is met, the corresponding solution will generally be at a distance smaller than of a local minimum.
-
(ii)The sum of the square of the residuals is below the tolerance set by the optional parameter . In a data fitting context, this condition means that the error between the observed data and the model is smaller than the requested tolerance.
If the objective is declared as noisy by the optional parameter
, the solver declares convergence more conservatively. Instead of stopping with the first condition, the solver will trigger soft restarts (see
Section 11 for more details) to ensure it did not get stuck in a flat region because of the noise. The solver then declares convergence when it is reasonably sure that it has reached a local minimum.
-
(i)The total number of restarts is greater than the limit set by optional parameter and the trust region radius is below the tolerance.
-
(ii)The number of consecutive restarts that did not manage to decrease the objective function is greater than the limit set by the optional parameter .
In addition, this solver can stop if the convergence is deemed too slow on two conditions.
-
(i)The trust region lower bound is lower than the value set by the optional parameter and the number of consecutive slow steps is greater than the value set by .
-
(ii)The trust region lower bound is greater than the value set by the optional parameter and the number of consecutive slow steps is greater than five times the value set by .
The slow convergence detection can be deactivated by setting to .
8
Parallelism and Performance
e04ffc is threaded by NAG for parallel execution in multithreaded implementations of the NAG Library.
e04ffc makes calls to BLAS and/or LAPACK routines, which may be threaded within the vendor library used by this implementation. Consult the documentation for the vendor library for further information.
Please consult the
X06 Chapter Introduction for information on how to control and interrogate the OpenMP environment used within this function. Please also consult the
Users' Note for your implementation for any additional implementation-specific information.
9.1
Description of the Printed Output
The solver can print information to give an overview of the problem and the progress of the computation. The output may be sent to two independent
file ID
which are set by optional parameters and . Optional parameters , , and determine the exposed level of detail. This allows, for example, a detailed log file to be generated while the condensed information is displayed on the screen.
By default (, ), four sections are printed to the standard output: a header, a list of options, an iteration log and a summary.
Header
The header is a message indicating the start of the solver. It should look like:
---------------------------------------------------------------------------
E04F(F|G), Derivative-free solver for nonlinear least squares functions
---------------------------------------------------------------------------
Optional parameters list
If
, a list of the optional parameters and their values is printed. The list shows all options of the solver, each displayed on one line. The line contains the option name, its current value and an indicator for how it was set. The options left at their defaults are noted by ‘d’ and the ones you have set are noted by ‘U’. Note that the output format is compatible with the file format expected by
e04zpc. The output looks as follows:
Dfo Initial Interp Points = Coordinate * d
Dfo Max Objective Calls = 500 * d
Dfo Max Soft Restarts = 5 * d
Dfo Max Unsucc Soft Restarts = 3 * d
Dfo Maximum Slow Steps = 20 * d
Dfo Noise Level = 0.00000E+00 * d
Problem statistics
If
, statistics on the problem are printed, for example:
Problem Statistics
No of variables 4
free (unconstrained) 2
bounded 2
Objective function LeastSquares
No of residuals 11
Iteration log
If
, the solver will print a summary line for each step. An iteration is considered successful when it yields a decrease of the objective sufficiently close to the decrease predicted by the quadratic model. Each line shows the step number (step), the value of the objective function (obj), the lower bound on the radius of the trust region (rho), and the cumulative number of objective function evaluations (nf). The output looks as follows:
----------------------------------------
step | obj rho | nf |
----------------------------------------
1 | 3.87E+01 1.00E-01 | 12 |
2 | 3.39E+01 1.00E-01 | 13 |
3 | 1.78E+01 1.00E-01 | 14 |
4 | 3.95E-29 1.00E-01 | 15 |
Occasionally, the letter ‘s’ is printed at the end of the line indicating that the progress is considered slow by the slow convergence detection heuristic. After a certain number of consecutive slow steps, the solver is stopped. The limit on the number of slow iterations can be controlled by the optional parameter and the tolerance on the trust region radius before the solver can be stopped is driven by .
If
, each line additionally shows the current value of the trust region radius (delta) as well as the step length (||d||) taken. It might look as follows:
------------------------------------------------------------
step | obj rho delta ||d|| | nf |
------------------------------------------------------------
1 | 4.02E+00 1.00E-01 4.00E-01 1.00E-01 | 4 |
2 | 3.66E+00 1.00E-01 4.00E-01 4.00E-01 | 5 |
3 | 3.48E+00 1.00E-01 4.00E-01 4.00E-01 | 6 |
4 | 2.32E+00 1.00E-01 4.00E-01 1.00E-01 | 9 |
Summary
Once the solver finishes, a summary is produced:
Status: Converged, small residuals
Value of the objective 3.95417E-29
Number of objective function evaluations 15
Number of steps 4
Note that only the iterations that decrease the objective function are printed in the iteration log, meaning that objective evaluations are likely to happen between the last printed iteration and the convergence. This leads to a small difference between the last line of the iteration log and the final summary in terms of the number of function evaluations.
Optionally, if
, the timings are printed:
Timings
Total time spent in the solver 0.056
Time spent in the objective evaluation 0.012
Additionally, if
, the solution is printed along with the bounds:
Primal variables:
idx Lower bound Value Upper bound
1 -inf 1.81300E-01 inf
2 2.00000E-01 5.90128E-01 1.00000E+00
3 -inf 2.56929E-01 inf
4 3.00000E-01 3.00000E-01 inf
9.2
Internal Changes
Internal changes have been made to this function as follows:
- At Mark 27:
Even though the interface of
e04ffc stays the same, the underlying algorithm underwent a complete overhaul, meaning the results obtained can differ significantly with those of the previous release. The new implementation generally provides better performances as well as:
-
•additional features to better deal with noisy problems (see Section 11.5)
-
•an option to start the optimization before the full interpolation set is computed (see Section 11.4).
An option to use the previous implementation instead of the new one was also added: if is set to , the algorithm will behave the same way as in the Mark 26 release. The results may still vary slightly as the internal model optimization algorithm was improved. When using the Mark 26 implementation, some optional parameter descriptions in the documentation may be slightly inaccurate, please refer to the Mark 26 documentation.
Some optional parameter names have also changed, namely the prefix ‘DFLS’ was changed to ‘DFO’ for the options that are common between the derivative free least-square solvers (DFLS) and the derivative free solver for general nonlinear objective solvers. The old names still work but are not documented anymore.
The name of the argument ‘mon’ was updated to
monit to be consistent with the rest of the NAG optimization modelling suite functions.
For details of all known issues which have been reported for the NAG Library please refer to the
Known Issues.
10
Example
In this example, we minimize the Kowalik and Osborne function with bounds on some of the variables. In this problem, the number of variables
and the number of residuals
. The residuals
are computed by
where
The following bounds are defined on the variables
10.1
Program Text
10.2
Program Data
None.
10.3
Program Results
11
Algorithmic Details
This section contains a short description of the algorithm used in
e04ffc which is based on the collaborative work between NAG and the University of Oxford (
Cartis and Roberts (2017) and
Cartis et al. (2018)). It uses a model-based derivative-free trust region framework adapted to exploit least squares problems structure.
11.1
Derivative-free Trust Region Algorithm
In this section, we are interested in generic problems of the form
where the derivatives of the objective function
are not easily available. A model-based DFO algorithm maintains a set of points
centred on an iterate
to build quadratic interpolation models of the objective
where
and
are built with the interpolation conditions
Note that if the number of interpolation points
is smaller than
, the model chosen is the one for which the Hessian
is the closest to
in the Frobenius norm sense.
This model is iteratively optimized over a trust region, updated and moved around the new computed points. More precisely, it can be described as:
- DFO Algorithm
-
-
1.Initialization
Choose an initial interpolation set , trust region radius and build the first quadratic model .
-
2.Iteration k
-
(i)Minimize the model in the trust region to obtain a step .
-
(ii)If the step is too small, adjust the geometry of the interpolation set and the trust region size and restart the iteration.
-
(iii)Evaluate the objective at the new point .
-
(iv)Replace a far away point from to obtain .
-
(v)If the decrease of the objective is sufficient (successful step), choose , else choose .
-
(vi)Choose and adjust the geometry of , if necessary.
-
(vii)Build using the new interpolation set.
-
(viii)Stop the algorithm if is below the chosen tolerance .
In the following sections, we call an iteration ‘successful’ when the trial point is accepted as the next iterate.
11.2
Bounds on the Variables
The bounds on the variables are handled during the model optimization step (step
2(i) of
DFO Algorithm) with an active set method. If a bound is hit, it is fixed and step
2(i) is restarted.
11.3
Adaptation to Nonlinear Least Squares Problems
In the specific case where
is a sum of square
, a good approximation of the Hessian of the objective can be
where
is the
first derivative matrix of
. This approximation is the main idea behind the Gauss–Newton and Levenberg–Marquardt methods. Following the work of
Zhang et al. (2010), it is possible to adapt it to the DFO framework. In
e04ffc, one linear model is built for each residual
Let
. To build the model of the objective
, we then choose
where
is chosen as
and
as
The first expression amounts to making a Gauss–Newton approximation when we are far from a stationary point and the second to a Levenberg–Marquardt approximation when we are close to a stationary point with small residuals.
e04ffc integrates this method of building models into the framework presented in the
DFO Algorithm.
11.4
Growing the Interpolation Set
In the case where the function is very expensive, it might be desirable for the solver to make some progress before the evaluations necessary to build the first interpolation model are done. To get that behaviour, you can set the optional parameter , controlling the number of initial interpolation points, to a value that is lower than . The solver will then start its iteration earlier while adding random perturbations to the interpolation models to ensure that the full space is explored.
It is to be noted that this mode will typically not lead to a faster convergence to the solution and should only be used if early progress is desirable.
11.5
Dealing with Noisy Problems
If the problem solved is known to be noisy, declaring it as such to the solver with the optional parameter
will modify the behaviour of the solver to take into account the uncertainty of the function evaluations. The two main features implemented to handle noisy objective functions are:
-
(i)slow update of the trust regions;
-
(ii)soft restarts of the algorithm can be performed instead of declaring convergence to ensure the solver did not get stuck in a flat region due to the noise.
A soft restart consists of a reset of the trust region's values to the starting ones and a few objective evaluations to improve the geometry of the interpolation set in the new trust region. It is possible to control the number of objective evaluations performed during a soft restart with the optional parameter . After a set maximum number of restarts () or maximum number of unsuccessful restarts (), the solver will declare convergence in the usual way.
12
Optional Parameters
Several optional parameters in e04ffc define choices in the problem specification or the algorithm logic. In order to reduce the number of formal arguments of e04ffc these optional parameters have associated default values that are appropriate for most problems. Therefore, you need only specify those optional parameters whose values are to be different from their default values.
The remainder of this section can be skipped if you wish to use the default values for all optional parameters.
The optional parameters can be changed by calling
e04zmc anytime between the initialization of the handle and the call to the solver. Modification of the optional parameters during intermediate monitoring stops is not allowed. Once the solver finishes, the optional parameters can be altered again for the next solve.
The option values may be retrieved by
e04znc.
The following is a list of the optional parameters available. A full description of each optional parameter is provided in
Section 12.1.
12.1
Description of the Optional Parameters
For each option, we give a summary line, a description of the optional parameter and details of constraints.
The summary line contains:
- the keywords, where the minimum abbreviation of each keyword is underlined;
- a parameter value,
where the letters , and denote options that take character, integer and real values respectively;
- the default value, where the symbol is a generic notation for machine precision (see X02AJC).
All options accept the value to return single options to their default states.
Keywords and character values are case and white space insensitive.
This special keyword may be used to reset all optional parameters to their default values. Any value given with this keyword will be ignored.
DFLS Small Residuals Tol | | Default |
This option defines the tolerance on the value of the residuals. Namely, the solver declares convergence if
Constraint: .
DFO Initial Interp Points | | Default |
Determines how the initial interpolation points are chosen. If , the interpolation points are chosen along the coordinate directions around the initial point. If , the initial interpolation points are chosen along random orthogonal directions around the initial point. Set to a positive value to fix the random seed and get reproducible results.
Constraint: or .
DFO Maximum Slow Steps | | Default |
If
, this parameter defines the maximum number of consecutive slow iterations
allowed. Set
to deactivate the slow iteration detection. The algorithm can stop in two situations:
-
(i) and with NW_NOT_CONVERGED,
-
(ii) with NE_NO_IMPROVEMENT.
Constraint: .
DFO Max Objective Calls | | Default |
A limit on the number of objective function evaluations the solver is allowed to compute. If the limit is reached, the solver stops with
NE_TOO_MANY_ITER.
Constraint: .
DFO Max Soft Restarts | | Default |
The maximum total number of soft restarts that can be performed if the objective function is declared as noisy ().
Constraint: .
DFO Max Unsucc Soft Restarts | | Default |
The maximum number of consecutive unsuccessful soft restarts that can be performed if the objective function is declared as noisy ().
Constraint: .
DFO Monitor Frequency | | Default |
If
,
monit will be called at the end of every
th step for monitoring purposes.
Constraint: .
DFO Noise Level | | Default |
Indicates the noise level expected when evaluating the objective function if .
Constraint: .
DFO Noisy Problem | | Default |
Indicates if the function evaluations provided to the solver are noisy. If
, some algorithmic features will be activated:
-
(i)The trust region update becomes slower to reflect the decreased confidence in the objective values.
-
(ii)Soft restarts of the algorithm can be performed to ensure the algorithm did not get stuck because of the noise (see , and to control the restart characteristics).
-
(iii)In addition, if , the solver will trigger a soft restart if all the function values are within the noise level.
DFO Number Initial Points | | Default |
The initial number of interpolation points in
(1) used to build the linear models of the residuals. If
, the number of points is chosen to be equal to the total number of interpolation points set by
.
If this parameter is chosen to be lower than the maximum set by , the solver will progressively increase the number of interpolation points until it reaches that value. In this release, it is only possible to grow the interpolation set if is set to the default value.
Constraint: .
Consistency constraint, the solver stops with
NE_INT if not met:
- .
- If , must be set to the default value.
DFO Number Interp Points | | Default |
The maximum number of interpolation points in
(1) used to build the linear models of the residuals. If
, the number of points is chosen to be
where
is the number of non-fixed variables.
Constraint: .
Consistency constraint, the solver stops with
NE_INT if not met:
- .
DFO Number Soft Restarts Pts | | Default |
The number of interpolation points that are replaced during a soft restart.
Constraint: .
DFO Print Frequency | | Default |
If , the solver prints the iteration log to the appropriate units at the end of every th step.
Constraint: .
DFO Random Seed | | Default |
The random seed used to generate the random points used to build the initial model or build the underdetermined models when the interpolation set has not fully grown (). If , the random seed will be based on values taken from the real-time clock, potentially resulting in the solver taking a different path each time it is run. Set it to a positive value to get fully reproducible runs.
Constraint: .
DFO Starting Trust Region | | Default |
, the initial trust region radius. This parameter should be set to about one tenth of the greatest expected overall change to a variable: the initial quadratic model will be constructed by taking steps from the initial of length along each coordinate direction. The default value assumes that the variables have an order of magnitude .
Constraint: .
Consistency constraints, the solver stops with
NE_REAL_2 if not met:
- .
- .
DFO Trust Region Slow Tol | | Default |
The minimal acceptable trust region radius for the solution to be declared as acceptable. The solver stops if:
- and .
Constraint: .
Consistency constraint, the solver stops with
NE_REAL_2 if not met:
- .
DFO Trust Region Tolerance | | Default |
, the requested trust region radius. The algorithm declares convergence when the trust region radius reaches this limit. It should indicate the absolute accuracy that is required in the final values of the variables.
Constraint: .
Consistency constraints, the solver stops with
NE_REAL_2 if not met:
- .
- .
DFO Version | | Default |
At Mark 27, the underlying algorithm of e04ffc underwent significant changes. This option allows you to continue using the Mark 26 version if it is set to ''. By default (recommended), the latest version of the code is called.
Constraint: or .
Infinite Bound Size | | Default |
This defines the ‘infinite’ bound in the definition of the problem constraints. Any upper bound greater than or equal to will be regarded as (and similarly any lower bound less than or equal to will be regarded as ). Note that a modification of this optional parameter does not influence constraints which have already been defined; only the constraints formulated after the change will be affected.
Constraint: .
Monitoring File | | Default |
(See
Section 3.1.1 in the Introduction to the NAG Library CL Interface for further information on NAG data types.)
If
, the
Nag_FileID number (as returned from
x04acc)
for the secondary (monitoring) output. If
, no secondary output is provided. The information output to this file ID is controlled by
.
Constraint: .
Monitoring Level | | Default |
This parameter sets the amount of information detail that will be printed by the solver to the secondary output. The meaning of the levels is the same as with .
Constraint: .
Print File | | Default
|
(See
Section 3.1.1 in the Introduction to the NAG Library CL Interface for further information on NAG data types.)
If
, the
Nag_FileID number (as returned from
x04acc,
stdout as the default)
for the primary output of the solver. If
, the primary output is completely turned off independently of other settings. The information output to this unit is controlled by
.
Constraint: .
This parameter defines how detailed information should be printed by the solver to the primary and secondary output.
|
Output |
|
No output from the solver. |
|
The Header and Summary. |
, , , |
Additionally, the Iteration log. |
Constraint: .
Print Options | | Default |
If , a listing of optional parameters will be printed to the primary output and is always printed to the secondary output.
Constraint: or .
Print Solution | | Default |
If , the solution will be printed to the primary and secondary output.
Constraint: or .
This parameter turns on timings of various parts of the algorithm to give a better overview of where most of the time is spent. This might be helpful for a choice of different solving approaches. It is possible to choose between CPU and wall clock time. Choice is equivalent to .
Constraint: , , or .
A limit to the number of seconds that the solver can use to solve one problem. If during the convergence check this limit is exceeded, the solver will terminate with
NE_TIME_LIMIT.
Constraint: .