NAG FL Interface
e04mkf (handle_​solve_​lp_​simplex)

Note: this routine 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.
Settings help

FL Name Style:


FL Specification Language:


1 Purpose

e04mkf is a solver from the NAG optimization modelling suite for large-scale Linear Programming (LP) problems. It is a simplex method optimization solver based on the HiGHS software package.

2 Specification

Fortran Interface
Subroutine e04mkf ( handle, nvar, x, nnzu, u, rinfo, stats, monit, iuser, ruser, cpuser, ifail)
Integer, Intent (In) :: nvar, nnzu
Integer, Intent (Inout) :: iuser(*), ifail
Real (Kind=nag_wp), Intent (Inout) :: x(nvar), u(nnzu), ruser(*)
Real (Kind=nag_wp), Intent (Out) :: rinfo(100), stats(100)
Type (c_ptr), Intent (In) :: handle, cpuser
External :: monit
C Header Interface
#include <nag.h>
void  e04mkf_ (void **handle, const Integer *nvar, double x[], const Integer *nnzu, double u[], double rinfo[], double stats[],
void (NAG_CALL *monit)(void **handle, const double rinfo[], const double stats[], Integer iuser[], double ruser[], void **cpuser, Integer *inform),
Integer iuser[], double ruser[], void **cpuser, Integer *ifail)
The routine may be called by the names e04mkf or nagf_opt_handle_solve_lp_simplex.

3 Description

e04mkf solves a large-scale linear optimization problem in the following form:
minimize xn cTx   (a) subject to   lAAxuA   (b) lxxux ,   (c) (1)
where n is the number of decision variables and m is the number of linear constraints. Here c, x, lx, ux are n-dimensional vectors, A is an m×n sparse matrix and lA, uA are m-dimensional vectors.
e04mkf solves linear programming 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 routines in the NAG optimization modelling suite. First, the problem handle is initialized by calling e04raf. Then some of the routines e04ref, e04rff, e04rhf or e04rjf may be called to formulate the objective function, bounds of the variables, and the block of linear constraints, respectively. Once the problem is fully set, the handle may be passed to the solver. When the handle is not needed anymore, e04rzf should be called to destroy it and deallocate the memory held within. See Section 3.1 in the E04 Chapter Introduction for more details about the NAG optimization modelling suite.
The solver method can be modified by various optional parameters (see Section 12) which can be set by e04zmf and e04zpf anytime between the initialization of the handle by e04raf and a call to the solver. Once the solver has finished, options may be modified for the next solve. The solver may be called repeatedly with various optional parameters.
The optional parameter Task may be used to switch the problem to maximization or to ignore the objective function and find only a feasible point.
Several options may have significant impact on the performance of the solver. Even if the defaults were chosen to suit the majority of problems, it is recommended to experiment in order to find the most suitable set of options for a particular problem, see Section 12 for further details.
e04mkf is a complement to the interior point method solver e04mtf. It is recommended to try both solvers to determine which best suits your application.

3.1 Structure of the Lagrangian Multipliers

The algorithm works internally with estimates of both the decision variables, denoted by x, and the Lagrangian multipliers (dual variables), denoted by u. The multipliers u are stored in the array u and conform to the structure of the constraints.
If the simple bounds have been defined (e04rhf was successfully called), the first 2n elements of u belong to the corresponding Lagrangian multipliers, interleaving a multiplier for the lower and the upper bound for each xi. If any of the bounds were set to infinity, the corresponding Lagrangian multipliers are set to 0 and may be ignored.
Similarly, the following 2m elements of u belong to multipliers for the linear constraints (if e04rjf has been successfully called). The organization is the same, i.e., the multipliers for each constraint for the lower and upper bounds are alternated and zeros are used for any missing (infinite bound) constraints.
Some solvers merge multipliers for both lower and upper inequality into one element whose sign determines the inequality. Negative multipliers are associated with the upper bounds and positive with the lower bounds. An equivalent result can be achieved with this storage scheme by subtracting the upper bound multiplier from the lower one. This is also consistent with equality constraints.

4 References

Huangfu Q, and Hall J.A. J. (2018) Parallelizing the dual revised simplex method Mathematical Programming Computation 10(1) 119–142
Nocedal J and Wright S J (2006) Numerical Optimization (2nd Edition) Springer Series in Operations Research, Springer, New York

