Note:this routine usesoptional parametersto 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.
The routine may be called by the names e04mtf or nagf_opt_handle_solve_lp_ipm.
e04mtf solves a large-scale linear optimization problem in the following form:
where is the number of decision variables and is the number of linear constraints. Here , , , are -dimensional vectors, is an sparse matrix and , are -dimensional vectors.
e04mtf implements two algorithmic variants of the interior point method for solving linear optimization problems: the infeasible Primal-Dual interior point method and homogeneous Self-Dual interior point method. In general, the Self-Dual algorithm has a slightly higher price per iteration, however, it is able to declare infeasibility or unboundness of the problem, whereas the Primal-Dual relies, in this case, on heuristics. For a detailed description of both algorithms see Section 11. The algorithm is chosen by the LPIPM Algorithm, the default is Primal-Dual.
e04mtf 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,e04rhfore04rjf 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 e04zmfande04zpf 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 Sections 11 and 12 for further details.
3.1Structure of the Lagrangian Multipliers
The algorithm works internally with estimates of both the decision variables, denoted by , and the Lagrangian multipliers (dual variables), denoted by . The multipliers 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 elements of u belong to the corresponding Lagrangian multipliers, interleaving a multiplier for the lower and the upper bound for each . If any of the bounds were set to infinity, the corresponding Lagrangian multipliers are set to and may be ignored.
Similarly, the following 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.
Andersen E D, Gondzio J, Mészáros C and Xu X (1996) Implementation of interior point methods for large scale linear programming HEC/Université de Genève
Colombo M and Gondzio J (2008) Further development of multiple centrality correctors for interior point methods Computational Optimization and Algorithms41(3) 277–305
Goldfard D and Scheinberg K (2004) A product-form Cholesky factorization method for handling dense columns in interior point methods for linear programming Mathematical Programming99(1) 1–34
Gondzio J (1996) Multiple centrality corrections in a primal-dual method for linear programming Computational Optimization and Algorithms6(2) 137–156
Gondzio J (2012) Interior point methods 25 years later European Journal of Operations Research218(3) 587–601
Hogg J D and Scott J A (2011) HSL MA97: a bit-compatible multifrontal code for sparse symmetric systems RAL Technical Report. RAL-TR-2011-024
Karypis G and Kumar V (1998) A fast and high quality multilevel scheme for partitioning irregular graphs SIAM J. Sci. Comput.20(1) 359–392
Mészáros C (1996) The efficient implementation of interior point methods for
linear programming and their applications PhD Thesis Eötvös Loránd University of Science, Budapest
Nocedal J and Wright S J (2006) Numerical Optimization (2nd Edition) Springer Series in Operations Research, Springer, New York
Wright S W (1997) Primal-dual interior point methods SIAM, Philadelphia
Xu X, Hung P-F and Ye Y (1996) A simplified homogeneous and self-dual linear programming algorithm and its implementation Annals of Operations Research62(1) 151–171
1: – 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 e04mtf. It must not be changed between calls to the NAG optimization modelling suite.
2: – IntegerInput
On entry: , the current number of decision variables in the model.
3: – Real (Kind=nag_wp) arrayInput/Output
On entry: the input of x is reserved for future releases of the NAG Library and it is ignored at the moment.
On exit: solver statistics as given in the table below. Note that time statistics are provided only if Stats Time is set (the default is ), the measured time is returned in seconds.
Number of iterations.
Total number of centrality correction steps performed.
Total number of iterative refinements performed.
Value of the perturbation added to the diagonal in the normal equation formulation or on the zero block in the augmented system formulation.
Total number of factorizations performed.
Total time spent in the solver.
Time spent in the presolve phase.
Time spent in the last iteration.
Total time spent factorizing the system matrix.
Total time spent backsolving the system matrix.
Total time spent in the multiple centrality correctors phase.
Time spent in the initialization phase.
Number of nonzeros in the system matrix.
Number of nonzeros in the system matrix factor.
Maximum error of the backsolve.
Number of columns in considered dense by the solver.
Maximum number of centrality corrector steps.
Reserved for future use.
8: – Subroutine, supplied by the NAG Library or the user.External Procedure
monit is provided to enable you to monitor the progress of the optimization. It is invoked at the end of every th iteration where is given by the optional parameter LPIPM Monitor Frequency (the default is , monit is not called).
monit may be the dummy subroutine e04mtu (e04mtu is included in the NAG Library).
On entry: the handle to the problem as provided on entry to e04mtf. It may be used to query the model during the solve, and extract the current approximation of the solution by e04rxf.
2: – Real (Kind=nag_wp) arrayInput
On entry: error measures and various indicators at the end of the current iteration as described in rinfo.
3: – Real (Kind=nag_wp) arrayInput
On entry: solver statistics at the end of the current iteration as described in stats, however, elements , , , , , and refer to the quantities in the last iteration rather than accumulated over all iterations through the whole algorithm run.
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 with ; otherwise, computations will continue.
monit must either be a module subprogram USEd by, or declared as EXTERNAL in, the (sub)program from which e04mtf is called. Arguments denoted as Input must not be changed by this procedure.
9: – Integer arrayUser Workspace
10: – Real (Kind=nag_wp) arrayUser Workspace
11: – Type (c_ptr)User Workspace
iuser, ruser and cpuser are not used by e04mtf, 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: – IntegerInput/Output
On entry: ifail must be set to , or to set behaviour on detection of an error; these values have no effect when no error is detected.
A value of causes the printing of an error message and program execution will be halted; otherwise program execution continues. A value of means that an error message is printed while a value of means that it is not.
If halting is not appropriate, the value or is recommended. If message printing is undesirable, then the value is recommended. Otherwise, the value is recommended since useful values can be provided in some output arguments even when on exit. When the value or is used it is essential to test the value of ifail on exit.
On exit: unless the routine detects an error or a warning has been flagged (see Section 6).
6Error Indicators and Warnings
If on entry or , 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 e04mtf may return useful information.
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.
The problem is already being solved.
This solver does not support the model defined in the handle.
On entry, , expected .
Constraint: nvar must match the current number of variables of the model in the handle.
On entry, . nnzu does not match the size of the Lagrangian multipliers for constraints. The correct value is for no constraints.
On entry, . nnzu does not match the size of the Lagrangian multipliers for constraints. The correct value is either or .
User requested termination during a monitoring step.
Maximum number of iterations exceeded.
No progress, stopping early.
The solver predicted that it is unable to make further progress and stopped prematurely. This might be due to the scaling of the problem, its conditioning or numerical difficulties.
The solver predicted that it is unable to reach a better estimate of the solution. However, the error measures indicate that the point is a reasonable approximation.
The problem was found to be primal infeasible.
The primal infeasibility was detected either during the presolve phase or by the Self-Dual algorithm.
The problem was found to be dual infeasible.
The dual infeasibility or unboundness was detected during the presolve phase or by the Self-Dual algorithm.
The problem seems to be primal or dual infeasible, the algorithm was stopped.
This error is returned if the internal heuristics detected the problem to be primal or dual infeasible. It is only raised by the Primal-Dual algorithm. It is recommended to rerun the problem with the Self-Dual algorithm to confirm the infeasibility.
An unexpected error has been triggered by this routine. Please
See Section 7 in the Introduction to the NAG Library FL Interface for further information.
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.
Dynamic memory allocation failed.
See Section 9 in the Introduction to the NAG Library FL Interface for further information.
If on the final exit, the returned point satisfies Karush–Kuhn–Tucker (KKT) conditions to the requested accuracy (under the default settings close to ) and thus it is a good estimate of the solution. If , some of the convergence conditions were not fully satisfied but the point is a reasonable estimate and still usable. Please refer to Section 11.3 and the description of the particular options.
8Parallelism and Performance
Background information to multithreading can be found in the Multithreading documentation.
e04mtf is threaded by NAG for parallel execution in multithreaded implementations of the NAG Library.
e04mtf 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 routine. Please also consult the Users' Note for your implementation for any additional implementation-specific information.
9.1Description 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 (, ), six sections are printed to the standard output:
Optional parameters list
The iteration log varies depending on which algorithm has been selected to solve the problem (Primal-Dual or Self-Dual).
The header is a message indicating the start of the solver. It should look like:
E04MT, Interior point 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:
Lp Presolve = Yes * d
Lpipm Algorithm = Primal-dual * d
Lpipm Centrality Correctors = -6 * U
Lpipm Iteration Limit = 100 * d
If , statistics on the original and the presolved problems are printed. More detailed statistics as well as a list of the presolve operations are also printed for Print Level or above, for example:
No of variables 7
free (unconstrained) 0
No of lin. constraints 7
Objective function Linear
Presolved Problem Measures
No of variables 13
free (unconstrained) 0
No of lin. constraints 7
If , the solver prints the status of each iteration.
If , the output shows the iteration number ( represents the starting point), the current primal and dual objective value, KKT measures (optimality, feasibility and complementarity), average complementarity error , number of centrality correction steps (MCC) performed and a column for additional information (I). Note that all these values are also available in rinfo and stats. The output might look as follows:
If , the output shows the iteration number ( represents the starting point), the current primal and dual objective value, convergence measures (primal infeasibility (12), dual infeasibility (13) and duality gap (14)), the value of the additional variable and the number of centrality correction steps performed. The output might look as follows:
Occasionally, when numerical instabilities are too big, the solver will restart the iteration and switch to an augmented system formulation. In such cases the letters RS will be printed in the information column (I).
If , for both the Primal-Dual and the Self-Dual algorithms, each iteration produces more information that expands over several lines. This additional information contains:
The method used (normal equation, augmented system);
The centring parameter ;
The total number of iterative refinements performed;
The number of iterative refinements performed in the centrality correction steps;
The number of factorizations performed at the current iteration;
The type of factorization performed (Cholesky, Bunch–Parlett);
The value of the perturbation added to the diagonal in the normal equation formulation or on the zero block in the augmented system formulation;
The total time spent in the iteration if Stats Time is not set to NO.
The output might look as follows:
----------- Details of Iteration 1 ------------
method Normal Equation
iterative refinements 0
iterative refinements wmcc 0
matrix type Cholesky
diagonal perturbation 0.00E+00
time iteration 0.02 sec
Once the solver finishes, a detailed summary is produced:
Status: converged, an optimal solution found
Final primal objective value -4.647531E+02
Final dual objective value -4.647531E+02
Absolute primal infeasibility 1.605940E-15
Relative primal infeasibility 1.210247E-16
Absolute dual infeasibility 4.272004E-12
Relative dual infeasibility 6.068111E-15
Absolute complementarity gap 9.387105E-07
Relative complementarity gap 2.507021E-10
It starts with the status line of the overall result which matches the ifail value and is followed by the final primal and dual objective values as well as the error measures and iteration count.
Optionally, if Stats Time is set, the timings of the different parts of the algorithm are displayed. It might look as follows:
Internal changes have been made to this routine as follows:
At Mark 28.7:
Updates that in general provide overall performance enhancements.
For details of all known issues which have been reported for the NAG Library please refer to the Known Issues.
This example demonstrates how to use e04mtf to solve a small LP problem with the two algorithms implemented (Primal-Dual and Self-Dual). The solver is called twice on the same handle with different values of optional parameters.
We solve the following linear programming problem:
For simplicity, we consider the following primal linear programming formulation
where , , and with full row rank. The dual formulation for (2) is given by
where and denote the dual variables. Solutions of the primal (2) and dual (3) problem are connected by the strong duality theory (see for example, Nocedal and Wright (2006)) and are characterized by the first order optimality conditions, the so-called Karush–Kuhn–Tucker (KKT) conditions, which are stated as follows:
where we define and as the diagonal matrices with the elements and , respectively, and as the -vector of ones.
The underlying algorithm applies an iterative method to find an optimal solution of the system (4) employing variants of Newton's method and modifying the search directions and step lengths so that the non-negative constraints are preserved at every iteration.
A direct solution of the nonlinear system of equations (4) by Newton's method is impractical as it exhibits slow progress towards the solution. Instead, a sequence of the following perturbed KKT conditions are solved so that the complementarity is driven to zero through the iteration sequence
Here is the average complementarity error at the current iteration , called duality measure, and , called centring parameter, is the reduction factor that we wish to achieve in the duality measure.
Each iteration of the Primal-Dual algorithm makes one step of Newton's method applied to the perturbed first order optimality conditions (5) with a given and . In particular, a Newton search direction is computed by solving a system of linear equations and a length of the step is determined so that the bounds are not violated. The residual of (4) and define stopping criteria and the algorithm terminates once they are reduced to the requested accuracy, see Section 11.3.
Given an , and , Newton's direction is obtained by solving the following system:
denote the violations of the primal and the dual constraints, respectively. Primal and dual infeasibilities, and , are reduced at the same rate , given a step size . The Primal-Dual algorithm does not require feasibility of the solutions during the optimization process. Feasibility is attained during the process as optimality is approached.
Once the system is solved, and are used to compute the maximum step sizes in primal space and dual space () such that the non-negativity of variables is preserved
where is a reduction parameter close to , typically . The next iterate is updated as follows:
Finally, the barrier parameter is decreased by a given factor and the process is repeated until the stopping criteria (see Section 11.3) or maximum number of iterations is reached.
11.1.1The Barrier Method
Note that there is also another way to obtain the perturbed KKT conditions (5). They can be derived starting from the primal formulation (2) and replacing the non-negativity constraints by a logarithmic barrier term with a barrier parameter . This approach leads to the primal logarithmic barrier problem defined as
and the first order optimality conditions for problem (7) are
Finally, by introducing and the same system of equations (5) is formulated.
11.2Homogeneous Self-Dual Algorithm
A homogeneous Self-Dual (HSD) embedding of the primal linear programming and its dual was proposed in Xu et al. (1996). As its name suggest, the HSD and its dual are equivalent. Self-Dual formulations embed the original problem (2) in a larger linear programming problem such that the latter is primal and dual feasible, with known feasible points, and from which solution we can extract optimal solutions or certificates of infeasibility of the original problem.
We define the homogeneous and Self-Dual linear feasibility (HLF) model as follows:
where and are two additional variables. The model (8) is a Self-Dual linear programming problem with zero right-hand side and a zero objective vector. If is a strictly complementarity solution for (8), then if , the linear programming problem has an optimal solution given by
and the duality gap is given by . The homogeneous algorithm is an application of the Primal-Dual method for the computation of a strictly complementarity solution to (8).
Homogeneous and Self-Dual interior point methods have several advantages besides an inherent ability to detect infeasibility (which improves the detection of divergence in Primal-Dual algorithms). The HSD model includes the ease of finding a suitable starting point and it is generally more robust in the presence of free variables. However, some disadvantages need to be noted: HSD is larger than the original problem. In particular, it increases the number of linear equations solved per iteration by one, requiring an extra backsolve step, which make it slightly slower than the Primal-Dual algorithm. Moreover, numerical experiments indicate that the required number of iterations on feasible problems might be slightly increased.
11.3.1Convergence – Optimal Termination
The Primal-Dual algorithm is stopped when the first order optimality conditions are satisfied to the requested accuracy. These conditions are relative primal and dual feasibility and duality gap, defined as:
relative dual feasibility
relative primal feasibility
relative duality gap
Furthermore, final absolute primal and dual infeasibilities, and duality gap are also returned. Here may be set using LPIPM Stop Tolerance and the norm denotes the 2-norm.
Similar to the Primal-Dual algorithm, the homogeneous Self-Dual algorithm is stopped when the following measures are satisfied to the requested accuracy.
relative primal feasibility
relative dual feasibility
relative duality gap
which measure the relative reduction in the primal, dual and gap infeasibility, respectively. In addition, an extra measure is considered to quantify the accuracy in the objective function, which is given by
Premature termination is triggered if the current iteration exhibits fast convergence and the optimality measures lie within a small range. In particular, the Self-Dual algorithm is stopped if the above termination conditions are met within a small factor and . This measure is tracked after the first iterations.
The Primal-Dual algorithm detects infeasible problems fairly reliably by using a set of heuristics. When several of these heuristics classify the problem as infeasible throughout a sufficient number of iterations, the algorithm is stopped.
Note that in order to obtain a certificate of infeasibility, the use of homogeneous Self-Dual algorithm is recommended, see Section 184.108.40.206.
The problem is concluded to be primal or dual infeasible if one of the following conditions hold:
1.Both the relative primal (12) and dual (13) feasibility of the HLF model (8) are satisfied and the value of satisfies
2.or if the following inequalities hold
Then the problem is declared dual infeasible if or primal infeasible otherwise.
The solver stops prematurely and reports suboptimal solution when it predicts that the current estimate of the solution will not be improved in subsequent iterations. In most cases the returned solution should be acceptable.
11.4Solving the KKT System
The solution of the Newton system of equations (6) is the most computationally costly operation. In practice, system (6) is reduced to the augmented system by eliminating from the last block of equations
and . This is a system of variables and constraints, symmetric and indefinite. Submatrix is diagonal and positive definite.
The system (16) can be reduced further by eliminating , to a positive definite system usually called normal equations defined as
Typically, formulation (17) is preferred for many problems as the system matrix can be factorized by a sparse Cholesky. However, this brings some well-known disadvantages: Ill-conditioning of the system is often observed during the final stages of the algorithm, and free (unbounded) variables require certain modifications. If matrix contains dense columns (columns with relatively many nonzeros), then has many nonzeros, which in turn makes the factorization expensive. On the other hand, solving the augmented system is usually slower, but it normally avoids the fill-in caused by dense columns and can handle free variables directly in the formulation.
e04mtf can detect and handle dense columns effectively: depending on the number and the density of the ‘dense’ columns, the solver may either choose to directly use an augmented system formulation or to treat these columns separately in a product-form Cholesky factorization as described in Goldfard and Scheinberg (2004). It is also possible to manually override the automatic choice via the optional parameter LPIPM System Formulation and let the solver use a normal equations or an augmented system formulation.
Badly scaled optimal solutions may present numerical challenges, therefore, iterative refinement using mixed-precision is employed for reducing the roundoff errors produced during the solution of the system. When the condition number of the system prevents the satisfactory use of iterative refinement, e04mtf switches automatically to an augmented system formulation, reporting RS (Restart) in the last column of the iteration log (I). Furthermore, e04mtf provides several scaling techniques to adjust the numerical characteristics of the problem data, see LPIPM Scaling.
Finally, factorization of the system matrix can degrade sparsity, so the resulting fill-in can be large, therefore, several ordering techniques are included to minimize it. e04mtf uses Harwell packages MA97 (see Hogg and Scott (2011) and HSL (2011)) for the underlying sparse linear algebra factorization and MC68 approximate minimum degree algorithm, and METIS (Karypis and Kumar (1998)) nested dissection algorithm for the ordering.
11.5Weighted Multiple Centrality Correctors
As previously stated, the factorization of the system at every iteration usually accounts for most of the computation time, therefore, it is always desirable to reuse the factors if possible and to reduce the total number of iterations. An efficient computational method is obtained by splitting the computation of the Newton direction into two steps, namely the affine-scaling direction and its correction step, called Mehrotra's predictor-corrector. However, Mehrotra's predictor-corrector technique aims to correct the affine-direction in a full step, which is considered an aggressive approach.
e04mtf implements a high-order method, called weighted multiple centrality correctors (WMCC), see Gondzio (1996) and Colombo and Gondzio (2008). This technique attempts to correct the affine-direction recursively as long as the step sizes increase at least by a fraction of a given aspiration level, up to a maximum number of times. The heuristic to determine the maximum number of WMCC is based on the ratio between the cost of the factorization and that of backsolving and, therefore, may lead to non-repeatable results. To avoid an undesired behaviour, you can fix the maximum number of WMCC with optional parameter LPIPM Centrality Correctors.
e04mtf includes an advance preprocessing phase (called presolve) to reduce the dimensions of the problem before passing it to the solver. The reduction in problem size generally improves the behaviour of the solver, shortening the total computation time. In addition, infeasibility may also be detected during preprocessing. The default behaviour of the presolve can be modified by LP Presolve.
The initial point is always computed using heuristics. Effective warm-starting strategies for interior point methods are still subject to intensive academic research, and it is not available in this release.
Several optional parameters in e04mtf define choices in the problem specification or the algorithm logic. In order to reduce the number of formal arguments of e04mtf 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 ), 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.
For each option, we give a summary line, a description of the optional parameter and details of constraints.
The summary line contains:
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 x02ajf).
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.
Infinite Bound Size
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.
This parameter allows you to reduce the level of presolving of the problem or turn it off completely. If the presolver is turned off, the solver will try to handle the problem you have given. In such a case, the presence of fixed variables or linear dependencies in the constraint matrix can cause numerical instabilities to occur. In normal circumstances, it is recommended to use the full presolve which is the default.
Constraint: , or .
As described in Section 11, e04mtf implements the infeasible Primal-Dual algorithm, see Section 11.1, and the homogeneous Self-Dual algorithm, see Section 11.2. This parameter controls which one to use.
Constraint: , , or .
LPIPM Centrality Correctors
This parameter controls the number of centrality correctors (see Section 11.5) used at each iteration. Each corrector step attempts to improve the current iterate for the price of additional solve(s) of the factorized system matrix in order to reduce the total number of iterations. Therefore, it trades the additional solves of the system with the number of factorizations. The more expensive the factorization is with respect to the solve, the more corrector steps should be allowed.
If , the maximum number of corrector steps will be computed by timing heuristics (the ratio between the times of the factorization and the solve in the first iteration) but will not be greater than . The number computed by the heuristic can be recovered after the solve or during a monitoring step in stats. This might cause non-repeatable results.
If , the maximum number of corrector steps will be set to .
If it is set to , no additional centrality correctors will be used and the algorithm reverts to Mehrotra's predictor-corrector.
LPIPM Iteration Limit
The maximum number of iterations to be performed by e04mtf. Setting the option too low might lead to .
LPIPM Max Iterative Refinement
This parameter controls the maximum number of iterative refinement iterations (see Section 11.4) used at each main iteration when . When solving the Normal Equations linear system for numerically challenging problems, mixed-precision iterative refinement may be used until the roundoff errors are reduced to an acceptable level or until the number of refinements reached its maximum value set by this parameter.
This parameter controls the type of scaling to be applied on the constraint matrix before solving the problem. More precisely, the scaling procedure will try to find diagonal matrices and such that the values in are of a similar order of magnitude. The solver is less likely to run into numerical difficulties when the constraint matrix is well scaled.
Constraint: , or .
LPIPM Monitor Frequency
This parameter defines the frequency of how often subroutine monit is called. If , the solver calls monit at the end of every th iteration. If it is set to , the subroutine is not called at all.
LPIPM Stop Tolerance
This parameter sets the value which is the tolerance for the convergence measures in the stopping criteria, see Section 11.3.
LPIPM Stop Tolerance 2
This parameter sets the additional tolerance used in the stopping criteria for the Self-Dual algorithm, see Section 11.3.
LPIPM System Formulation
As described in Section 11.4, e04mtf can internally work either with the normal equations formulation (17) or with the augmented system (16). A brief discussion of advantages and disadvantages is presented in Section 11.4. Option leaves the decision to the solver based on the structure of the constraints and it is the recommended option. This will typically lead to the normal equations formulation unless there are many dense columns or the system is significantly cheaper to factorize as the augmented system. Note that in some cases even if the solver might switch the formulation through the computation to the augmented system due to numerical instabilities or computational cost.
Constraint: , , , or .
If , the
for the secondary (monitoring) output. If set to , no secondary output is provided. The following information is output to the unit:
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.
If , the
for the primary output of the solver. If , 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:
This parameter defines how detailed information should be printed by the solver to the primary output.
No output from the solver
Only the final status and the primal and dual objective value
Problem statistics, one line per iteration showing the progress of the solution with respect to the convergence measures, final status and statistics
As level but each iteration line is longer, including step lengths and errors
As level but further details of each iteration are presented
If , a listing of optional parameters will be printed to the primary and secondary output.
Constraint: or .
If , the final values of the primal variables are printed on the primary and secondary outputs.
If or , in addition to the primal variables, the final values of the dual variables are printed on the primary and secondary outputs.
Constraint: , , or .
This parameter allows you to turn 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 .
This parameter specifies the required direction of the optimization. If , 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 automatically.