5 Arguments

1: handle Type (c_ptr) Input
On entry: the handle to the problem. It needs to be initialized (e.g., by e04raf) and to hold a problem formulation compatible with e04mkf. It must not be changed between calls to the NAG optimization modelling suite.
2: nvar Integer Input
On entry: n, the current number of decision variables x in the model.
3: x(nvar) Real (Kind=nag_wp) array Input/Output
On entry: x0, the initial estimates of the variables, x.
On exit: the final values of the variables, x.
4: nnzu Integer Input
On entry: the dimension of array u.
If nnzu=0, u will not be referenced; otherwise, it needs to match the dimension of constraints defined by e04rhf and e04rjf as explained in Section 3.1.
Constraint: nnzu0.
5: u(nnzu) Real (Kind=nag_wp) array Input/Output
Note: if nnzu>0, u holds Lagrange multipliers (dual variables) for the bound constraints and linear constraints. If nnzu=0, u will not be referenced.
On entry: optionally provides the initial estimates of Lagrange multipliers. If there are no initial estimates available, then set to zero.
On exit: the final values of the variables u.
6: rinfo(100) Real (Kind=nag_wp) array Output
On exit: error measures and various indicators of the algorithm as given in the table below:
1 Value of the primal objective.
2 The maximum violation of a bound on a variable.
3 The sum of violations of bounds by variables.
4 The maximum dual feasibility violation.
5 The sum of dual feasibility violations.
6100 Reserved for future use.
7: stats(100) Real (Kind=nag_wp) array Output
On exit: solver statistics as given in the table below.
1 Total number of simplex iterations performed.
2 Total time spent in the solver.
3100 Reserved for future use.
8: monit Subroutine, supplied by the NAG Library or the user. External Procedure
monit is reserved for future releases of the NAG Library which will allow you to monitor the progress of the optimization. It will never be called in the current implementation and monit may be the dummy subroutine e04mku included in the NAG Library.
The specification of monit is:
Fortran Interface
Subroutine monit ( handle, rinfo, stats, iuser, ruser, cpuser, inform)
Integer, Intent (Inout) :: iuser(*), inform
Real (Kind=nag_wp), Intent (In) :: rinfo(100), stats(100)
Real (Kind=nag_wp), Intent (Inout) :: ruser(*)
Type (c_ptr), Intent (In) :: handle, cpuser
C Header Interface
void  monit (void **handle, const double rinfo[], const double stats[], Integer iuser[], double ruser[], void **cpuser, Integer *inform)
1: handle Type (c_ptr) Input
On entry: the handle to the problem as provided on entry to e04mkf. It may be used to query the model during the solve, and extract the current approximation of the solution by e04rxf.
2: rinfo(100) Real (Kind=nag_wp) array Input
On entry: error measures and various indicators at the end of the current iteration as described in rinfo.
3: stats(100) Real (Kind=nag_wp) array Input
On entry: solver statistics at the end of the current iteration as described in stats, however, elements 2, 3, 5, 9, 10, 11 and 15 refer to the quantities in the last iteration rather than accumulated over all iterations through the whole algorithm run.
4: iuser(*) Integer array User Workspace
5: ruser(*) Real (Kind=nag_wp) array User Workspace
6: cpuser Type (c_ptr) User Workspace
monit is called with the arguments iuser, ruser and cpuser as supplied to e04mkf. You should use the arrays iuser and ruser, and the data handle cpuser to supply information to monit.
7: inform Integer Input/Output
On entry: a non-negative value.
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.
monit must either be a module subprogram USEd by, or declared as EXTERNAL in, the (sub)program from which e04mkf is called. Arguments denoted as Input must not be changed by this procedure.
9: iuser(*) Integer array User Workspace
10: ruser(*) Real (Kind=nag_wp) array User Workspace
11: cpuser Type (c_ptr) User Workspace
iuser, ruser and cpuser are not used by e04mkf, but are passed directly to monit and may be used to pass information to this routine. If you do not need to reference cpuser, it should be initialized to c_null_ptr.
12: ifail Integer Input/Output
On entry: ifail must be set to 0, −1 or 1 to set behaviour on detection of an error; these values have no effect when no error is detected.
A value of 0 causes the printing of an error message and program execution will be halted; otherwise program execution continues. A value of −1 means that an error message is printed while a value of 1 means that it is not.
If halting is not appropriate, the value −1 or 1 is recommended. If message printing is undesirable, then the value 1 is recommended. Otherwise, the value −1 is recommended since useful values can be provided in some output arguments even when ifail0 on exit. When the value -1 or 1 is used it is essential to test the value of ifail on exit.
On exit: ifail=0 unless the routine detects an error or a warning has been flagged (see Section 6).

6 Error Indicators and Warnings

If on entry ifail=0 or −1, explanatory error messages are output on the current error message unit (as defined by x04aaf).
Errors or warnings detected by the routine:
Note: in some cases e04mkf may return useful information.
ifail=1
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.
ifail=2
The problem is already being solved.
This solver does not support the model defined in the handle.
ifail=4
On entry, nvar=value, expected value=value.
Constraint: nvar must match the current number of variables of the model in the handle.
ifail=5
On entry, nnzu=value.
nnzu does not match the size of the Lagrangian multipliers for constraints.
The correct value is 0 for no constraints.
On entry, nnzu=value.
nnzu does not match the size of the Lagrangian multipliers for constraints.
The correct value is either 0 or value.
ifail=22
Maximum number of iterations exceeded.
ifail=23
The solver terminated after the maximum time allowed was exhausted.
Maximum number of seconds exceeded. Use optional parameter Time Limit to change the limit.
ifail=51
The problem was found to be primal infeasible.
ifail=52
The problem was found to be dual infeasible.
This means the primal unboundness was detected.
ifail=53
The problem seems to be primal or dual infeasible, the algorithm was stopped.
ifail=-99
An unexpected error has been triggered by this routine. Please contact NAG.
See Section 7 in the Introduction to the NAG Library FL Interface for further information.
ifail=-399
Your licence key may have expired or may not have been installed correctly.
See Section 8 in the Introduction to the NAG Library FL Interface for further information.
ifail=-999
Dynamic memory allocation failed.
See Section 9 in the Introduction to the NAG Library FL Interface for further information.

7 Accuracy

The accuracy of the solution is determined by optional parameters Simplex Primal Feasibility Tol and Simplex Dual Feasibility Tol.
If ifail=0 on the final exit, the returned point satisfies feasibility to the requested accuracy and thus it is a good estimate of the solution.

8 Parallelism and Performance

Background information to multithreading can be found in the Multithreading documentation.
e04mkf 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.
Parallel strategies of the dual simplex method are available, see Simplex Strategy for more details.

9 Further Comments

9.1 Description of the Printed Output

The solver can print information to give an overview of the problem and of the progress of the computation. The output may be sent to two independent streams (files) which are set by optional parameters Print File and Monitoring File. Optional parameters Print Level, Print Solution and Print Options 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 (Print File=6, Print Level=2), six sections are printed to the standard output:
Header
The header is a message indicating the start of the solver. It should look like:
 ---------------------------------------
  E04MK, Simplex method for LP problems
 ---------------------------------------
Optional parameters list
The list shows all options of the solver, each displayed on one line. The output contains the option name, its current value and an indicator for how it was set. The options unchanged from the default setting are noted by ‘d’, options you set are noted by ‘U’, and options reset by the solver are noted by ‘S’. Note that the output format is compatible with the file format expected by e04zpf. The output might look as follows:
     Simplex Presolve              =                 Yes     * d
     Simplex Start Type            =                Cold     * d
     Simplex Strategy              =         Dual Serial     * d
     Simplex Random Seed           =                   0     * d
     Simplex Iteration Limit       =                 100     * U
     Simplex Primal Feasibility Tol=         1.00000E-07     * d
Problem statistics
If Print Level2, statistics on the original problems are printed, for example:
 Problem Statistics
   No of variables                  7
     free (unconstrained)           0
     bounded                        7
   No of lin. constraints           7
     nonzeroes                     41
   Objective function          Linear
Iteration log
If Print Level2, the solver prints the status of each iteration. The output shows the current primal objective function value, the number of variables violating a bound, the sum of violations of bounds by variables and time spent. The output might look as follows:
  Iteration        Objective     Infeasibilities num(sum)
          0    -5.1000178844e-02 Pr: 6(0.166925) 0s
          8     2.3596482085e-02 Pr: 0(0) 0s
Summary
Once the solver finishes, a detailed summary is produced:
 ------------------------------------------------------------------------------
 Status: converged, an optimal solution found
 ------------------------------------------------------------------------------
 Final objective value                2.359648E-02
 Primal infeasibility                 0.000000E+00
 Dual infeasibility                   0.000000E+00
 Iterations                                      8
It starts with the status line of the overall result which matches the ifail value and is followed by the final primal objective values and dual objective bound as well as the error measures and iteration count.
Solution
If Print Solution=X, the values of the primal variables and their bounds on the primary and secondary outputs. It might look as follows:
 Primal variables:
   idx   Lower bound       Value       Upper bound
     1  -1.00000E-02   -1.00000E-02    1.00000E-02
     2  -1.00000E-01   -1.00000E-01    1.50000E-01
     3  -1.00000E-02    3.00000E-02    3.00000E-02
     4  -4.00000E-02    2.00000E-02    2.00000E-02
     5  -1.00000E-01   -6.74853E-02    5.00000E-02
     6  -1.00000E-02   -2.28013E-03         inf
     7  -1.00000E-02   -2.34528E-04         inf
If Print Solution=YES or ALL, the values of the dual variables are also printed. It should look as follows:
 Box bounds dual variables:
   idx   Lower bound       Value       Upper bound       Value
     1  -1.00000E-02    3.30098E-01    1.00000E-02    0.00000E+00
     2  -1.00000E-01    1.43844E-02    1.50000E-01    0.00000E+00
     3  -1.00000E-02    0.00000E+00    3.00000E-02    9.09967E-02
     4  -4.00000E-02    0.00000E+00    2.00000E-02    7.66124E-02
     5  -1.00000E-01    0.00000E+00    5.00000E-02    0.00000E+00
     6  -1.00000E-02    0.00000E+00         inf       0.00000E+00
     7  -1.00000E-02    0.00000E+00         inf       0.00000E+00

 Linear constraints dual variables:
   idx   Lower bound       Value       Upper bound       Value
     1  -1.30000E-01    0.00000E+00   -1.30000E-01    1.43111E+00
     2       -inf       0.00000E+00   -4.90000E-03    0.00000E+00
     3       -inf       0.00000E+00   -6.40000E-03    0.00000E+00
     4       -inf       0.00000E+00   -3.70000E-03    0.00000E+00
     5       -inf       0.00000E+00   -1.20000E-03    0.00000E+00
     6  -9.92000E-02    1.50098E+00         inf       0.00000E+00
     7  -3.00000E-03    1.51661E+00    2.00000E-03    0.00000E+00

9.2 Retrieving and Storing a Basis

A basis refers to a partitioning of the primal and slack variables. This partitioning plays a fundamental role in the underlying simplex algorithms of e04mkf.
e04mkf stores in the handle under the label ‘BASIS’ (or ‘WARM START BASIS’) the final state of the primal and slack variables. It also retrieves this information from the handle when a warm start is requested using optional parameter Simplex Start Type=WARM, see Section 9.3.
The stored integer array is of length nvar+m, where m is the number of linear constraints, and the values describe the state of the primal variables x and the slacks as follows:
BASIS(i) State of variable i Usual value
0 Nonbasic lower bound, including fixed variables
1 Basic between lower and upper bounds
2 Nonbasic upper bound
3 Nonbasic free variable
4 Nonbasic no specific bound information
The basis can be stored or retrieved from the handle with e04rwf using cmdstr='BASIS' or 'WARM START BASIS' and liarr=nvar+m.

9.3 Warm Starting

Warm starting a problem refers to providing a starting point x and additional information used by the solver to start the optimization process, for example, by providing information on which variables are active or nonbasic and thus hinting on the possible final active-set or providing a good initial guess for the final values of the Lagrange multipliers.
In order to warm start e04mkf, it is necessary to
  1. (i)provide on the call to e04mkf the initial guess x0;
  2. (ii)provide on the call to e04mkf the initial guess for the Lagrange multipliers u. If nnzu>0 then the solver will access array u and so it must be provided. If nothing is known about the multipliers then u should be set to zero in the call to e04mkf;
  3. (iii)store in the handle (under the label ‘BASIS’ or ‘WARM START BASIS’) a valid basis vector of length nvar+m. See Section 9.2;
  4. (iv)request the solver to attempt a warm start by setting optional parameter Simplex Start Type=WARM.
If optional parameter Simplex Start Type=WARM but e04mkf does not find the required information or it is inconsistent, then it will revert to a cold start.
Note: e04mkf at exit (if the information is available) stores the basis arrays into the handle under the label ‘BASIS’. A next call to e04mkf with the same handle along with Simplex Start Type=WARM, and the latest x and u, should trigger a warm start successfully. It will also notify the source of the warm starting information with a message similar to:
 Warm start information loaded successfully from handle.
       Handle [WARM START BASIS] data origin: solver
Which indicates that the warm start information was successfully loaded. It also informs that the basis information was provided by the solver itself, say, from a previous call to e04mkf.

10 Example

This example demonstrates how to use e04mkf to solve a small LP problem:
minimize
-0.02x1 -0.2x2 -0.2x3 -0.2x4 -0.2x5 +0.04x6 +0.04x7  
subject to the bounds
-0.01x10.01 -0.10x20.15 -0.01x30.03 -0.04x40.02 -0.10x50.05 -0.01x60.00 -0.01x70.00  
and the general constraints
x1 + x2 + x3 + x4 + x5 + x6 + x7 = -0.13 0.15x1 + 0.04x2 + 0.02x3 + 0.04x4 + 0.02x5 + 0.01x6 + 0.03x7 -0.0049 0.03x1 + 0.05x2 + 0.08x3 + 0.02x4 + 0.06x5 + 0.01x6 -0.0064 00.02x1 + 0.04x2 + 0.01x3 + 0.02x4 + 0.02x5 -0.0037 0.02x1 + 0.03x2 + 0.01x5 -0.0012 -0.0992 0.70x1 + 0.75x2 + 0.80x3 + 0.75x4 + 0.80x5 + 0.97x6 -0.003 0.02x1 + 0.06x2 + 0.08x3 + 0.12x4 + 0.02x5 + 0.01x6 + 0.97x7 -0.002.  

10.1 Program Text

Program Text (e04mkfe.f90)

10.2 Program Data

Program Data (e04mkfe.d)

10.3 Program Results

Program Results (e04mkfe.r)

11 Algorithmic Details

All iterates of the simplex method are vertices of the feasible polytope. Most steps consist of a move from one vertex to an adjacent one for which the basis differs in exactly one component. The matrix A is partitioned into a nonsingular basis submatrix and a nonbasis submatrix. Then by setting the nonbasis variables to zero, the basis variables can be calculated by the LU factorization. Based on the Lagrangian multipliers and pricing, a column of basis is replaced by a variable from the nonbasis matrix. Dual simplex method starts with a feasible point for the dual problem and then uses the same concept of matrix splitting etc. Dual simplex is often faster on many practical problems. There are many important aspects of an implementation of the simplex method, such as the underlying linear algebra, selection of the entering variable and handling of degenerate steps, see Huangfu and Hall (2018) and Nocedal and Wright (2006) for more details.

12 Optional Parameters

Several optional parameters in e04mkf define choices in the problem specification or the algorithm logic. In order to reduce the number of formal arguments of e04mkf 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 e04zmf 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.
If any options are set by the solver (typically those with the choice of AUTO), their value can be retrieved by e04znf. If the solver is called again, any such arguments are reset to their default values and the decision is made again.
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:
All options accept the value DEFAULT to return single options to their default states.
Keywords and character values are case and white space insensitive.
Defaults
This special keyword may be used to reset all optional parameters to their default values. Any value given with this keyword will be ignored.
Infinite Bound SizerDefault =1020
This defines the ‘infinite’ bound bigbnd in the definition of the problem constraints. Any upper bound greater than or equal to bigbnd will be regarded as + (and similarly any lower bound less than or equal to -bigbnd 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: Infinite Bound Size1000.
Simplex PresolveaDefault =YES
This parameter allows you to turn the presolving of the problem off completely. If the presolver is turned off, the solver will try to handle the original problem you have given. In such a case, the presence of linear dependencies in the constraint matrix can cause numerical instabilities to occur. In normal circumstances, it is recommended to use the presolve which is the default.
Constraint: Simplex Presolve=YES or NO.
Simplex Start TypeaDefault =COLD
Defines whether to perform a cold or warm start. If warm start data is not provided or is considered to have an unexpected size or content, then the solver will revert to perform a cold start on the problem. See Section 9.3 on how to correctly warm start a problem.
Constraint: Simplex Start Type=COLD or WARM.
Simplex StrategyaDefault =DUAL SERIAL
This parameter controls the strategy employed by the simplex algorithm implemetation. By default the dual simplex solver runs in serial. Unless a Linear Programming (LP) problem has significantly more variables than constraints, the parallel dual simplex solver is unlikely to be worth using. If a parallel strategy is chosen, e04mkf will use half the available threads on the machine and automatically choose maximum level of concurrency.
a Meaning
AUTO The solver chooses the strategy automatically
DUAL SERIAL Dual simplex method running in serial
DUAL PAMI Dual simplex method with Parallelization Across Multiple Iterations
DUAL SIP Dual simplex method with Single Iteration Parallelism
PRIMAL Primal simplex method running in serial
Constraint: Simplex Strategy=AUTO, DUAL SERIAL, DUAL PAMI, DUAL SIP or PRIMAL.
Simplex Random SeediDefault =0
Initial seed used for random permutation and factor accuracy assessment.
Constraint: Simplex Random Seed0.
Simplex Iteration LimitiDefault =Imax
The maximum number of iterations to be performed by e04mkf. Setting the option too low might lead to ifail=22.
Constraint: Simplex Iteration Limit0.
Simplex Small Matrix ValuerDefault =10−9
Lower limit on the absolute value of the linear constraint coefficients in the matrix A defined in (1). Values smaller than this will be treated as zero.
Constraint: Simplex Small Matrix Value10−12.
Simplex Primal Feasibility TolrDefault =10−7
The maximum acceptable absolute violation in each primal constraint (bound and linear constraint) at a ‘feasible’ point; i.e., a primal constraint is considered satisfied if its violation does not exceed Simplex Primal Feasibility Tol r. For example, a variable xj is considered to be feasible with respect to the bound constraint ljxjuj only if (lj-r)xj(uj+r).
Constraint: Simplex Primal Feasibility Tol>10−10.
Simplex Dual Feasibility TolrDefault =10−7
Similar to Simplex Primal Feasibility Tol, this parameter defines the maximum acceptable absolute violation in each dual constraint (bound and linear constraint) at a ‘feasible’ point; i.e., a dual constraint is considered satisfied if its violation does not exceed Simplex Dual Feasibility Tol r.
Constraint: Simplex Dual Feasibility Tol>10−10.
Monitoring FileiDefault =−1
If i0, the unit number for the secondary (monitoring) output. If set to −1, no secondary output is provided. The following information is output to the unit:
Constraint: Monitoring File−1.
Monitoring LeveliDefault =4
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 Print Level.
Constraint: 0Monitoring Level5.
Print FileiDefault =advisory message unit number
If i0, the unit number for the primary output of the solver. If Print File=−1, the primary output is completely turned off independently of other settings. The default value is the advisory message unit number as defined by x04abf at the time of the optional parameters initialization, e.g., at the initialization of the handle. The following information is output to the unit:
Constraint: Print File−1.
Print LeveliDefault =2
This parameter defines how detailed information should be printed by the solver to the primary output.
i Output
0 No output from the solver
1 The Header and Summary
2, 3, 4, 5 Additionally, the Iteration log
Constraint: 0Print Level5.
Print OptionsaDefault =YES
If Print Options=YES, a listing of optional parameters will be printed to the primary and secondary output.
Constraint: Print Options=YES or NO.
Print SolutionaDefault =NO
If Print Solution=X, the final values of the primal variables are printed on the primary and secondary outputs.
If Print Solution=YES or ALL, in addition to the primal variables, the final values of the dual variables are printed on the primary and secondary outputs.
Constraint: Print Solution=YES, NO, X or ALL.
TaskaDefault =MINIMIZE
This parameter specifies the required direction of the optimization. If Task=FEASIBLE POINT, the objective function (if set) is ignored and the algorithm stops as soon as a feasible point is found with respect to the given tolerance. If no objective function is set, Task reverts to FEASIBLE POINT automatically.
Constraint: Task=MINIMIZE, MAXIMIZE or FEASIBLE POINT.
Time LimitrDefault =106
This parameter specifies a limit in seconds that the solver can use to solve one problem. If during the convergence check this limit is exceeded, the solver will terminate with ifail=23 error message.
Constraint: Time Limit>0.