<?xml-stylesheet type="text/xsl" href="../styles/pmathml.xsl"?>
<!-- saved from url=(0014)about:internet -->
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dsi="http://www.w3.org/1999/xlink" xmlns:m="http://www.w3.org/1998/Math/MathML" xml:space="preserve"><head><meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"/><title>E04NFF/E04NFA : NAG Library, Mark 22</title><link rel="stylesheet" href="../styles/libdoc.css" type="text/css"/><script type="text/javascript">
   function showLevel(_levelId){
    var thisLevel = document.getElementById(_levelId);
    var thisplus = document.getElementById( _levelId.concat('plus'));
    var thisminus = document.getElementById( _levelId.concat('minus'));
    if(thisLevel.style.display != "block"){
     thisLevel.style.display = "block";
     thisplus.style.display = "none";
     thisminus.style.display = "inline";
     }
    else{
     thisLevel.style.display = "none";
     thisminus.style.display = "none";
     thisplus.style.display = "inline";
     }
    }
  </script></head><body><hr/><div><a class="rout" href="../../pdf/E04/e04nff.pdf">E04NFF/E04NFA (PDF version)</a></div><div><a class="chap" href="e04conts.xml">E04 Chapter Contents</a></div><div><a class="chapint" href="e04intro.xml">E04 Chapter Introduction</a></div>
<div><a class="htmltoc" href="../FRONTMATTER/manconts.xml">NAG Library Manual</a></div><hr/><h1 class="libdoc">NAG Library Routine Document<br/><br/>E04NFF/E04NFA</h1><div class="paramtext"><div class="header"><b>Note:</b>&#160; before using this routine, please read the Users' Note for your implementation to check the interpretation of <span class="bitalic">bold italicised</span> terms and other implementation-dependent details.</div></div> <div class="paramtext"><b>Note:</b> <span class="italic">this routine uses</span> <b>optional parameters</b> <span class="italic">to define choices in the problem specification and in the details of the algorithm. If you wish to use</span> default <span class="italic">settings for all of the optional parameters, you need only read <a class="sec" href="#purpose">Sections 1</a> to <a class="sec" href="#example">9</a> of this document. 
If, however, you wish to reset some or all of the settings please refer to 
<a class="sec" href="#algdetails">Section 10</a> for a detailed description of the algorithm, to 
<a class="sec" href="#optparams">Section 11</a> for a detailed description of the specification of the optional parameters and to 
<a class="sec" href="#monitoring">Section 12</a> for a detailed description of the monitoring information produced by the routine</span>.</div>
<div class="htmltoc">
<h2 class="htmltoc"><span class="htmltochead" onclick="showLevel('htmltoc');"><span class="htmltocplus" id="htmltocplus">+</span><span class="htmltocminus" id="htmltocminus">&#8722;</span></span>&#160;Contents</h2>
<div class="htmltocitem" id="htmltoc">
<div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#purpose">1&#160;&#160;<b>Purpose</b></a>
</div><div class="htmltoc">
<span class="htmltoc" onclick="showLevel('tocspecification');"><span class="htmltocplus" id="tocspecificationplus">+</span><span class="htmltocminus" id="tocspecificationminus">&#8722;</span></span>
<a class="htmltoc" href="#specification">2&#160;&#160;<b>Specification</b></a>
<div class="htmltocitem" id="tocspecification">
<div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#routFspec">2.1&#160;&#160;<b>Specification for E04NFF</b></a>
</div><div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#routAspec">2.2&#160;&#160;<b>Specification for E04NFA</b></a>
</div>
</div>
</div><div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#description">3&#160;&#160;<b>Description</b></a>
</div><div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#references">4&#160;&#160;<b>References</b></a>
</div><div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#parameters">5&#160;&#160;<b>Parameters</b></a>
</div><div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#errors">6&#160;&#160;<b>Error Indicators and Warnings</b></a>
</div><div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#accuracy">7&#160;&#160;<b>Accuracy</b></a>
</div><div class="htmltoc">
<span class="htmltoc" onclick="showLevel('tocfcomments');"><span class="htmltocplus" id="tocfcommentsplus">+</span><span class="htmltocminus" id="tocfcommentsminus">&#8722;</span></span>
<a class="htmltoc" href="#fcomments">8&#160;&#160;<b>Further Comments</b></a>
<div class="htmltocitem" id="tocfcomments">
<div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#fc-scaling">8.1&#160;&#160;<b>Scaling</b></a>
</div><div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#fc-printedoutput">8.2&#160;&#160;<b>Description of the Printed Output</b></a>
</div>
</div>
</div><div class="htmltoc">
<span class="htmltoc" onclick="showLevel('tocexample');"><span class="htmltocplus" id="tocexampleplus">+</span><span class="htmltocminus" id="tocexampleminus">&#8722;</span></span>
<a class="htmltoc" href="#example">9&#160;&#160;<b>Example</b></a>
<div class="htmltocitem" id="tocexample">
<div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#examtext">9.1&#160;&#160;<b>Program Text</b></a>
</div><div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#examdata">9.2&#160;&#160;<b>Program Data</b></a>
</div><div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#examresults">9.3&#160;&#160;<b>Program Results</b></a>
</div>
</div>
</div><div class="htmltoc">
<span class="htmltoc" onclick="showLevel('tocalgdetails');"><span class="htmltocplus" id="tocalgdetailsplus">+</span><span class="htmltocminus" id="tocalgdetailsminus">&#8722;</span></span>
<a class="htmltoc" href="#algdetails">10&#160;&#160;<b>Algorithmic Details</b></a>
<div class="htmltocitem" id="tocalgdetails">
<div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#ad-overview">10.1&#160;&#160;<b>Overview</b></a>
</div><div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#ad-search">10.2&#160;&#160;<b>Definition of Search Direction</b></a>
</div><div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#ad-mainiteration">10.3&#160;&#160;<b>Main Iteration</b></a>
</div><div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#ad-choosing">10.4&#160;&#160;<b>Choosing the Initial Working Set</b></a>
</div>
</div>
</div><div class="htmltoc">
<span class="htmltoc" onclick="showLevel('tocoptparams');"><span class="htmltocplus" id="tocoptparamsplus">+</span><span class="htmltocminus" id="tocoptparamsminus">&#8722;</span></span>
<a class="htmltoc" href="#optparams">11&#160;&#160;<b>Optional Parameters</b></a>
<div class="htmltocitem" id="tocoptparams">
<div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#op-checklist">11.1&#160;&#160;<b>Optional Parameter Checklist and Default Values</b></a>
</div><div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#op-description">11.2&#160;&#160;<b>Description of the Optional Parameters</b></a>
</div>
</div>
</div><div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#monitoring">12&#160;&#160;<b>Description of Monitoring Information</b></a>
</div>
</div>
</div><h2 class="standard"><a class="sec" name="purpose" id="purpose"/>1&#160;&#160;Purpose</h2>
<div class="paramtext">E04NFF/E04NFA solves general quadratic programming problems.  It is not intended for large sparse problems.</div>
<div class="paramtext">E04NFA is a version of E04NFF that has additional parameters in order to make it safe for use in multithreaded applications (see <a class="sec" href="#parameters">Section 5</a>).  The initialization routine <a class="rout" href="../E04/e04wbf.xml">E04WBF</a> <b>must</b> have been called before calling E04NFA.</div><h2 class="standard"><a class="sec" name="specification" id="specification"/>2&#160;&#160;Specification</h2><h3 class="standard"><a class="sec" name="routFspec" id="routFspec"/>2.1&#160;&#160;Specification for E04NFF</h3>
<table class="fspec"><tr><td class="tdfspec1">SUBROUTINE&#160;E04NFF&#160;(</td><td class="tdfspec2"><a class="arg" href="#N">N</a>, <a class="arg" href="#NCLIN">NCLIN</a>, <a class="arg" href="#A">A</a>, <a class="arg" href="#LDA">LDA</a>, <a class="arg" href="#BL">BL</a>, <a class="arg" href="#BU">BU</a>, <a class="arg" href="#CVEC">CVEC</a>, <a class="arg" href="#H">H</a>, <a class="arg" href="#LDH">LDH</a>, <a class="arg" href="#QPHESS">QPHESS</a>, <a class="arg" href="#ISTATE">ISTATE</a>, <a class="arg" href="#X">X</a>, <a class="arg" href="#ITER">ITER</a>, <a class="arg" href="#OBJ">OBJ</a>, <a class="arg" href="#AX">AX</a>, <a class="arg" href="#CLAMDA">CLAMDA</a>, <a class="arg" href="#IWORK">IWORK</a>, <a class="arg" href="#LIWORK">LIWORK</a>, <a class="arg" href="#WORK">WORK</a>, <a class="arg" href="#LWORK">LWORK</a>, <a class="arg" href="#IFAIL">IFAIL</a>)</td></tr><tr><td class="tdfspec1">INTEGER</td><td class="tdfspec2">N, NCLIN, LDA, LDH, ISTATE(N+NCLIN), ITER, IWORK(LIWORK), LIWORK, LWORK, IFAIL</td></tr><tr><td class="tdfspec1"><b><i>double&#160;precision</i></b></td><td class="tdfspec2">A(LDA,*), BL(N+NCLIN), BU(N+NCLIN), CVEC(*), H(LDH,*), X(N), OBJ, AX(max(1,NCLIN)), CLAMDA(N+NCLIN), WORK(LWORK)</td></tr><tr><td class="tdfspec1">EXTERNAL</td><td class="tdfspec2">QPHESS</td></tr></table><h3 class="standard"><a class="sec" name="routAspec" id="routAspec"/>2.2&#160;&#160;Specification for E04NFA</h3>
<table class="fspec"><tr><td class="tdfspec1">SUBROUTINE&#160;E04NFA&#160;(</td><td class="tdfspec2"><a class="arg" href="#N">N</a>, <a class="arg" href="#NCLIN">NCLIN</a>, <a class="arg" href="#A">A</a>, <a class="arg" href="#LDA">LDA</a>, <a class="arg" href="#BL">BL</a>, <a class="arg" href="#BU">BU</a>, <a class="arg" href="#CVEC">CVEC</a>, <a class="arg" href="#H">H</a>, <a class="arg" href="#LDH">LDH</a>, <a class="arg" href="#QPHESS">QPHESS</a>, <a class="arg" href="#ISTATE">ISTATE</a>, <a class="arg" href="#X">X</a>, <a class="arg" href="#ITER">ITER</a>, <a class="arg" href="#OBJ">OBJ</a>, <a class="arg" href="#AX">AX</a>, <a class="arg" href="#CLAMDA">CLAMDA</a>, <a class="arg" href="#IWORK">IWORK</a>, <a class="arg" href="#LIWORK">LIWORK</a>, <a class="arg" href="#WORK">WORK</a>, <a class="arg" href="#LWORK">LWORK</a>, <a class="arg" href="#IUSER">IUSER</a>, <a class="arg" href="#RUSER">RUSER</a>, <a class="arg" href="#LWSAV">LWSAV</a>, <a class="arg" href="#IWSAV">IWSAV</a>, <a class="arg" href="#RWSAV">RWSAV</a>, <a class="arg" href="#IFAIL">IFAIL</a>)</td></tr><tr><td class="tdfspec1">INTEGER</td><td class="tdfspec2">N, NCLIN, LDA, LDH, ISTATE(N+NCLIN), ITER, IWORK(LIWORK), LIWORK, LWORK, IUSER(*), IWSAV(610), IFAIL</td></tr><tr><td class="tdfspec1"><b><i>double&#160;precision</i></b></td><td class="tdfspec2">A(LDA,*), BL(N+NCLIN), BU(N+NCLIN), CVEC(*), H(LDH,*), X(N), OBJ, AX(max(1,NCLIN)), CLAMDA(N+NCLIN), WORK(LWORK), RUSER(*), RWSAV(475)</td></tr><tr><td class="tdfspec1">LOGICAL</td><td class="tdfspec2">LWSAV(120)</td></tr><tr><td class="tdfspec1">EXTERNAL</td><td class="tdfspec2">QPHESS</td></tr></table><div class="paramtext">Before calling E04NFA, or either of the option setting routines <a class="rout" href="../E04/e04ngf.xml">E04NGA</a> or <a class="rout" href="../E04/e04nhf.xml">E04NHA</a>, <a class="rout" href="../E04/e04wbf.xml">E04WBF</a>
<b>must</b> be called.  The specification for <a class="rout" href="../E04/e04wbf.xml">E04WBF</a> is:</div><table class="fspec"><tr><td class="tdfspec1">SUBROUTINE&#160;E04WBF&#160;(</td><td class="tdfspec2"><a class="arg" href="../E04/e04wbf.xml#RNAME">RNAME</a>, <a class="arg" href="../E04/e04wbf.xml#CWSAV">CWSAV</a>, <a class="arg" href="../E04/e04wbf.xml#LCWSAV">LCWSAV</a>, <a class="arg" href="../E04/e04wbf.xml#LWSAV">LWSAV</a>, <a class="arg" href="../E04/e04wbf.xml#LLWSAV">LLWSAV</a>, <a class="arg" href="../E04/e04wbf.xml#IWSAV">IWSAV</a>, <a class="arg" href="../E04/e04wbf.xml#LIWSAV">LIWSAV</a>, <a class="arg" href="../E04/e04wbf.xml#RWSAV">RWSAV</a>, <a class="arg" href="../E04/e04wbf.xml#LRWSAV">LRWSAV</a>, <a class="arg" href="../E04/e04wbf.xml#IFAIL">IFAIL</a>)</td></tr><tr><td class="tdfspec1">INTEGER</td><td class="tdfspec2">LCWSAV, LLWSAV, IWSAV(LIWSAV), LIWSAV, LRWSAV, IFAIL</td></tr><tr><td class="tdfspec1"><b><i>double&#160;precision</i></b></td><td class="tdfspec2">RWSAV(LRWSAV)</td></tr><tr><td class="tdfspec1">LOGICAL</td><td class="tdfspec2">LWSAV(LLWSAV)</td></tr><tr><td class="tdfspec1">CHARACTER*6</td><td class="tdfspec2">RNAME</td></tr><tr><td class="tdfspec1">CHARACTER*80</td><td class="tdfspec2">CWSAV(LCWSAV)</td></tr></table><div class="paramtext"><a class="rout" href="../E04/e04wbf.xml">E04WBF</a> should be called with <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="../E04/e04wbf.xml#RNAME"><m:mi mathcolor="#EE0000" mathvariant="bold">RNAME</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'E04NFA'</m:mtext></m:math>.  <a class="arg" href="../E04/e04wbf.xml#LCWSAV">LCWSAV</a>, <a class="arg" href="../E04/e04wbf.xml#LLWSAV">LLWSAV</a>, <a class="arg" href="../E04/e04wbf.xml#LIWSAV">LIWSAV</a> and <a class="arg" href="../E04/e04wbf.xml#LRWSAV">LRWSAV</a>, the declared lengths of <a class="arg" href="../E04/e04wbf.xml#CWSAV">CWSAV</a>, <a class="arg" href="../E04/e04wbf.xml#LWSAV">LWSAV</a>, <a class="arg" href="../E04/e04wbf.xml#IWSAV">IWSAV</a> and <a class="arg" href="../E04/e04wbf.xml#RWSAV">RWSAV</a> respectively, must satisfy:
<ul class="listind"><li class="listind"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="../E04/e04wbf.xml#LCWSAV"><m:mi mathcolor="#EE0000" mathvariant="bold">LCWSAV</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>1</m:mn></m:math></li><li class="listind"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="../E04/e04wbf.xml#LLWSAV"><m:mi mathcolor="#EE0000" mathvariant="bold">LLWSAV</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>120</m:mn></m:math></li><li class="listind"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="../E04/e04wbf.xml#LIWSAV"><m:mi mathcolor="#EE0000" mathvariant="bold">LIWSAV</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>610</m:mn></m:math></li><li class="listind"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="../E04/e04wbf.xml#LRWSAV"><m:mi mathcolor="#EE0000" mathvariant="bold">LRWSAV</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>475</m:mn></m:math></li></ul>
</div><div class="paramtext">The contents of the arrays <a class="arg" href="../E04/e04wbf.xml#CWSAV">CWSAV</a>, <a class="arg" href="../E04/e04wbf.xml#LWSAV">LWSAV</a>, <a class="arg" href="../E04/e04wbf.xml#IWSAV">IWSAV</a> and <a class="arg" href="../E04/e04wbf.xml#RWSAV">RWSAV</a>
<b>must not</b> be altered between calling routines <a class="rout" href="../E04/e04nff.xml">E04NFA</a>, <a class="rout" href="../E04/e04ngf.xml">E04NGA</a>, <a class="rout" href="../E04/e04nhf.xml">E04NHA</a> and <a class="rout" href="../E04/e04wbf.xml">E04WBF</a>.</div><h2 class="standard"><a class="sec" name="description" id="description"/>3&#160;&#160;Description</h2>
<div class="paramtext">E04NFF/E04NFA is designed to solve a class of quadratic programming problems that are assumed to be stated in the following general form:

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:munder>
 <m:mi mathvariant="normal">minimize</m:mi>
 <m:mrow><m:mi>x</m:mi><m:mo>&#8712;</m:mo><m:msup><m:mi>R</m:mi><m:mi>n</m:mi></m:msup></m:mrow>
</m:munder><m:mspace width="0.25em"/>
<m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced><m:mtext>&#8195; subject to &#8195;</m:mtext><m:mi>l</m:mi><m:mo>&#8804;</m:mo>
 <m:mfenced><m:mtable>
  <m:mtr>
   <m:mtd><m:mi>x</m:mi></m:mtd>
  </m:mtr><m:mtr>
   <m:mtd><m:mi>A</m:mi><m:mi>x</m:mi></m:mtd>
  </m:mtr>
 </m:mtable></m:mfenced>
<m:mo>&#8804;</m:mo><m:mi>u</m:mi><m:mtext>,</m:mtext>
</m:math></td><td class="formula2"/></tr></table></div>

where <m:math><m:mi>A</m:mi></m:math>&#160;is an <m:math><m:msub><m:mi>m</m:mi><m:mi>L</m:mi></m:msub></m:math>&#160;by <m:math><m:mi>n</m:mi></m:math>&#160;matrix and <m:math><m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;may be specified in a variety of ways depending upon the particular problem to be solved.  The available forms for <m:math><m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;are listed in <a class="table" href="#table1">Table 1</a>, in which the prefixes FP, LP and QP stand for &#8216;feasible point&#8217;, &#8216;linear programming&#8217; and &#8216;quadratic programming&#8217; respectively and <m:math><m:mi>c</m:mi></m:math>&#160;is an <m:math><m:mi>n</m:mi></m:math>&#160;element vector.
<div class="tablediv"><a name="table1" id="table1"/><table class="frame-none">
  
  
  
  <tbody>
   <tr>
    <td class="libdoc" valign="top" align="left" style="width:9em;"><b>Problem type</b></td>
    <td class="libdoc" valign="top" align="left" style="width:10.5em;"><b><m:math><m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math></b></td>
    <td class="libdoc" valign="top" align="left" style="width:12em;"><b>Matrix <m:math><m:mi>H</m:mi></m:math></b></td>
   </tr><tr>
    <td class="libdoc" valign="top" align="left" style="width:9em;">FP</td>
    <td class="libdoc" valign="top" align="left" style="width:10.5em;">Not applicable</td>
    <td class="libdoc" valign="top" align="left" style="width:12em;">Not applicable</td>
   </tr><tr>
    <td class="libdoc" valign="top" align="left" style="width:9em;">LP</td>
    <td class="libdoc" valign="top" align="left" style="width:10.5em;"><m:math><m:msup><m:mi>c</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>x</m:mi></m:math></td>
    <td class="libdoc" valign="top" align="left" style="width:12em;">Not applicable</td>
   </tr><tr>
    <td class="libdoc" valign="top" align="left" style="width:9em;">QP1</td>
    <td class="libdoc" valign="top" align="left" style="width:10.5em;"><m:math><m:mphantom><m:msup><m:mi>c</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>x</m:mi><m:mo>+</m:mo></m:mphantom><m:mfrac other="small"><m:mn>1</m:mn><m:mn>2</m:mn></m:mfrac><m:msup><m:mi>x</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>H</m:mi><m:mi>x</m:mi></m:math></td>
    <td class="libdoc" valign="top" align="left" style="width:12em;">symmetric</td>
   </tr><tr>
    <td class="libdoc" valign="top" align="left" style="width:9em;">QP2</td>
    <td class="libdoc" valign="top" align="left" style="width:10.5em;"><m:math><m:msup><m:mi>c</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>x</m:mi><m:mo>+</m:mo><m:mfrac other="small"><m:mn>1</m:mn><m:mn>2</m:mn></m:mfrac><m:msup><m:mi>x</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>H</m:mi><m:mi>x</m:mi></m:math></td>
    <td class="libdoc" valign="top" align="left" style="width:12em;">symmetric</td>
   </tr><tr>
    <td class="libdoc" valign="top" align="left" style="width:9em;">QP3</td>
    <td class="libdoc" valign="top" align="left" style="width:10.5em;"><m:math><m:mphantom><m:msup><m:mi>c</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>x</m:mi><m:mo>+</m:mo></m:mphantom><m:mfrac other="small"><m:mn>1</m:mn><m:mn>2</m:mn></m:mfrac><m:msup><m:mi>x</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:msup><m:mi>H</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>H</m:mi><m:mi>x</m:mi></m:math></td>
    <td class="libdoc" valign="top" align="left" style="width:12em;"><m:math><m:mi>m</m:mi></m:math>&#160;by <m:math><m:mi>n</m:mi></m:math>&#160;upper trapezoidal</td>
   </tr><tr>
    <td class="libdoc" valign="top" align="left" style="width:9em;">QP4</td>
    <td class="libdoc" valign="top" align="left" style="width:10.5em;"><m:math><m:msup><m:mi>c</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>x</m:mi><m:mo>+</m:mo><m:mfrac other="small"><m:mn>1</m:mn><m:mn>2</m:mn></m:mfrac><m:msup><m:mi>x</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:msup><m:mi>H</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>H</m:mi><m:mi>x</m:mi></m:math></td>
    <td class="libdoc" valign="top" align="left" style="width:12em;"><m:math><m:mi>m</m:mi></m:math>&#160;by <m:math><m:mi>n</m:mi></m:math>&#160;upper trapezoidal</td>
   </tr>
  </tbody>
 </table><div class="caption"><b>Table 1</b><br/></div></div>
</div><div class="paramtext">There is no restriction on <m:math><m:mi>H</m:mi></m:math>&#160;or <m:math><m:msup><m:mi>H</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>H</m:mi></m:math>&#160;apart from symmetry.  If the quadratic function is convex, a global minimum is found; otherwise, a local minimum is found.  The default problem type is QP2 and other objective functions are selected by using the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_problemtype"><m:mi mathcolor="#800080;" mathvariant="bold">Problem Type</m:mi></m:maction></m:math>.  For problems of type FP, the objective function is omitted and the routine attempts to find a feasible point for the set of constraints.</div><div class="paramtext">The constraints involving <m:math><m:mi>A</m:mi></m:math>&#160;are called the <span class="italic">general</span> constraints.  Note that upper and lower bounds are specified for all the variables and for all the general constraints.  An <span class="italic">equality</span> constraint can be specified by setting <m:math><m:msub><m:mi>l</m:mi><m:mi>i</m:mi></m:msub><m:mo>=</m:mo><m:msub><m:mi>u</m:mi><m:mi>i</m:mi></m:msub></m:math>.  If certain bounds are not present, the associated elements of <m:math><m:mi>l</m:mi></m:math>&#160;or <m:math><m:mi>u</m:mi></m:math>&#160;can be set to special values that will be treated as <m:math><m:mrow><m:mo>-</m:mo><m:mi>&#8734;</m:mi></m:mrow></m:math>&#160;or <m:math><m:mrow><m:mo>+</m:mo><m:mi>&#8734;</m:mi></m:mrow></m:math>.  (See the description of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_infiniteboundsize"><m:mi mathcolor="#800080;" mathvariant="bold">Infinite Bound Size</m:mi></m:maction></m:math>.)</div><div class="paramtext">The defining feature of a quadratic function <m:math><m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;is that the second-derivative matrix <m:math><m:msup><m:mo>&#8711;</m:mo><m:mn>2</m:mn></m:msup><m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;(the <span class="italic">Hessian matrix</span>) is constant.  For QP1 and QP2 (the default), <m:math><m:msup><m:mo>&#8711;</m:mo><m:mn>2</m:mn></m:msup><m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced><m:mo>=</m:mo><m:mi>H</m:mi></m:math>; for QP3 and QP4, <m:math><m:msup><m:mo>&#8711;</m:mo><m:mn>2</m:mn></m:msup><m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced><m:mo>=</m:mo><m:msup><m:mi>H</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>H</m:mi></m:math>; and for the LP case, <m:math><m:msup><m:mo>&#8711;</m:mo><m:mn>2</m:mn></m:msup><m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced><m:mo>=</m:mo><m:mn>0</m:mn></m:math>.  If <m:math><m:mi>H</m:mi></m:math>&#160;is positive semi-definite, it is usually more efficient to use <a class="rout" href="../E04/e04ncf.xml">E04NCF/E04NCA</a>.  If <m:math><m:mi>H</m:mi></m:math>&#160;is defined as the zero matrix, E04NFF/E04NFA will still attempt to solve the resulting linear programming problem; however, this can be accomplished more efficiently by setting the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_problemtype"><m:mi mathcolor="#800080;" mathvariant="bold">Problem Type</m:mi></m:maction><m:mo>=</m:mo></m:math>&#160;LP, or by using <a class="rout" href="../E04/e04mff.xml">E04MFF/E04MFA</a> instead.</div><div class="paramtext">You must supply an initial estimate of the solution.</div><div class="paramtext">In the QP case, you may supply <m:math><m:mi>H</m:mi></m:math>&#160;either <span class="italic">explicitly</span> as an <m:math><m:mi>m</m:mi></m:math>&#160;by <m:math><m:mi>n</m:mi></m:math>&#160;matrix, or <span class="italic">implicitly</span> in a subroutine that computes the product <m:math><m:mi>H</m:mi><m:mi>x</m:mi></m:math>&#160;or <m:math><m:msup><m:mi>H</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>H</m:mi><m:mi>x</m:mi></m:math>&#160;for any given vector <m:math><m:mi>x</m:mi></m:math>.</div><div class="paramtext">In general, a successful run of E04NFF/E04NFA will indicate one of three situations:
<table class="standard-100"><tr>
<td style="width:2.1em;" valign="baseline">(i)</td>
<td valign="top">a minimizer has been found;</td>
</tr><tr>
<td style="width:2.1em;" valign="baseline">(ii)</td>
<td valign="top">the algorithm has terminated at a so-called <span class="italic">dead-point</span>; or</td>
</tr><tr>
<td style="width:2.1em;" valign="baseline">(iii)</td>
<td valign="top">the problem has no bounded solution.</td>
</tr></table>
</div><div class="paramtext">If a minimizer is found, and <m:math><m:msup><m:mo>&#8711;</m:mo><m:mn>2</m:mn></m:msup><m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;is positive-definite or positive semi-definite, E04NFF/E04NFA will obtain a global minimizer; otherwise, the solution will be a <span class="italic">local</span> minimizer (which may or may not be a global minimizer).  A dead-point is a point at which the necessary conditions for optimality are satisfied but the sufficient conditions are not.  At such a point, a feasible direction of decrease may or may not exist, so that the point is not necessarily a local solution of the problem.  Verification of optimality in such instances requires further information, and is in general an NP-hard problem (see <a class="ref" href="#ref493">Pardalos and Schnitger (1988)</a>).  Termination at a dead-point can occur only if <m:math><m:msup><m:mo>&#8711;</m:mo><m:mn>2</m:mn></m:msup><m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;is not positive-definite.  If <m:math><m:msup><m:mo>&#8711;</m:mo><m:mn>2</m:mn></m:msup><m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;is positive semi-definite, the dead-point will be a <span class="italic">weak minimizer</span> (i.e., with a unique optimal objective value, but an infinite set of optimal <m:math><m:mi>x</m:mi></m:math>).</div><div class="paramtext">The method used by E04NFF/E04NFA (see <a class="sec" href="#algdetails">Section 10</a>) is most efficient when many constraints or bounds are active at the solution.</div><h2 class="standard"><a class="sec" name="references" id="references"/>4&#160;&#160;References</h2><div class="paramtext"><a name="ref091" id="ref091"/>Gill P E, Hammarling S, Murray W, Saunders M A and Wright M H (1986)  Users' guide for LSSOL (Version 1.0) <i>Report SOL 86-1</i> Department of Operations Research, Stanford University </div>
<div class="paramtext"><a name="ref489" id="ref489"/>Gill P E and Murray W (1978)  Numerically stable methods for quadratic programming <i>Math. Programming</i> <b>14</b> 349&#8211;372 </div>
<div class="paramtext"><a name="ref090" id="ref090"/>Gill P E, Murray W, Saunders M A and Wright M H (1984)  Procedures for optimization problems with a mixture of bounds and general linear constraints <i>ACM Trans. Math. Software</i> <b>10</b> 282&#8211;298 </div>
<div class="paramtext"><a name="ref490" id="ref490"/>Gill P E, Murray W, Saunders M A and Wright M H (1989)  A practical anti-cycling procedure for linearly constrained optimization <i>Math. Programming</i> <b>45</b> 437&#8211;474 </div>
<div class="paramtext"><a name="ref491" id="ref491"/>Gill P E, Murray W, Saunders M A and Wright M H (1991)  Inertia-controlling methods for general quadratic programming <i>SIAM Rev.</i> <b>33</b> 1&#8211;36 </div>
<div class="paramtext"><a name="ref079" id="ref079"/>Gill P E, Murray W and Wright M H (1981)  <i>Practical Optimization</i> Academic Press </div>
<div class="paramtext"><a name="ref493" id="ref493"/>Pardalos P M and Schnitger G (1988)  Checking local optimality in constrained quadratic programming is NP-hard <i>Operations Research Letters</i> <b>7</b> 33&#8211;35 </div><h2 class="standard"><a class="sec" name="parameters" id="parameters"/>5&#160;&#160;Parameters</h2>
<dl><dt class="paramhead"><a name="N" id="N"/>1: &#160;&#160;&#8194; N &#8211; INTEGER<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: 

<m:math><m:mi>n</m:mi></m:math>, the number of variables.</div><div class="paramtext"><i>Constraint</i>:
  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>.
</div></dd><dt class="paramhead"><a name="NCLIN" id="NCLIN"/>2: &#160;&#160;&#8194; NCLIN &#8211; INTEGER<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: 
<m:math><m:msub><m:mi>m</m:mi><m:mi>L</m:mi></m:msub></m:math>, the number of general linear constraints.</div>
<div class="paramtext"><i>Constraint</i>:
  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCLIN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCLIN</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>0</m:mn></m:math>.
</div></dd><dt class="paramhead"><a name="A" id="A"/>3: &#160;&#160;&#8194; A(<a class="arg" href="#LDA">LDA</a>,<m:math><m:mo>*</m:mo></m:math>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd><div class="paramtext"><b>Note:</b> the second dimension of the array <a class="arg" href="#A">A</a>
must be at least
<m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction></m:math>&#160;if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCLIN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCLIN</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>&#160;and at least <m:math><m:mn>1</m:mn></m:math>&#160;if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCLIN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCLIN</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math>.</div>
<div class="paramtext"><i>On entry</i>: the <m:math><m:mi>i</m:mi></m:math>th row of <a class="arg" href="#A">A</a> must contain the coefficients of the <m:math><m:mi>i</m:mi></m:math>th general linear constraint, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:msub><m:mi>m</m:mi><m:mi>L</m:mi></m:msub></m:math>.
<div class="paramtext">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCLIN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCLIN</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math>, <a class="arg" href="#A">A</a> is not referenced.</div>
</div></dd><dt class="paramhead"><a name="LDA" id="LDA"/>4: &#160;&#160;&#8194; LDA &#8211; INTEGER<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: the first dimension of the array <a class="arg" href="#A">A</a> as declared in the (sub)program from which E04NFF/E04NFA is called.</div>
<div class="paramtext"><i>Constraint</i>:
  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LDA"><m:mi mathcolor="#EE0000" mathvariant="bold">LDA</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mn>1</m:mn><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCLIN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCLIN</m:mi></m:maction></m:mfenced></m:mrow></m:math>.
</div></dd><dt class="paramhead"><a name="BL" id="BL"/>5: &#160;&#160;&#8194; BL(<m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCLIN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCLIN</m:mi></m:maction></m:math>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dt class="multi-paramhead"><a name="BU" id="BU"/>6: &#160;&#160;&#8194; BU(<m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCLIN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCLIN</m:mi></m:maction></m:math>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: <a class="arg" href="#BL">BL</a> must contain the lower bounds and <a class="arg" href="#BU">BU</a> the upper bounds, for all the constraints in the following order.  The first <m:math><m:mi>n</m:mi></m:math>&#160;elements of each array must contain the bounds on the variables, and the next <m:math><m:msub><m:mi>m</m:mi><m:mi>L</m:mi></m:msub></m:math>&#160;elements the bounds for the general linear constraints (if any).  To specify a nonexistent lower bound (i.e., <m:math><m:msub><m:mi>l</m:mi><m:mi>j</m:mi></m:msub><m:mo>=</m:mo><m:mrow><m:mo>-</m:mo><m:mi>&#8734;</m:mi></m:mrow></m:math>), set <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#BL"><m:mi mathcolor="#EE0000" mathvariant="bold">BL</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow><m:mo>&#8804;</m:mo><m:mo>-</m:mo><m:mi mathvariant="italic">bigbnd</m:mi></m:math>, and to specify a nonexistent upper bound (i.e., <m:math><m:msub><m:mi>u</m:mi><m:mi>j</m:mi></m:msub><m:mo>=</m:mo><m:mrow><m:mo>+</m:mo><m:mi>&#8734;</m:mi></m:mrow></m:math>), set <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#BU"><m:mi mathcolor="#EE0000" mathvariant="bold">BU</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow><m:mo>&#8805;</m:mo><m:mi mathvariant="italic">bigbnd</m:mi></m:math>; the default value of <m:math><m:mi mathvariant="italic">bigbnd</m:mi></m:math>&#160;is <m:math><m:msup><m:mn>10</m:mn><m:mn>20</m:mn></m:msup></m:math>, but this may be changed by the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_infiniteboundsize"><m:mi mathcolor="#800080;" mathvariant="bold">Infinite Bound Size</m:mi></m:maction></m:math>.  To specify the <m:math><m:mi>j</m:mi></m:math>th constraint as an <span class="italic">equality</span>, set <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#BL"><m:mi mathcolor="#EE0000" mathvariant="bold">BL</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow><m:mo>=</m:mo><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#BU"><m:mi mathcolor="#EE0000" mathvariant="bold">BU</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow><m:mo>=</m:mo><m:mi>&#946;</m:mi></m:math>, say, where <m:math><m:mfenced open="|" close="|" separators=""><m:mi>&#946;</m:mi></m:mfenced><m:mo>&lt;</m:mo><m:mi mathvariant="italic">bigbnd</m:mi></m:math>.</div><div class="paramtext"><i>Constraints</i>:
   <div class="paramtext"/><ul class="listcons">
<li class="listcons"><m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#BL"><m:mi mathcolor="#EE0000" mathvariant="bold">BL</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi mathvariant="italic">j</m:mi></m:mfenced></m:mrow><m:mo>&#8804;</m:mo><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#BU"><m:mi mathcolor="#EE0000" mathvariant="bold">BU</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi mathvariant="italic">j</m:mi></m:mfenced></m:mrow></m:math>,  for <m:math><m:mi mathvariant="italic">j</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCLIN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCLIN</m:mi></m:maction></m:mrow></m:math>;</li>
<li class="listcons">if <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#BL"><m:mi mathcolor="#EE0000" mathvariant="bold">BL</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow><m:mo>=</m:mo><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#BU"><m:mi mathcolor="#EE0000" mathvariant="bold">BU</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow><m:mo>=</m:mo><m:mi>&#946;</m:mi></m:math>, <m:math><m:mfenced open="|" close="|" separators=""><m:mi>&#946;</m:mi></m:mfenced><m:mo>&lt;</m:mo><m:mi mathvariant="italic">bigbnd</m:mi></m:math>.</li>
</ul></div></dd><dt class="paramhead"><a name="CVEC" id="CVEC"/>7: &#160;&#160;&#8194; CVEC(<m:math><m:mo>*</m:mo></m:math>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd><div class="paramtext"><b>Note:</b> the dimension of the array <a class="arg" href="#CVEC">CVEC</a>
must be at least
<m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction></m:math>&#160;when the problem is of type LP, QP2 (the default) or QP4, and at least <m:math><m:mn>1</m:mn></m:math>&#160;otherwise.</div>
<div class="paramtext"><i>On entry</i>: the coefficients of the explicit linear term of the objective function when the problem is of type LP, QP2 (the default) and QP4.
<div class="paramtext">If the problem is of type FP, QP1, or QP3, <a class="arg" href="#CVEC">CVEC</a> is not referenced.</div>
</div></dd><dt class="paramhead"><a name="H" id="H"/>8: &#160;&#160;&#8194; H(<a class="arg" href="#LDH">LDH</a>,<m:math><m:mo>*</m:mo></m:math>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd><div class="paramtext"><b>Note:</b> the second dimension of the array <a class="arg" href="#H">H</a>
must be at least
<m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction></m:math>&#160;if it is to be used to store <m:math><m:mi>H</m:mi></m:math>&#160;explicitly, and at least <m:math><m:mn>1</m:mn></m:math>&#160;otherwise.</div><div class="paramtext"><i>On entry</i>: may be used to store the quadratic term <m:math><m:mi>H</m:mi></m:math>&#160;of the QP objective function if desired.  In some cases, you need not use <a class="arg" href="#H">H</a> to store <m:math><m:mi>H</m:mi></m:math>&#160;explicitly (see the specification of subroutine <a class="arg" href="#QPHESS">QPHESS</a>).  The elements of <a class="arg" href="#H">H</a> are referenced only by subroutine <a class="arg" href="#QPHESS">QPHESS</a>.  The number of rows of <m:math><m:mi>H</m:mi></m:math>&#160;is denoted by <m:math><m:mi>m</m:mi></m:math>, whose default value is <m:math><m:mi>n</m:mi></m:math>.  (The optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_hessianrows"><m:mi mathcolor="#800080;" mathvariant="bold">Hessian Rows</m:mi></m:maction></m:math>&#160;may be used to specify a value of <m:math><m:mi>m</m:mi><m:mo>&lt;</m:mo><m:mi>n</m:mi></m:math>.)
<div class="paramtext">If the default version of <a class="arg" href="#QPHESS">QPHESS</a> is used and the problem is of type QP1 or QP2 (the default), the first <m:math><m:mi>m</m:mi></m:math>&#160;rows and columns of <a class="arg" href="#H">H</a> must contain the leading <m:math><m:mi>m</m:mi></m:math>&#160;by <m:math><m:mi>m</m:mi></m:math>&#160;rows and columns of the symmetric Hessian matrix <m:math><m:mi>H</m:mi></m:math>.  Only the diagonal and upper triangular elements of the leading <m:math><m:mi>m</m:mi></m:math>&#160;rows and columns of <a class="arg" href="#H">H</a> are referenced.  The remaining elements need not be assigned.</div>
<div class="paramtext">If the default version of <a class="arg" href="#QPHESS">QPHESS</a> is used and the problem is of type QP3 or QP4, the first <m:math><m:mi>m</m:mi></m:math>&#160;rows of <a class="arg" href="#H">H</a> must contain an <m:math><m:mi>m</m:mi></m:math>&#160;by <m:math><m:mi>n</m:mi></m:math>&#160;upper trapezoidal factor of the symmetric Hessian matrix <m:math><m:msup><m:mi>H</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>H</m:mi></m:math>.  The factor need not be of full rank, i.e., some of the diagonal elements may be zero.  However, as a general rule, the larger the dimension of the leading nonsingular sub-matrix of <a class="arg" href="#H">H</a>, the fewer iterations will be required.  Elements outside the upper trapezoidal part of the first <m:math><m:mi>m</m:mi></m:math>&#160;rows of <a class="arg" href="#H">H</a> need not be assigned.</div>
<div class="paramtext">If a nondefault version of <a class="arg" href="#QPHESS">QPHESS</a> is supplied, then in some cases it may be desirable to use a one-dimensional array to transmit data to <a class="arg" href="#QPHESS">QPHESS</a>.  (This is illustrated in the example program in <a class="sec" href="../E04/e04ngf.xml#example">Section 9</a> in E04NGF/E04NGA.) <a class="arg" href="#H">H</a> is then declared as a vector with dimension (<a class="arg" href="#LDH">LDH</a>), where <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LDH"><m:mi mathcolor="#EE0000" mathvariant="bold">LDH</m:mi></m:maction><m:mo>&#8805;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>&#215;</m:mo><m:mfenced separators=""><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>+</m:mo><m:mn>1</m:mn></m:mfenced><m:mo>/</m:mo><m:mn>2</m:mn></m:math>.</div>
<div class="paramtext">In other situations, it may be desirable to compute <m:math><m:mi>H</m:mi><m:mi>x</m:mi></m:math>&#160;or <m:math><m:msup><m:mi>H</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>H</m:mi><m:mi>x</m:mi></m:math>&#160;without accessing <a class="arg" href="#H">H</a> &#8211; for example, if <m:math><m:mi>H</m:mi></m:math>&#160;or <m:math><m:msup><m:mi>H</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>H</m:mi></m:math>&#160;is sparse or has special structure.  The parameters <a class="arg" href="#H">H</a> and <a class="arg" href="#LDH">LDH</a> may then refer to any convenient array.</div>
<div class="paramtext">If the problem is of type FP or LP, <a class="arg" href="#H">H</a> is not referenced.</div>
</div></dd><dt class="paramhead"><a name="LDH" id="LDH"/>9: &#160;&#160;&#8194; LDH &#8211; INTEGER<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: the first dimension of the array <a class="arg" href="#H">H</a> as declared in the (sub)program from which E04NFF/E04NFA is called.</div><div class="paramtext"><i>Constraints</i>:
   <div class="paramtext"/><ul class="listcons">
<li class="listcons">if the problem is of type QP1, QP2 (the default), QP3 or QP4, <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LDH"><m:mi mathcolor="#EE0000" mathvariant="bold">LDH</m:mi></m:maction><m:mo>&#8805;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction></m:math>&#160;or at least the value of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_hessianrows"><m:mi mathcolor="#800080;" mathvariant="bold">Hessian Rows</m:mi></m:maction></m:math>;</li>
<li class="listcons">if the problem is of type FP or LP, <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LDH"><m:mi mathcolor="#EE0000" mathvariant="bold">LDH</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>1</m:mn></m:math>.</li>
</ul></div></dd><dt class="paramhead"><a name="QPHESS" id="QPHESS"/>10: &#8194; QPHESS &#8211; SUBROUTINE, supplied by the NAG Library or the user.<span class="pclass">External Procedure</span></dt><dd><div class="paramtext">In general, you need not provide a version of <a class="arg" href="#QPHESS">QPHESS</a>, because a &#8216;default&#8217; subroutine with name E04NFU/E54NFU is included in the Library.  However, the algorithm of E04NFF/E04NFA requires only the product of <m:math><m:mi>H</m:mi></m:math>&#160;or <m:math><m:msup><m:mi>H</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>H</m:mi></m:math>&#160;and a vector <m:math><m:mi>x</m:mi></m:math>; and in some cases you may obtain increased efficiency by providing a version of <a class="arg" href="#QPHESS">QPHESS</a> that avoids the need to define the elements of the matrices <m:math><m:mi>H</m:mi></m:math>&#160;or <m:math><m:msup><m:mi>H</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>H</m:mi></m:math>&#160;explicitly.</div>
<div class="paramtext"><a class="arg" href="#QPHESS">QPHESS</a> is not referenced if the problem is of type FP or LP, in which case <a class="arg" href="#QPHESS">QPHESS</a> may be the routine E04NFU/E54NFU.</div><div class="subprog">
<div class="paramtext">The specification of 
   <a class="arg" href="#QPHESS">QPHESS</a>
   for E04NFF is:</div><table class="fspec"><tr><td class="tdfspec1">SUBROUTINE&#160;QPHESS&#160;(</td><td class="tdfspec2"><a class="arg" href="../E04/e04nff.xml#QPHESS_N">N</a>, <a class="arg" href="../E04/e04nff.xml#QPHESS_JTHCOL">JTHCOL</a>, <a class="arg" href="../E04/e04nff.xml#QPHESS_H">H</a>, <a class="arg" href="../E04/e04nff.xml#QPHESS_LDH">LDH</a>, <a class="arg" href="../E04/e04nff.xml#QPHESS_X">X</a>, <a class="arg" href="../E04/e04nff.xml#QPHESS_HX">HX</a>)</td></tr><tr><td class="tdfspec1">INTEGER</td><td class="tdfspec2">N, JTHCOL, LDH</td></tr><tr><td class="tdfspec1"><b><i>double&#160;precision</i></b></td><td class="tdfspec2">H(LDH,*), X(N), HX(N)</td></tr></table>
<div class="paramtext">The specification of 
   <a class="arg" href="#QPHESS">QPHESS</a>
   for E04NFA is:</div><table class="fspec"><tr><td class="tdfspec1">SUBROUTINE&#160;QPHESS&#160;(</td><td class="tdfspec2"><a class="arg" href="../E04/e04nff.xml#QPHESS_N">N</a>, <a class="arg" href="../E04/e04nff.xml#QPHESS_JTHCOL">JTHCOL</a>, <a class="arg" href="../E04/e04nff.xml#QPHESS_H">H</a>, <a class="arg" href="../E04/e04nff.xml#QPHESS_LDH">LDH</a>, <a class="arg" href="../E04/e04nff.xml#QPHESS_X">X</a>, <a class="arg" href="../E04/e04nff.xml#QPHESS_HX">HX</a>, <a class="arg" href="../E04/e04nff.xml#QPHESS_IUSER">IUSER</a>, <a class="arg" href="../E04/e04nff.xml#QPHESS_RUSER">RUSER</a>, <a class="arg" href="../E04/e04nff.xml#QPHESS_IWSAV">IWSAV</a>)</td></tr><tr><td class="tdfspec1">INTEGER</td><td class="tdfspec2">N, JTHCOL, LDH, IUSER(*), IWSAV(610)</td></tr><tr><td class="tdfspec1"><b><i>double&#160;precision</i></b></td><td class="tdfspec2">H(LDH,*), X(N), HX(N), RUSER(*)</td></tr></table>
<dl><dt class="paramhead"><a name="QPHESS_N" id="QPHESS_N"/>1: &#160;&#160;&#8194; N &#8211; INTEGER<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: this is the same parameter as supplied to this routine. See the description for the top level parameter <a class="arg" href="#N">N</a>.</div></dd><dt class="paramhead"><a name="QPHESS_JTHCOL" id="QPHESS_JTHCOL"/>2: &#160;&#160;&#8194; JTHCOL &#8211; INTEGER<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: specifies whether or not the vector <m:math><m:mi>x</m:mi></m:math>&#160;is a column of the identity matrix.  

<dl>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#QPHESS_JTHCOL"><m:mi mathcolor="#EE0000" mathvariant="bold">JTHCOL</m:mi></m:maction><m:mo>=</m:mo><m:mi>j</m:mi><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math></dt>
<dd>The vector <m:math><m:mi>x</m:mi></m:math>&#160;is the <m:math><m:mi>j</m:mi></m:math>th column of the identity matrix, and hence <m:math><m:mi>H</m:mi><m:mi>x</m:mi></m:math>&#160;or <m:math><m:msup><m:mi>H</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>H</m:mi><m:mi>x</m:mi></m:math>&#160;is the <m:math><m:mi>j</m:mi></m:math>th column of <m:math><m:mi>H</m:mi></m:math>&#160;or <m:math><m:msup><m:mi>H</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>H</m:mi></m:math>, respectively.  This may in some cases require very little computation and <a class="arg" href="#QPHESS">QPHESS</a> may be coded to take advantage of this.  However special code is not necessary because <m:math><m:mi>x</m:mi></m:math>&#160;is always stored explicitly in the array <a class="arg" href="../E04/e04nff.xml#QPHESS_X">X</a>.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#QPHESS_JTHCOL"><m:mi mathcolor="#EE0000" mathvariant="bold">JTHCOL</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math></dt>
<dd><m:math><m:mi>x</m:mi></m:math>&#160;has no special form.</dd></dl>
</div></dd><dt class="paramhead"><a name="QPHESS_H" id="QPHESS_H"/>3: &#160;&#160;&#8194; H(<a class="arg" href="../E04/e04nff.xml#QPHESS_LDH">LDH</a>,<m:math><m:mo>*</m:mo></m:math>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: this is the same parameter as supplied to this routine. See the description for the top level parameter <a class="arg" href="#H">H</a>.</div></dd><dt class="paramhead"><a name="QPHESS_LDH" id="QPHESS_LDH"/>4: &#160;&#160;&#8194; LDH &#8211; INTEGER<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: this is the same parameter as supplied to this routine. See the description for the top level parameter <a class="arg" href="#LDH">LDH</a>.</div></dd><dt class="paramhead"><a name="QPHESS_X" id="QPHESS_X"/>5: &#160;&#160;&#8194; X(<a class="arg" href="../E04/e04nff.xml#QPHESS_N">N</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: the vector <m:math><m:mi>x</m:mi></m:math>.</div></dd><dt class="paramhead"><a name="QPHESS_HX" id="QPHESS_HX"/>6: &#160;&#160;&#8194; HX(<a class="arg" href="../E04/e04nff.xml#QPHESS_N">N</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Output</span></dt><dd><div class="paramtext"><i>On exit</i>: the product <m:math><m:mi>H</m:mi><m:mi>x</m:mi></m:math>&#160;if the problem is of type QP1 or QP2 (the default), or the product <m:math><m:msup><m:mi>H</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>H</m:mi><m:mi>x</m:mi></m:math>&#160;if the problem is of type QP3 or QP4.</div></dd><dd class="note"><b>Note:</b> <span class="italic"> the following are additional parameters for specific use with E04NFA.  Users of E04NFF therefore need not read the remainder of this description</span>.</dd><dt class="paramhead"><a name="QPHESS_IUSER" id="QPHESS_IUSER"/>7: &#160;&#160;&#8194; IUSER(<m:math><m:mo>*</m:mo></m:math>) &#8211; INTEGER array<span class="pclass">User Workspace</span></dt><dt class="multi-paramhead"><a name="QPHESS_RUSER" id="QPHESS_RUSER"/>8: &#160;&#160;&#8194; RUSER(<m:math><m:mo>*</m:mo></m:math>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">User Workspace</span></dt><dd><div class="paramtext"><a class="arg" href="#QPHESS">QPHESS</a> is called from E04NFA with the parameters <a class="arg" href="../E04/e04nff.xml#QPHESS_IUSER">IUSER</a>, <a class="arg" href="../E04/e04nff.xml#QPHESS_RUSER">RUSER</a> and <a class="arg" href="../E04/e04nff.xml#QPHESS_IWSAV">IWSAV</a> as supplied to E04NFA.  You are free to use the arrays <a class="arg" href="../E04/e04nff.xml#QPHESS_IUSER">IUSER</a> and <a class="arg" href="../E04/e04nff.xml#QPHESS_RUSER">RUSER</a> to supply information to <a class="arg" href="#QPHESS">QPHESS</a>, but <a class="arg" href="../E04/e04nff.xml#QPHESS_IWSAV">IWSAV</a> must not be altered.</div></dd><dt class="paramhead"><a name="QPHESS_IWSAV" id="QPHESS_IWSAV"/>9: &#160;&#160;&#8194; IWSAV(<m:math><m:mn>610</m:mn></m:math>) &#8211; INTEGER array<span class="pclass">Communication Array</span></dt><dd>
<div class="paramtext"><a class="arg" href="../E04/e04nff.xml#QPHESS_IWSAV">IWSAV</a> contains information that is required by the default routine E54NFU.</div>
</dd></dl>
</div>
<div class="paramtext"><a class="arg" href="#QPHESS">QPHESS</a> must be declared as EXTERNAL in the (sub)program from which E04NFF/E04NFA is called. Parameters denoted as <span class="italic">Input</span>  must <b>not</b>  be changed by this procedure.</div>
</dd><dt class="paramhead"><a name="ISTATE" id="ISTATE"/>11: &#8194; ISTATE(<m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCLIN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCLIN</m:mi></m:maction></m:math>) &#8211; INTEGER array<span class="pclass">Input/Output</span></dt><dd><div class="paramtext"><i>On entry</i>: need not be set if the (default) optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_coldstart"><m:mi mathcolor="#800080;" mathvariant="bold">Cold Start</m:mi></m:maction></m:math>&#160;is used.
<div class="paramtext">If the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_warmstart"><m:mi mathcolor="#800080;" mathvariant="bold">Warm Start</m:mi></m:maction></m:math>&#160;has been chosen, <a class="arg" href="#ISTATE">ISTATE</a> specifies the desired status of the constraints at the start of the feasibility phase.  More precisely, the first <m:math><m:mi>n</m:mi></m:math>&#160;elements of <a class="arg" href="#ISTATE">ISTATE</a> refer to the upper and lower bounds on the variables, and the next <m:math><m:msub><m:mi>m</m:mi><m:mi>L</m:mi></m:msub></m:math>&#160;elements refer to the general linear constraints (if any).  Possible values for <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ISTATE"><m:mi mathcolor="#EE0000" mathvariant="bold">ISTATE</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow></m:math>&#160;are as follows: 
<div class="left-tablediv"><table class="frame-none"> 
 
 
<tbody> 
<tr> 
<td class="libdoc" valign="top" align="center"><m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ISTATE"><m:mi mathcolor="#EE0000" mathvariant="bold">ISTATE</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow></m:math></td> 
<td class="libdoc" valign="top" align="center"><b>Meaning</b></td> 
</tr><tr> 
<td class="libdoc" valign="top" align="center">0</td> 
<td class="libdoc" valign="top" align="left">The corresponding constraint should <span class="italic">not</span> be in the initial working set.</td> 
</tr><tr> 
<td class="libdoc" valign="top" align="center">1</td> 
<td class="libdoc" valign="top" align="left">The constraint should be in the initial working set at its lower bound.</td> 
</tr><tr> 
<td class="libdoc" valign="top" align="center">2</td> 
<td class="libdoc" valign="top" align="left">The constraint should be in the initial working set at its upper bound.</td> 
</tr><tr> 
<td class="libdoc" valign="top" align="center">3</td> 
<td class="libdoc" valign="top" align="left">The constraint should be in the initial working set as an equality.  This value must not be specified unless <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#BL"><m:mi mathcolor="#EE0000" mathvariant="bold">BL</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow><m:mo>=</m:mo><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#BU"><m:mi mathcolor="#EE0000" mathvariant="bold">BU</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow></m:math>.</td> 
</tr> 
</tbody> 
</table></div> 
</div>
<div class="paramtext">The values <m:math><m:mrow><m:mo>-</m:mo><m:mn>2</m:mn></m:mrow></m:math>, <m:math><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow></m:math>&#160;and <m:math><m:mn>4</m:mn></m:math>&#160;are also acceptable but will be reset to zero by the routine.  If E04NFF/E04NFA has been called previously with the same values of <a class="arg" href="#N">N</a> and <a class="arg" href="#NCLIN">NCLIN</a>, <a class="arg" href="#ISTATE">ISTATE</a> already contains satisfactory information.  (See also the description of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_warmstart"><m:mi mathcolor="#800080;" mathvariant="bold">Warm Start</m:mi></m:maction></m:math>.) The routine also adjusts (if necessary) the values supplied in <a class="arg" href="#X">X</a> to be consistent with <a class="arg" href="#ISTATE">ISTATE</a>.</div>
</div><div class="paramtext"><i>Constraint</i>:
  <m:math><m:mrow><m:mo>-</m:mo><m:mn>2</m:mn></m:mrow><m:mo>&#8804;</m:mo><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ISTATE"><m:mi mathcolor="#EE0000" mathvariant="bold">ISTATE</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi mathvariant="italic">j</m:mi></m:mfenced></m:mrow><m:mo>&#8804;</m:mo><m:mn>4</m:mn></m:math>,  for <m:math><m:mi mathvariant="italic">j</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCLIN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCLIN</m:mi></m:maction></m:mrow></m:math>.</div>
<div class="paramtext"><i>On exit</i>: the status of the constraints in the working set at the point returned in <a class="arg" href="#X">X</a>.  The significance of each possible value of <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ISTATE"><m:mi mathcolor="#EE0000" mathvariant="bold">ISTATE</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow></m:math>&#160;is as follows: 
<div class="left-tablediv"><table class="frame-none"> 
 
 
<tbody> 
<tr> 
<td class="libdoc" valign="top" align="center"><m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ISTATE"><m:mi mathcolor="#EE0000" mathvariant="bold">ISTATE</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow></m:math></td> 
<td class="libdoc" valign="top" align="center"><b>Meaning</b></td> 
</tr><tr> 
<td class="libdoc" valign="top" align="center"><m:math><m:mrow><m:mo>-</m:mo><m:mn>2</m:mn></m:mrow></m:math></td> 
<td class="libdoc" valign="top" align="left">The constraint violates its lower bound by more than the feasibility tolerance.</td>
 </tr><tr> 
<td class="libdoc" valign="top" align="center"><m:math><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow></m:math></td> 
<td class="libdoc" valign="top" align="left">The constraint violates its upper bound by more than the feasibility tolerance.</td> 
</tr><tr> 
<td class="libdoc" valign="top" align="center"><m:math><m:mphantom><m:mo>-</m:mo></m:mphantom><m:mn>0</m:mn></m:math></td> 
<td class="libdoc" valign="top" align="left">The constraint is satisfied to within the feasibility tolerance, but is not in the working set.</td> 
</tr><tr> 
<td class="libdoc" valign="top" align="center"><m:math><m:mphantom><m:mo>-</m:mo></m:mphantom><m:mn>1</m:mn></m:math></td> 
<td class="libdoc" valign="top" align="left">This inequality constraint is included in the working set at its lower bound.</td> 
</tr><tr> 
<td class="libdoc" valign="top" align="center"><m:math><m:mphantom><m:mo>-</m:mo></m:mphantom><m:mn>2</m:mn></m:math></td> 
<td class="libdoc" valign="top" align="left">This inequality constraint is included in the working set at its upper bound.</td> 
</tr><tr> 
<td class="libdoc" valign="top" align="center"><m:math><m:mphantom><m:mo>-</m:mo></m:mphantom><m:mn>3</m:mn></m:math></td> 
<td class="libdoc" valign="top" align="left">This constraint is included in the working set as an equality.  This value of <a class="arg" href="#ISTATE">ISTATE</a> can occur only when <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#BL"><m:mi mathcolor="#EE0000" mathvariant="bold">BL</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow><m:mo>=</m:mo><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#BU"><m:mi mathcolor="#EE0000" mathvariant="bold">BU</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow></m:math>.</td> 
</tr><tr> 
<td class="libdoc" valign="top" align="center"><m:math><m:mphantom><m:mo>-</m:mo></m:mphantom><m:mn>4</m:mn></m:math></td> 
<td class="libdoc" valign="top" align="left">This corresponds to optimality being declared with <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#X"><m:mi mathcolor="#EE0000" mathvariant="bold">X</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow></m:math>&#160;being temporarily fixed at its current value.  This value of <a class="arg" href="#ISTATE">ISTATE</a> can occur only when <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFeq1"><m:mn mathcolor="#003399" mathvariant="bold">1</m:mn></m:maction></m:math>&#160;on exit.</td> 
</tr> 
</tbody> 
</table></div>
</div></dd><dt class="paramhead"><a name="X" id="X"/>12: &#8194; X(<a class="arg" href="#N">N</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input/Output</span></dt><dd><div class="paramtext"><i>On entry</i>: an initial estimate of the solution.</div>
<div class="paramtext"><i>On exit</i>: the point at which E04NFF/E04NFA terminated.  If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#errors"><m:mn mathcolor="#003399" mathvariant="bold">0</m:mn></m:maction></m:math>, <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFeq1"><m:mn mathcolor="#003399" mathvariant="bold">1</m:mn></m:maction></m:math>&#160;or <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFeq4"><m:mn mathcolor="#003399" mathvariant="bold">4</m:mn></m:maction></m:math>, <a class="arg" href="#X">X</a> contains an estimate of the solution.</div></dd><dt class="paramhead"><a name="ITER" id="ITER"/>13: &#8194; ITER &#8211; INTEGER<span class="pclass">Output</span></dt><dd><div class="paramtext"><i>On exit</i>: the total number of iterations performed.</div></dd><dt class="paramhead"><a name="OBJ" id="OBJ"/>14: &#8194; OBJ &#8211; <span class="bitalic">double precision</span><span class="pclass">Output</span></dt><dd><div class="paramtext"><i>On exit</i>: the value of the objective function at <m:math><m:mi>x</m:mi></m:math>&#160;if <m:math><m:mi>x</m:mi></m:math>&#160;is feasible, or the sum of infeasibilities at <m:math><m:mi>x</m:mi></m:math>&#160;otherwise.  If the problem is of type FP and <m:math><m:mi>x</m:mi></m:math>&#160;is feasible, <a class="arg" href="#OBJ">OBJ</a> is set to zero.</div></dd><dt class="paramhead"><a name="AX" id="AX"/>15: &#8194; AX(<m:math><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mn>1</m:mn><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCLIN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCLIN</m:mi></m:maction></m:mfenced></m:mrow></m:math>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Output</span></dt><dd><div class="paramtext"><i>On exit</i>: the final values of the linear constraints <m:math><m:mi>A</m:mi><m:mi>x</m:mi></m:math>.
<div class="paramtext">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCLIN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCLIN</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math>, <a class="arg" href="#AX">AX</a> is not referenced.</div>
</div></dd><dt class="paramhead"><a name="CLAMDA" id="CLAMDA"/>16: &#8194; CLAMDA(<m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCLIN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCLIN</m:mi></m:maction></m:math>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Output</span></dt><dd><div class="paramtext"><i>On exit</i>: the values of the Lagrange multipliers for each constraint with respect to the current working set.  The first <m:math><m:mi>n</m:mi></m:math>&#160;elements contain the multipliers for the bound constraints on the variables, and the next <m:math><m:msub><m:mi>m</m:mi><m:mi>L</m:mi></m:msub></m:math>&#160;elements contain the multipliers for the general linear constraints (if any).  If <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ISTATE"><m:mi mathcolor="#EE0000" mathvariant="bold">ISTATE</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>0</m:mn></m:math>&#160;(i.e., constraint <m:math><m:mi>j</m:mi></m:math>&#160;is not in the working set), <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#CLAMDA"><m:mi mathcolor="#EE0000" mathvariant="bold">CLAMDA</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow></m:math>&#160;is zero.  If <m:math><m:mi>x</m:mi></m:math>&#160;is optimal, <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#CLAMDA"><m:mi mathcolor="#EE0000" mathvariant="bold">CLAMDA</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow></m:math>&#160;should be non-negative if <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ISTATE"><m:mi mathcolor="#EE0000" mathvariant="bold">ISTATE</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>1</m:mn></m:math>, nonpositive if <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ISTATE"><m:mi mathcolor="#EE0000" mathvariant="bold">ISTATE</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>2</m:mn></m:math>&#160;and zero if <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ISTATE"><m:mi mathcolor="#EE0000" mathvariant="bold">ISTATE</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>4</m:mn></m:math>.</div></dd><dt class="paramhead"><a name="IWORK" id="IWORK"/>17: &#8194; IWORK(<a class="arg" href="#LIWORK">LIWORK</a>) &#8211; INTEGER array<span class="pclass">Workspace</span></dt><dt class="multi-paramhead"><a name="LIWORK" id="LIWORK"/>18: &#8194; LIWORK &#8211; INTEGER<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: the dimension of the array <a class="arg" href="#IWORK">IWORK</a> as declared in the (sub)program from which E04NFF/E04NFA is called.</div><div class="paramtext"><i>Constraint</i>:
  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LIWORK"><m:mi mathcolor="#EE0000" mathvariant="bold">LIWORK</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>2</m:mn><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>+</m:mo><m:mn>3</m:mn></m:math>.
</div></dd><dt class="paramhead"><a name="WORK" id="WORK"/>19: &#8194; WORK(<a class="arg" href="#LWORK">LWORK</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Workspace</span></dt><dt class="multi-paramhead"><a name="LWORK" id="LWORK"/>20: &#8194; LWORK &#8211; INTEGER<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: the dimension of the array <a class="arg" href="#WORK">WORK</a> as declared in the (sub)program from which E04NFF/E04NFA is called.</div><div class="paramtext"><i>Constraints</i>:
   <div class="paramtext"/><ul class="listcons">
<li class="listcons">if problems QP2 (the default) and QP4, <ul class="listcons">
<li class="listcons">if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCLIN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCLIN</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>, <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LWORK"><m:mi mathcolor="#EE0000" mathvariant="bold">LWORK</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>2</m:mn><m:mo>&#215;</m:mo><m:msup><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mn>2</m:mn></m:msup><m:mo>+</m:mo><m:mn>8</m:mn><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>+</m:mo><m:mn>5</m:mn><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCLIN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCLIN</m:mi></m:maction></m:math>;</li>
<li class="listcons">if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCLIN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCLIN</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math>, <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LWORK"><m:mi mathcolor="#EE0000" mathvariant="bold">LWORK</m:mi></m:maction><m:mo>&#8805;</m:mo><m:msup><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mn>2</m:mn></m:msup><m:mo>+</m:mo><m:mn>8</m:mn><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction></m:math>;</li>
</ul></li>
<li class="listcons">if problems QP1 and QP3, <ul class="listcons">
<li class="listcons">if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCLIN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCLIN</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>, <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LWORK"><m:mi mathcolor="#EE0000" mathvariant="bold">LWORK</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>2</m:mn><m:mo>&#215;</m:mo><m:msup><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mn>2</m:mn></m:msup><m:mo>+</m:mo><m:mn>7</m:mn><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>+</m:mo><m:mn>5</m:mn><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCLIN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCLIN</m:mi></m:maction></m:math>;</li>
<li class="listcons">if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCLIN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCLIN</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math>, <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LWORK"><m:mi mathcolor="#EE0000" mathvariant="bold">LWORK</m:mi></m:maction><m:mo>&#8805;</m:mo><m:msup><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mn>2</m:mn></m:msup><m:mo>+</m:mo><m:mn>7</m:mn><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction></m:math>;</li>
</ul></li>
<li class="listcons">if the problem is of type LP, <ul class="listcons">
<li class="listcons">if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCLIN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCLIN</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math>, <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LWORK"><m:mi mathcolor="#EE0000" mathvariant="bold">LWORK</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>8</m:mn><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>+</m:mo><m:mn>1</m:mn></m:math>;</li>
<li class="listcons">if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCLIN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCLIN</m:mi></m:maction><m:mo>&#8805;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction></m:math>, <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LWORK"><m:mi mathcolor="#EE0000" mathvariant="bold">LWORK</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>2</m:mn><m:mo>&#215;</m:mo><m:msup><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mn>2</m:mn></m:msup><m:mo>+</m:mo><m:mn>8</m:mn><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>+</m:mo><m:mn>5</m:mn><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCLIN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCLIN</m:mi></m:maction></m:math>;</li>
<li class="listcons">otherwise <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LWORK"><m:mi mathcolor="#EE0000" mathvariant="bold">LWORK</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>2</m:mn><m:mo>&#215;</m:mo><m:msup><m:mfenced separators=""><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCLIN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCLIN</m:mi></m:maction><m:mo>+</m:mo><m:mn>1</m:mn></m:mfenced><m:mn>2</m:mn></m:msup><m:mo>+</m:mo><m:mn>8</m:mn><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>+</m:mo><m:mn>5</m:mn><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCLIN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCLIN</m:mi></m:maction></m:math>;</li>
</ul></li>
<li class="listcons">if the problem is of type FP, <ul class="listcons">
<li class="listcons">if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCLIN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCLIN</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math>, <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LWORK"><m:mi mathcolor="#EE0000" mathvariant="bold">LWORK</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>7</m:mn><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>+</m:mo><m:mn>1</m:mn></m:math>;</li>
<li class="listcons">if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCLIN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCLIN</m:mi></m:maction><m:mo>&#8805;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction></m:math>, <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LWORK"><m:mi mathcolor="#EE0000" mathvariant="bold">LWORK</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>2</m:mn><m:mo>&#215;</m:mo><m:msup><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mn>2</m:mn></m:msup><m:mo>+</m:mo><m:mn>7</m:mn><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>+</m:mo><m:mn>5</m:mn><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCLIN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCLIN</m:mi></m:maction></m:math>;</li>
<li class="listcons">otherwise <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LWORK"><m:mi mathcolor="#EE0000" mathvariant="bold">LWORK</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>2</m:mn><m:mo>&#215;</m:mo><m:msup><m:mfenced separators=""><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCLIN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCLIN</m:mi></m:maction><m:mo>+</m:mo><m:mn>1</m:mn></m:mfenced><m:mn>2</m:mn></m:msup><m:mo>+</m:mo><m:mn>7</m:mn><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>+</m:mo><m:mn>5</m:mn><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCLIN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCLIN</m:mi></m:maction></m:math>.</li>
</ul></li>
</ul><div class="paramtext">The amounts of workspace provided and required are (by default) output on the current advisory message unit (as defined by <a class="rout" href="../X04/x04abf.xml">X04ABF</a>).  As an alternative to computing <a class="arg" href="#LIWORK">LIWORK</a> and <a class="arg" href="#LWORK">LWORK</a> from the formulas given above, you may prefer to obtain appropriate values from the output of a preliminary run with <a class="arg" href="#LIWORK">LIWORK</a> and <a class="arg" href="#LWORK">LWORK</a> set to <m:math><m:mn>1</m:mn></m:math>.  (E04NFF/E04NFA will then terminate with <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFeq6"><m:mn mathcolor="#003399" mathvariant="bold">6</m:mn></m:maction></m:math>.)</div></div></dd><dt class="paramhead"><a name="IFAIL" id="IFAIL"/>21: &#8194; IFAIL &#8211; INTEGER<span class="pclass">Input/Output</span></dt><dd>
<div class="paramtext"><b>Note:</b> <span class="italic">for E04NFA, <a class="arg" href="#IFAIL">IFAIL</a> does not occur in this position in the parameter list.  See the additional parameters described below</span>.</div><div class="paramtext"><i>On entry</i>: <a class="arg" href="#IFAIL">IFAIL</a> must be set to <m:math><m:mn>0</m:mn></m:math>, <m:math><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow><m:mtext>&#8203; or &#8203;</m:mtext><m:mn>1</m:mn></m:math>. If you are unfamiliar with this parameter you should refer to <a class="sec" href="../GENINT/essint.xml#library3">Section 3.3</a> in  the Essential Introduction for details.</div>
<div class="paramtext"><i>On exit</i>: <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#errors"><m:mn mathcolor="#003399" mathvariant="bold">0</m:mn></m:maction></m:math>&#160;unless the routine detects an error (see <a class="sec" href="#errors">Section 6</a>).
<div class="paramtext">For environments where it might be inappropriate to halt program execution when an error is detected, the value <m:math><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow><m:mtext>&#8203; or &#8203;</m:mtext><m:mn>1</m:mn></m:math>&#160;is recommended.  If the output of error messages is undesirable, then the value <m:math><m:mn>1</m:mn></m:math>&#160;is recommended.  Otherwise, because for this routine the values of the output parameters may be useful even if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>&#8800;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#errors"><m:mn mathcolor="#003399" mathvariant="bold">0</m:mn></m:maction></m:math>&#160;on exit, the recommended value is <m:math><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow></m:math>.  <b>When the value <m:math><m:mrow><m:mo>-</m:mo><m:mn mathvariant="bold">1</m:mn></m:mrow><m:mtext>&#8203; or &#8203;</m:mtext><m:mn>1</m:mn></m:math>&#160;is used it is essential to test the value of <a class="arg" href="#IFAIL">IFAIL</a> on exit.</b></div>
</div><div class="paramtext">E04NFF/E04NFA returns with <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#errors"><m:mn mathcolor="#003399" mathvariant="bold">0</m:mn></m:maction></m:math>&#160;if <m:math><m:mi>x</m:mi></m:math>&#160;is a strong local minimizer, i.e., the reduced gradient (<span class="mono">Norm Gz</span>; see <a class="sec" href="#fc-printedoutput">Section 8.2</a>) is negligible, the Lagrange multipliers (<span class="mono">Lagr Mult</span>; see <a class="sec" href="#fc-printedoutput">Section 8.2</a>) are optimal and <m:math><m:msub><m:mi>H</m:mi><m:mi>R</m:mi></m:msub></m:math>&#160;(the reduced Hessian of <m:math><m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>; see <a class="sec" href="#ad-search">Section 10.2</a>) is positive semi-definite.</div>
</dd><dd class="note"><b>Note:</b> <span class="italic"> the following are additional parameters for specific use with E04NFA.  Users of E04NFF therefore need not read the remainder of this description</span>.</dd><dt class="paramhead"><a name="IUSER" id="IUSER"/>21: &#8194; IUSER(<m:math><m:mo>*</m:mo></m:math>) &#8211; INTEGER array<span class="pclass">User Workspace</span></dt><dd><div class="paramtext"><b>Note:</b> the dimension of the array <a class="arg" href="#IUSER">IUSER</a>
must be at least
<m:math><m:mn>1</m:mn></m:math>.</div> <div class="paramtext">
<a class="arg" href="#IUSER">IUSER</a> is not used by E04NFA, but is passed directly to <a class="arg" href="#QPHESS">QPHESS</a> and may be used to pass information to that routine.</div></dd><dt class="paramhead"><a name="RUSER" id="RUSER"/>22: &#8194; RUSER(<m:math><m:mo>*</m:mo></m:math>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">User Workspace</span></dt><dd><div class="paramtext"><b>Note:</b> the dimension of the array <a class="arg" href="#RUSER">RUSER</a>
must be at least
<m:math><m:mn>1</m:mn></m:math>.</div> <div class="paramtext">
<a class="arg" href="#RUSER">RUSER</a> is not used by E04NFA, but is passed directly to <a class="arg" href="#QPHESS">QPHESS</a> and may be used to pass information to that routine.</div></dd><dt class="paramhead"><a name="LWSAV" id="LWSAV"/>23: &#8194; LWSAV(<m:math><m:mn>120</m:mn></m:math>) &#8211; LOGICAL array<span class="pclass">Communication Array</span></dt><dt class="multi-paramhead"><a name="IWSAV" id="IWSAV"/>24: &#8194; IWSAV(<m:math><m:mn>610</m:mn></m:math>) &#8211; INTEGER array<span class="pclass">Communication Array</span></dt><dt class="multi-paramhead"><a name="RWSAV" id="RWSAV"/>25: &#8194; RWSAV(<m:math><m:mn>475</m:mn></m:math>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Communication Array</span></dt><dd><div class="paramtext">The arrays <a class="arg" href="#LWSAV">LWSAV</a>, <a class="arg" href="#IWSAV">IWSAV</a> and <a class="arg" href="#RWSAV">RWSAV</a> <b>must not</b> be altered between calls to any of the routines <a class="rout" href="../E04/e04wbf.xml">E04WBF</a>, E04NFA, <a class="rout" href="../E04/e04ngf.xml">E04NGA</a> or <a class="rout" href="../E04/e04nhf.xml">E04NHA</a>.</div></dd><dt class="paramhead"><a name="IFAIL2" id="IFAIL2"/>26: &#8194; IFAIL &#8211; INTEGER<span class="pclass">Input/Output</span></dt><dd><div class="paramtext"><b>Note:</b> see the parameter description for <a class="arg" href="#IFAIL">IFAIL</a> above.</div></dd></dl><h2 class="standard"><a class="sec" name="errors" id="errors"/>6&#160;&#160;Error Indicators and Warnings</h2>
<div class="paramtext">If on entry <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#errors"><m:mn mathcolor="#003399" mathvariant="bold">0</m:mn></m:maction></m:math>&#160;or <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#errors"><m:mn mathcolor="#003399" mathvariant="bold">-1</m:mn></m:maction></m:math>, explanatory error messages are output on the current error message unit (as defined by <a class="rout" href="../X04/x04aaf.xml">X04AAF</a>).</div><div class="paramtext"><b>Note:</b> E04NFF/E04NFA may return useful information for one or more of the following detected errors or warnings.</div><div class="paramtext">Errors or warnings detected by the routine:</div>
<dl class="ifail">
<dt class="errorhead"><a name="IFeq1" id="IFeq1"/><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:mn>1</m:mn></m:math></dt>
<dd>
<div class="paramtext">The iterations were terminated at a dead-point.  The necessary conditions for optimality are satisfied but the sufficient conditions are not.  (The reduced gradient is negligible, the Lagrange multipliers are optimal, but <m:math><m:msub><m:mi>H</m:mi><m:mi>R</m:mi></m:msub></m:math>&#160;is singular or there are some very small multipliers.)  If <m:math><m:msup><m:mo>&#8711;</m:mo><m:mn>2</m:mn></m:msup><m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;is not positive-definite, <m:math><m:mi>x</m:mi></m:math>&#160;is not necessarily a local solution of the problem and verification of optimality requires further information.  If <m:math><m:msup><m:mo>&#8711;</m:mo><m:mn>2</m:mn></m:msup><m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;is positive semi-definite or the problem is of type LP, <m:math><m:mi>x</m:mi></m:math>&#160;gives the global minimum value of the objective function, but the final <m:math><m:mi>x</m:mi></m:math>&#160;is not unique.</div>
</dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq2" id="IFeq2"/><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:mn>2</m:mn></m:math></dt>
<dd>
<div class="paramtext">The solution appears to be unbounded, i.e., the objective function is not bounded below in the feasible region.  This value of <a class="arg" href="#IFAIL">IFAIL</a> occurs if a step larger than <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_infinitestepsize"><m:mi mathcolor="#800080;" mathvariant="bold">Infinite Step Size</m:mi></m:maction></m:math>&#160;(<m:math><m:mtext>default value</m:mtext><m:mo>=</m:mo><m:msup><m:mn>10</m:mn><m:mn>20</m:mn></m:msup></m:math>) would have to be taken in order to continue the algorithm, or the next step would result in an element of <m:math><m:mi>x</m:mi></m:math>&#160;having magnitude larger than <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_infiniteboundsize"><m:mi mathcolor="#800080;" mathvariant="bold">Infinite Bound Size</m:mi></m:maction></m:math>&#160;(<m:math><m:mtext>default value</m:mtext><m:mo>=</m:mo><m:msup><m:mn>10</m:mn><m:mn>20</m:mn></m:msup></m:math>).</div>
</dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq3" id="IFeq3"/><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:mn>3</m:mn></m:math></dt>
<dd>
<div class="paramtext">No feasible point was found, i.e., it was not possible to satisfy all the constraints to within the feasibility tolerance.  In this case, the constraint violations at the final <m:math><m:mi>x</m:mi></m:math>&#160;will reveal a value of the tolerance for which a feasible point will exist &#8211; for example, when the feasibility tolerance for each violated constraint exceeds its <span class="mono">Slack</span> (see <a class="sec" href="#fc-printedoutput">Section 8.2</a>) at the final point.  The modified problem (with an altered feasibility tolerance) may then be solved using a <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_warmstart"><m:mi mathcolor="#800080;" mathvariant="bold">Warm Start</m:mi></m:maction></m:math>.  You should check that there are no constraint redundancies.  If the data for the constraints are accurate only to the absolute precision <m:math><m:mi>&#963;</m:mi></m:math>, you should ensure that the value of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_feasibilitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Feasibility Tolerance</m:mi></m:maction></m:math>&#160;(<m:math><m:mtext>default value</m:mtext><m:mo>=</m:mo><m:msqrt><m:mi>&#949;</m:mi></m:msqrt></m:math>, where <m:math><m:mi>&#949;</m:mi></m:math>&#160;is the <span class="bitalic">machine precision</span>) is <span class="italic">greater</span> than <m:math><m:mi>&#963;</m:mi></m:math>.  For example, if all elements of <m:math><m:mi>A</m:mi></m:math>&#160;are of order unity and are accurate only to three decimal places, the <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_feasibilitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Feasibility Tolerance</m:mi></m:maction></m:math>&#160;should be at least <m:math><m:msup><m:mn>10</m:mn><m:mrow><m:mo>-</m:mo><m:mn>3</m:mn></m:mrow></m:msup></m:math>.</div>
</dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq4" id="IFeq4"/><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:mn>4</m:mn></m:math></dt>
<dd>
<div class="paramtext">The limiting number of iterations was reached before normal termination occurred.</div>
<div class="paramtext">The values of the optional parameters <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_feasibility-pi-limit"><m:mi mathcolor="#800080;" mathvariant="bold">Feasibility Phase Iteration Limit</m:mi></m:maction></m:math>&#160;(<m:math><m:mtext>default value</m:mtext><m:mo>=</m:mo><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mn>50</m:mn><m:mo>,</m:mo><m:mrow><m:mn>5</m:mn><m:mfenced separators=""><m:mi>n</m:mi><m:mo>+</m:mo><m:msub><m:mi>m</m:mi><m:mi>L</m:mi></m:msub></m:mfenced></m:mrow></m:mfenced></m:mrow></m:math>) and <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_optimality-pi-limit"><m:mi mathcolor="#800080;" mathvariant="bold">Optimality Phase Iteration Limit</m:mi></m:maction></m:math>&#160;(<m:math><m:mtext>default value</m:mtext><m:mo>=</m:mo><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mn>50</m:mn><m:mo>,</m:mo><m:mrow><m:mn>5</m:mn><m:mfenced separators=""><m:mi>n</m:mi><m:mo>+</m:mo><m:msub><m:mi>m</m:mi><m:mi>L</m:mi></m:msub></m:mfenced></m:mrow></m:mfenced></m:mrow></m:math>) may be too small.  If the method appears to be making progress (e.g., the objective function is being satisfactorily reduced), either increase the iterations limit and rerun E04NFF/E04NFA or, alternatively, rerun E04NFF/E04NFA using the <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_warmstart"><m:mi mathcolor="#800080;" mathvariant="bold">Warm Start</m:mi></m:maction></m:math>&#160;facility to specify the initial working set.</div>
</dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq5" id="IFeq5"/><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:mn>5</m:mn></m:math></dt>
<dd>
<div class="paramtext">The reduced Hessian exceeds its assigned dimension.  The algorithm needed to expand the reduced Hessian when it was already at its maximum dimension, as specified by the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_max-degreesoffreedom"><m:mi mathcolor="#800080;" mathvariant="bold">Maximum Degrees of Freedom</m:mi></m:maction></m:math>&#160;(<m:math><m:mtext>default value</m:mtext><m:mo>=</m:mo><m:mi>n</m:mi></m:math>).</div>
<div class="paramtext">The value of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_max-degreesoffreedom"><m:mi mathcolor="#800080;" mathvariant="bold">Maximum Degrees of Freedom</m:mi></m:maction></m:math>&#160;is too small.  Rerun E04NFF/E04NFA with a larger value (possibly using the <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_warmstart"><m:mi mathcolor="#800080;" mathvariant="bold">Warm Start</m:mi></m:maction></m:math>&#160;facility to specify the initial working set).</div>
</dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq6" id="IFeq6"/><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:mn>6</m:mn></m:math></dt>
<dd><div class="paramtext">
An input parameter is invalid.</div>
</dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq7" id="IFeq7"/><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:mn>7</m:mn></m:math></dt>
<dd>
<div class="paramtext">The designated problem type was not FP, LP, QP1, QP2, QP3 or QP4.  Rerun E04NFF/E04NFA with the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_problemtype"><m:mi mathcolor="#800080;" mathvariant="bold">Problem Type</m:mi></m:maction></m:math>&#160;set to one of these values.</div>
</dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="Overflow" id="Overflow"/><m:math><m:mtext mathvariant="bold">Overflow</m:mtext></m:math></dt>
<dd>
<div class="paramtext">If the printed output before the overflow error contains a warning about serious ill-conditioning in the working set when adding the <m:math><m:mi>j</m:mi></m:math>th constraint, it may be possible to avoid the difficulty by increasing the magnitude of the <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_feasibilitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Feasibility Tolerance</m:mi></m:maction></m:math>&#160;(<m:math><m:mtext>default value</m:mtext><m:mo>=</m:mo><m:msqrt><m:mi>&#949;</m:mi></m:msqrt></m:math>, where <m:math><m:mi>&#949;</m:mi></m:math>&#160;is the <span class="bitalic">machine precision</span>) and rerunning the program.  If the message recurs even after this change, the offending linearly dependent constraint (with index &#8216;<m:math><m:mi>j</m:mi></m:math>&#8217;) must be removed from the problem.</div>
</dd>
</dl><h2 class="standard"><a class="sec" name="accuracy" id="accuracy"/>7&#160;&#160;Accuracy</h2>
<div class="paramtext">E04NFF/E04NFA implements a numerically stable active set strategy and returns solutions that are as accurate as the condition of the problem warrants on the machine.</div><h2 class="standard"><a class="sec" name="fcomments" id="fcomments"/>8&#160;&#160;Further Comments</h2>
<div class="paramtext">This section contains some comments on scaling and a description of the printed output.</div><h3 class="standard"><a class="sec" name="fc-scaling" id="fc-scaling"/>8.1&#160;&#160;Scaling</h3>
<div class="paramtext">Sensible scaling of the problem is likely to reduce the number of iterations required and make the problem less sensitive to perturbations in the data, thus improving the condition of the problem.  In the absence of better information it is usually sensible to make the Euclidean lengths of each constraint of comparable magnitude.  See the <a class="chapint" href="../E04/e04intro.xml">E04 Chapter Introduction</a> and <a class="ref" href="#ref079">Gill <span class="italic">et al.</span> (1981)</a> for further information and advice.</div><h3 class="standard"><a class="sec" name="fc-printedoutput" id="fc-printedoutput"/>8.2&#160;&#160;Description of the Printed Output</h3>
<div class="paramtext">This section describes the intermediate printout and final printout produced by E04NFF/E04NFA.  The intermediate printout is a subset of the monitoring information produced by the routine at every iteration (see <a class="sec" href="#monitoring">Section 12</a>).  You can control the level of printed output (see the description of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_printlevel"><m:mi mathcolor="#800080;" mathvariant="bold">Print Level</m:mi></m:maction></m:math>).  Note that the intermediate printout and final printout are produced only if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_printlevel"><m:mi mathcolor="#800080;" mathvariant="bold">Print Level</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>10</m:mn></m:math>&#160;(the default for E04NFF, by default no output is produced by E04NFA).</div><div class="paramtext">The following line of summary output (<m:math><m:mtext/><m:mo>&lt;</m:mo><m:mn>80</m:mn></m:math>&#160;characters) is produced at every iteration.  In all cases, the values of the quantities printed are those in effect <span class="italic">on completion</span> of the given iteration.
<table class="standard-100"><tr>
<td style="width:9.6em;" valign="baseline"><span class="mono">Itn</span></td>
<td valign="top">
is the iteration count.
</td>
</tr><tr>
<td style="width:9.6em;" valign="baseline"><span class="mono">Step</span></td>
<td valign="top">
is the step taken along the computed search direction.  If a constraint is added during the current iteration, <span class="mono">Step</span> will be the step to the nearest constraint.  When the problem is of type LP, the step can be greater than one during the optimality phase.
</td>
</tr><tr>
<td style="width:9.6em;" valign="baseline"><span class="mono">Ninf</span></td>
<td valign="top">
is the number of violated constraints (infeasibilities).  This will be zero during the optimality phase.
</td>
</tr><tr>
<td style="width:9.6em;" valign="baseline"><span class="mono">Sinf</span>/<span class="mono">Objective</span></td>
<td valign="top">
is the value of the current objective function.  If <m:math><m:mi>x</m:mi></m:math>&#160;is not feasible, <span class="mono">Sinf</span> gives a weighted sum of the magnitudes of constraint violations.  If <m:math><m:mi>x</m:mi></m:math>&#160;is feasible, <span class="mono">Objective</span> is the value of the objective function of <a class="eqn" href="#eqn1">(1)</a>.  The output line for the final iteration of the feasibility phase (i.e., the first iteration for which <span class="mono">Ninf</span> is zero) will give the value of the true objective at the first feasible point.<div class="paramtext">During the optimality phase the value of the objective function will be nonincreasing.  During the feasibility phase the number of constraint infeasibilities will not increase until either a feasible point is found or the optimality of the multipliers implies that no feasible point exists.  Once optimal multipliers are obtained the number of infeasibilities can increase, but the sum of infeasibilities will either remain constant or be reduced until the minimum sum of infeasibilities is found.</div>
</td>
</tr><tr>
<td style="width:9.6em;" valign="baseline"><span class="mono">Norm Gz</span></td>
<td valign="top">

is <m:math>
 <m:mfenced open="&#8214;" close="&#8214;" separators="">
  <m:msubsup><m:mi>Z</m:mi><m:mi>R</m:mi><m:mi mathvariant="normal">T</m:mi></m:msubsup>
  <m:msub><m:mi>g</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub>
 </m:mfenced>
</m:math>, the Euclidean norm of the reduced gradient with respect to <m:math><m:msub><m:mi>Z</m:mi><m:mi>R</m:mi></m:msub></m:math>.  During the optimality phase, this norm will be approximately zero after a unit step.
 
(See <a class="sec" href="#ad-search">Sections 10.2</a> and <a class="sec" href="#ad-mainiteration">10.3</a>.)

</td>
</tr></table>
</div><div class="paramtext">The final printout includes a listing of the status of every variable and constraint.</div><div class="paramtext">The following describes the printout for each variable.  A full stop (.)  is printed for any numerical value that is zero.
<table class="standard-100"><tr>
<td style="width:9.6em;" valign="baseline"><span class="mono">Varbl</span></td>
<td valign="top">
gives the name (<span class="mono">V</span>) and index <m:math><m:mi>j</m:mi></m:math>, for <m:math><m:mi>j</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:mi>n</m:mi></m:math>, of the variable.
</td>
</tr><tr>
<td style="width:9.6em;" valign="baseline"><span class="mono">State</span></td>
<td valign="top">
gives the state of the variable (<span class="mono">FR</span> if neither bound is in the working set, <span class="mono">EQ</span> if a fixed variable, <span class="mono">LL</span> if on its lower bound, <span class="mono">UL</span> if on its upper bound, <span class="mono">TF</span> if temporarily fixed at its current value).  If <span class="mono">Value</span> lies outside the upper or lower bounds by more than the <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_feasibilitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Feasibility Tolerance</m:mi></m:maction></m:math>, <span class="mono">State</span> will be <span class="mono">++</span> or <span class="mono">--</span> respectively.

 <div class="paramtext">
A key is sometimes printed before <span class="mono">State</span>.

 <table class="standard-100"><tr>
<td style="width:3.0em;" valign="baseline"><span class="mono">A</span></td>
<td valign="top">
<span class="italic">Alternative optimum possible</span>.  The variable is active at one of its bounds, but its Lagrange multiplier is essentially zero.  This means that if the variable were allowed to start moving away from its bound then there would be no change to the objective function.  The values of the other free variables <span class="italic">might</span> change, giving a genuine alternative solution.  However, if there are any degenerate variables (labelled <span class="mono">D</span>), the actual change might prove to be zero, since one of them could encounter a bound immediately.  In either case the values of the Lagrange multipliers might also change.
</td>
</tr><tr>
<td style="width:3.0em;" valign="baseline"><span class="mono">D</span></td>
<td valign="top">
<span class="italic">Degenerate</span>.  The variable is free, but it is equal to (or very close to) one of its bounds.
</td>
</tr><tr>
<td style="width:3.0em;" valign="baseline"><span class="mono">I</span></td>
<td valign="top">
<span class="italic">Infeasible</span>.  The variable is currently violating one of its bounds by more than the <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_feasibilitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Feasibility Tolerance</m:mi></m:maction></m:math>.
</td>
</tr></table>
 </div></td>
</tr><tr>
<td style="width:9.6em;" valign="baseline"><span class="mono">Value</span></td>
<td valign="top">
is the value of the variable at the final iteration.
</td>
</tr><tr>
<td style="width:9.6em;" valign="baseline"><span class="mono">Lower Bound</span></td>
<td valign="top">
is the lower bound specified for the variable.  <span class="mono">None</span> indicates that <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#BL"><m:mi mathcolor="#EE0000" mathvariant="bold">BL</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow><m:mo>&#8804;</m:mo><m:mo>-</m:mo><m:mi mathvariant="italic">bigbnd</m:mi></m:math>.
</td>
</tr><tr>
<td style="width:9.6em;" valign="baseline"><span class="mono">Upper Bound</span></td>
<td valign="top">
is the upper bound specified for the variable.  <span class="mono">None</span> indicates that <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#BU"><m:mi mathcolor="#EE0000" mathvariant="bold">BU</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow><m:mo>&#8805;</m:mo><m:mi mathvariant="italic">bigbnd</m:mi></m:math>.
</td>
</tr><tr>
<td style="width:9.6em;" valign="baseline"><span class="mono">Lagr Mult</span></td>
<td valign="top">
is the Lagrange multiplier for the associated bound.  This will be zero if <span class="mono">State</span> is <span class="mono">FR</span> unless <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#BL"><m:mi mathcolor="#EE0000" mathvariant="bold">BL</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow><m:mo>&#8804;</m:mo><m:mo>-</m:mo><m:mi mathvariant="italic">bigbnd</m:mi></m:math>&#160;and <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#BU"><m:mi mathcolor="#EE0000" mathvariant="bold">BU</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow><m:mo>&#8805;</m:mo><m:mi mathvariant="italic">bigbnd</m:mi></m:math>, in which case the entry will be blank.  If <m:math><m:mi>x</m:mi></m:math>&#160;is optimal, the multiplier should be non-negative if <span class="mono">State</span> is <span class="mono">LL</span> and nonpositive if <span class="mono">State</span> is <span class="mono">UL</span>.
</td>
</tr><tr>
<td style="width:9.6em;" valign="baseline"><span class="mono">Slack</span></td>
<td valign="top">
is the difference between the variable <span class="mono">Value</span> and the nearer of its (finite) bounds <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#BL"><m:mi mathcolor="#EE0000" mathvariant="bold">BL</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow></m:math>&#160;and <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#BU"><m:mi mathcolor="#EE0000" mathvariant="bold">BU</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow></m:math>.  A blank entry indicates that the associated variable is not bounded (i.e., <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#BL"><m:mi mathcolor="#EE0000" mathvariant="bold">BL</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow><m:mo>&#8804;</m:mo><m:mo>-</m:mo><m:mi mathvariant="italic">bigbnd</m:mi></m:math>&#160;and <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#BU"><m:mi mathcolor="#EE0000" mathvariant="bold">BU</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow><m:mo>&#8805;</m:mo><m:mi mathvariant="italic">bigbnd</m:mi></m:math>).
</td>
</tr></table>
</div><div class="paramtext">The meaning of the printout for general constraints is the same as that given above for variables, with &#8216;variable&#8217; replaced by &#8216;constraint&#8217;, <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#BL"><m:mi mathcolor="#EE0000" mathvariant="bold">BL</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow></m:math>&#160;and <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#BU"><m:mi mathcolor="#EE0000" mathvariant="bold">BU</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow></m:math>&#160;are replaced by <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#BL"><m:mi mathcolor="#EE0000" mathvariant="bold">BL</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mrow><m:mi>n</m:mi><m:mo>+</m:mo><m:mi>j</m:mi></m:mrow></m:mfenced></m:mrow></m:math>&#160;and <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#BU"><m:mi mathcolor="#EE0000" mathvariant="bold">BU</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mrow><m:mi>n</m:mi><m:mo>+</m:mo><m:mi>j</m:mi></m:mrow></m:mfenced></m:mrow></m:math>&#160;respectively, and with the following change in the heading:
<table class="standard-100"><tr>
<td style="width:9.6em;" valign="baseline"><span class="mono">L Con</span></td>
<td valign="top">
gives the name (<span class="mono">L</span>) and index <m:math><m:mi>j</m:mi></m:math>, for <m:math><m:mi>j</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:msub><m:mi>n</m:mi><m:mi>L</m:mi></m:msub></m:math>, of the linear constraint.
</td>
</tr></table>
</div><div class="paramtext">Note that movement off a constraint (as opposed to a variable moving away from its bound) can be interpreted as allowing the entry in the <span class="mono">Slack</span> column to become positive.</div><div class="paramtext">Numerical values are output with a fixed number of digits; they are not guaranteed to be accurate to this precision.</div><h2 class="standard"><a class="sec" name="example" id="example"/>9&#160;&#160;Example</h2>
<div class="paramtext">This example minimizes the quadratic function <m:math><m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced><m:mo>=</m:mo><m:msup><m:mi>c</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>x</m:mi><m:mo>+</m:mo><m:mfrac other="small"><m:mn>1</m:mn><m:mn>2</m:mn></m:mfrac><m:msup><m:mi>x</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>H</m:mi><m:mi>x</m:mi></m:math>, where

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mi>c</m:mi><m:mo>=</m:mo><m:msup><m:mfenced separators=""><m:mrow><m:mo>-</m:mo><m:mn>0.02</m:mn></m:mrow><m:mo>,</m:mo><m:mrow><m:mo>-</m:mo><m:mn>0.2</m:mn></m:mrow><m:mo>,</m:mo><m:mrow><m:mo>-</m:mo><m:mn>0.2</m:mn></m:mrow><m:mo>,</m:mo><m:mrow><m:mo>-</m:mo><m:mn>0.2</m:mn></m:mrow><m:mo>,</m:mo><m:mrow><m:mo>-</m:mo><m:mn>0.2</m:mn></m:mrow><m:mo>,</m:mo><m:mn>0.04</m:mn><m:mo>,</m:mo><m:mn>0.04</m:mn></m:mfenced><m:mi mathvariant="normal">T</m:mi></m:msup>
</m:math></td><td class="formula2"/></tr></table></div><div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mi>H</m:mi><m:mo>=</m:mo>
 <m:mfenced><m:mtable>
  <m:mtr>
   <m:mtd><m:mn>2</m:mn></m:mtd>
   <m:mtd><m:mn>0</m:mn></m:mtd>
   <m:mtd><m:mn>0</m:mn></m:mtd>
   <m:mtd><m:mn>0</m:mn></m:mtd>
   <m:mtd><m:mn>0</m:mn></m:mtd>
   <m:mtd><m:mphantom><m:mo>-</m:mo></m:mphantom><m:mn>0</m:mn></m:mtd>
   <m:mtd><m:mphantom><m:mo>-</m:mo></m:mphantom><m:mn>0</m:mn></m:mtd>
  </m:mtr><m:mtr>
   <m:mtd><m:mn>0</m:mn></m:mtd>
   <m:mtd><m:mn>2</m:mn></m:mtd>
   <m:mtd><m:mn>0</m:mn></m:mtd>
   <m:mtd><m:mn>0</m:mn></m:mtd>
   <m:mtd><m:mn>0</m:mn></m:mtd>
   <m:mtd><m:mphantom><m:mo>-</m:mo></m:mphantom><m:mn>0</m:mn></m:mtd>
   <m:mtd><m:mphantom><m:mo>-</m:mo></m:mphantom><m:mn>0</m:mn></m:mtd>
  </m:mtr><m:mtr>
   <m:mtd><m:mn>0</m:mn></m:mtd>
   <m:mtd><m:mn>0</m:mn></m:mtd>
   <m:mtd><m:mn>2</m:mn></m:mtd>
   <m:mtd><m:mn>2</m:mn></m:mtd>
   <m:mtd><m:mn>0</m:mn></m:mtd>
   <m:mtd><m:mphantom><m:mo>-</m:mo></m:mphantom><m:mn>0</m:mn></m:mtd>
   <m:mtd><m:mphantom><m:mo>-</m:mo></m:mphantom><m:mn>0</m:mn></m:mtd>
  </m:mtr><m:mtr>
   <m:mtd><m:mn>0</m:mn></m:mtd>
   <m:mtd><m:mn>0</m:mn></m:mtd>
   <m:mtd><m:mn>2</m:mn></m:mtd>
   <m:mtd><m:mn>2</m:mn></m:mtd>
   <m:mtd><m:mn>0</m:mn></m:mtd>
   <m:mtd><m:mphantom><m:mo>-</m:mo></m:mphantom><m:mn>0</m:mn></m:mtd>
   <m:mtd><m:mphantom><m:mo>-</m:mo></m:mphantom><m:mn>0</m:mn></m:mtd>
  </m:mtr><m:mtr>
   <m:mtd><m:mn>0</m:mn></m:mtd>
   <m:mtd><m:mn>0</m:mn></m:mtd>
   <m:mtd><m:mn>0</m:mn></m:mtd>
   <m:mtd><m:mn>0</m:mn></m:mtd>
   <m:mtd><m:mn>2</m:mn></m:mtd>
   <m:mtd><m:mphantom><m:mo>-</m:mo></m:mphantom><m:mn>0</m:mn></m:mtd>
   <m:mtd><m:mphantom><m:mo>-</m:mo></m:mphantom><m:mn>0</m:mn></m:mtd>
  </m:mtr><m:mtr>
   <m:mtd><m:mn>0</m:mn></m:mtd>
   <m:mtd><m:mn>0</m:mn></m:mtd>
   <m:mtd><m:mn>0</m:mn></m:mtd>
   <m:mtd><m:mn>0</m:mn></m:mtd>
   <m:mtd><m:mn>0</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>2</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>2</m:mn></m:mrow></m:mtd>
  </m:mtr><m:mtr>
   <m:mtd><m:mn>0</m:mn></m:mtd>
   <m:mtd><m:mn>0</m:mn></m:mtd>
   <m:mtd><m:mn>0</m:mn></m:mtd>
   <m:mtd><m:mn>0</m:mn></m:mtd>
   <m:mtd><m:mn>0</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>2</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>2</m:mn></m:mrow></m:mtd>
  </m:mtr>
 </m:mtable></m:mfenced>
</m:math></td><td class="formula2"/></tr></table></div>

subject to the bounds

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mtable>
 <m:mtr>
  <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>0.01</m:mn></m:mrow><m:mo>&#8804;</m:mo><m:msub><m:mi>x</m:mi><m:mn>1</m:mn></m:msub><m:mo>&#8804;</m:mo><m:mn>0.01</m:mn></m:mtd>
 </m:mtr><m:mtr>
  <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>0.1</m:mn></m:mrow><m:mphantom><m:mn>0</m:mn></m:mphantom><m:mo>&#8804;</m:mo><m:msub><m:mi>x</m:mi><m:mn>2</m:mn></m:msub><m:mo>&#8804;</m:mo><m:mn>0.15</m:mn></m:mtd>
 </m:mtr><m:mtr>
  <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>0.01</m:mn></m:mrow><m:mo>&#8804;</m:mo><m:msub><m:mi>x</m:mi><m:mn>3</m:mn></m:msub><m:mo>&#8804;</m:mo><m:mn>0.03</m:mn></m:mtd>
 </m:mtr><m:mtr>
  <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>0.04</m:mn></m:mrow><m:mo>&#8804;</m:mo><m:msub><m:mi>x</m:mi><m:mn>4</m:mn></m:msub><m:mo>&#8804;</m:mo><m:mn>0.02</m:mn></m:mtd>
 </m:mtr><m:mtr>
  <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>0.1</m:mn></m:mrow><m:mphantom><m:mn>0</m:mn></m:mphantom><m:mo>&#8804;</m:mo><m:msub><m:mi>x</m:mi><m:mn>5</m:mn></m:msub><m:mo>&#8804;</m:mo><m:mn>0.05</m:mn></m:mtd>
 </m:mtr><m:mtr>
  <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>0.01</m:mn></m:mrow><m:mo>&#8804;</m:mo><m:msub><m:mi>x</m:mi><m:mn>6</m:mn></m:msub><m:mphantom><m:mo>&#8804;</m:mo><m:mn>0.00</m:mn></m:mphantom></m:mtd>
 </m:mtr><m:mtr>
  <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>0.01</m:mn></m:mrow><m:mo>&#8804;</m:mo><m:msub><m:mi>x</m:mi><m:mn>7</m:mn></m:msub><m:mphantom><m:mo>&#8804;</m:mo><m:mn>0.00</m:mn></m:mphantom></m:mtd>
 </m:mtr>
</m:mtable>
</m:math></td><td class="formula2"/></tr></table></div>

and to the general constraints


<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mtable>
 <m:mtr>
  <m:mtd columnalign="left">
  </m:mtd>
  <m:mtd columnalign="center">
  </m:mtd>
  <m:mtd columnalign="right">
   <m:msub><m:mi>x</m:mi><m:mn>1</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>+</m:mo>
  </m:mtd>
  <m:mtd columnalign="right">
   <m:msub><m:mi>x</m:mi><m:mn>2</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>+</m:mo>
  </m:mtd>
  <m:mtd columnalign="right">
   <m:msub><m:mi>x</m:mi><m:mn>3</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>+</m:mo>
  </m:mtd>
  <m:mtd columnalign="right">
   <m:msub><m:mi>x</m:mi><m:mn>4</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>+</m:mo>
  </m:mtd>
  <m:mtd columnalign="right">
   <m:msub><m:mi>x</m:mi><m:mn>5</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>+</m:mo>
  </m:mtd>
  <m:mtd columnalign="right">
   <m:msub><m:mi>x</m:mi><m:mn>6</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>+</m:mo>
  </m:mtd>
  <m:mtd columnalign="right">
   <m:msub><m:mi>x</m:mi><m:mn>7</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>=</m:mo>
  </m:mtd>
  <m:mtd columnalign="left">
   <m:mrow><m:mo>-</m:mo><m:mn>0.13</m:mn></m:mrow>
  </m:mtd>
 </m:mtr>
 <m:mtr>
  <m:mtd columnalign="left">
  </m:mtd>
  <m:mtd columnalign="center">
  </m:mtd>
  <m:mtd columnalign="right">
   <m:mn>0.15</m:mn><m:msub><m:mi>x</m:mi><m:mn>1</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>+</m:mo>
  </m:mtd>
  <m:mtd columnalign="right">
   <m:mn>0.04</m:mn><m:msub><m:mi>x</m:mi><m:mn>2</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>+</m:mo>
  </m:mtd>
  <m:mtd columnalign="right">
   <m:mn>0.02</m:mn><m:msub><m:mi>x</m:mi><m:mn>3</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>+</m:mo>
  </m:mtd>
  <m:mtd columnalign="right">
   <m:mn>0.04</m:mn><m:msub><m:mi>x</m:mi><m:mn>4</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>+</m:mo>
  </m:mtd>
  <m:mtd columnalign="right">
   <m:mn>0.02</m:mn><m:msub><m:mi>x</m:mi><m:mn>5</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>+</m:mo>
  </m:mtd>
  <m:mtd columnalign="right">
   <m:mn>0.01</m:mn><m:msub><m:mi>x</m:mi><m:mn>6</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>+</m:mo>
  </m:mtd>
  <m:mtd columnalign="right">
   <m:mn>0.03</m:mn><m:msub><m:mi>x</m:mi><m:mn>7</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>&#8804;</m:mo>
  </m:mtd>
  <m:mtd columnalign="left">
   <m:mrow><m:mo>-</m:mo><m:mn>0.0049</m:mn></m:mrow>
  </m:mtd>
 </m:mtr>
 <m:mtr>
  <m:mtd columnalign="left">
  </m:mtd>
  <m:mtd columnalign="center">
  </m:mtd>
  <m:mtd columnalign="right">
   <m:mn>0.03</m:mn><m:msub><m:mi>x</m:mi><m:mn>1</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>+</m:mo>
  </m:mtd>
  <m:mtd columnalign="right">
   <m:mn>0.05</m:mn><m:msub><m:mi>x</m:mi><m:mn>2</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>+</m:mo>
  </m:mtd>
  <m:mtd columnalign="right">
   <m:mn>0.08</m:mn><m:msub><m:mi>x</m:mi><m:mn>3</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>+</m:mo>
  </m:mtd>
  <m:mtd columnalign="right">
   <m:mn>0.02</m:mn><m:msub><m:mi>x</m:mi><m:mn>4</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>+</m:mo>
  </m:mtd>
  <m:mtd columnalign="right">
   <m:mn>0.06</m:mn><m:msub><m:mi>x</m:mi><m:mn>5</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>+</m:mo>
  </m:mtd>
  <m:mtd columnalign="right">
   <m:mn>0.01</m:mn><m:msub><m:mi>x</m:mi><m:mn>6</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
  </m:mtd>
  <m:mtd columnalign="right">
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>&#8804;</m:mo>
  </m:mtd>
  <m:mtd columnalign="left">
   <m:mrow><m:mo>-</m:mo><m:mn>0.0064</m:mn></m:mrow>
  </m:mtd>
 </m:mtr>
 <m:mtr>
  <m:mtd columnalign="left">
  </m:mtd>
  <m:mtd columnalign="center">
  </m:mtd>
  <m:mtd columnalign="right">
   <m:mphantom><m:mn>0</m:mn></m:mphantom><m:mn>0.02</m:mn><m:msub><m:mi>x</m:mi><m:mn>1</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>+</m:mo>
  </m:mtd>
  <m:mtd columnalign="right">
   <m:mn>0.04</m:mn><m:msub><m:mi>x</m:mi><m:mn>2</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>+</m:mo>
  </m:mtd>
  <m:mtd columnalign="right">
   <m:mn>0.01</m:mn><m:msub><m:mi>x</m:mi><m:mn>3</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>+</m:mo>
  </m:mtd>
  <m:mtd columnalign="right">
   <m:mn>0.02</m:mn><m:msub><m:mi>x</m:mi><m:mn>4</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>+</m:mo>
  </m:mtd>
  <m:mtd columnalign="right">
   <m:mn>0.02</m:mn><m:msub><m:mi>x</m:mi><m:mn>5</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
  </m:mtd>
  <m:mtd columnalign="right">
  </m:mtd>
  <m:mtd columnalign="center">
  </m:mtd>
  <m:mtd columnalign="right">
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>&#8804;</m:mo>
  </m:mtd>
  <m:mtd columnalign="left">
   <m:mrow><m:mo>-</m:mo><m:mn>0.0037</m:mn></m:mrow>
  </m:mtd>
 </m:mtr>
 <m:mtr>
  <m:mtd columnalign="left">
  </m:mtd>
  <m:mtd columnalign="center">
  </m:mtd>
  <m:mtd columnalign="right">
   <m:mn>0.02</m:mn><m:msub><m:mi>x</m:mi><m:mn>1</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>+</m:mo>
  </m:mtd>
  <m:mtd columnalign="right">
   <m:mn>0.03</m:mn><m:msub><m:mi>x</m:mi><m:mn>2</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
  </m:mtd>
  <m:mtd columnalign="right">
  </m:mtd>
  <m:mtd columnalign="center">
  </m:mtd>
  <m:mtd columnalign="right">
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>+</m:mo>
  </m:mtd>
  <m:mtd columnalign="right">
   <m:mn>0.01</m:mn><m:msub><m:mi>x</m:mi><m:mn>5</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
  </m:mtd>
  <m:mtd columnalign="right">
  </m:mtd>
  <m:mtd columnalign="center">
  </m:mtd>
  <m:mtd columnalign="right">
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>&#8804;</m:mo>
  </m:mtd>
  <m:mtd columnalign="left">
   <m:mrow><m:mo>-</m:mo><m:mn>0.0012</m:mn></m:mrow>
  </m:mtd>
 </m:mtr>
 <m:mtr>
  <m:mtd columnalign="left">
   <m:mrow><m:mo>-</m:mo><m:mn>0.0992</m:mn></m:mrow>
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>&#8804;</m:mo>
  </m:mtd>
  <m:mtd columnalign="right">
   <m:mn>0.70</m:mn><m:msub><m:mi>x</m:mi><m:mn>1</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>+</m:mo>
  </m:mtd>
  <m:mtd columnalign="right">
   <m:mn>0.75</m:mn><m:msub><m:mi>x</m:mi><m:mn>2</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>+</m:mo>
  </m:mtd>
  <m:mtd columnalign="right">
   <m:mn>0.80</m:mn><m:msub><m:mi>x</m:mi><m:mn>3</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>+</m:mo>
  </m:mtd>
  <m:mtd columnalign="right">
   <m:mn>0.75</m:mn><m:msub><m:mi>x</m:mi><m:mn>4</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>+</m:mo>
  </m:mtd>
  <m:mtd columnalign="right">
   <m:mn>0.80</m:mn><m:msub><m:mi>x</m:mi><m:mn>5</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>+</m:mo>
  </m:mtd>
  <m:mtd columnalign="right">
   <m:mn>0.97</m:mn><m:msub><m:mi>x</m:mi><m:mn>6</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
  </m:mtd>
  <m:mtd columnalign="right">
  </m:mtd>
  <m:mtd columnalign="center">
  </m:mtd>
  <m:mtd columnalign="left">
  </m:mtd>
 </m:mtr>
 <m:mtr>
  <m:mtd columnalign="left">
   <m:mrow><m:mo>-</m:mo><m:mn>0.003</m:mn></m:mrow>
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>&#8804;</m:mo>
  </m:mtd>
  <m:mtd columnalign="right">
   <m:mn>0.02</m:mn><m:msub><m:mi>x</m:mi><m:mn>1</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>+</m:mo>
  </m:mtd>
  <m:mtd columnalign="right">
   <m:mn>0.06</m:mn><m:msub><m:mi>x</m:mi><m:mn>2</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>+</m:mo>
  </m:mtd>
  <m:mtd columnalign="right">
   <m:mn>0.08</m:mn><m:msub><m:mi>x</m:mi><m:mn>3</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>+</m:mo>
  </m:mtd>
  <m:mtd columnalign="right">
   <m:mn>0.12</m:mn><m:msub><m:mi>x</m:mi><m:mn>4</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>+</m:mo>
  </m:mtd>
  <m:mtd columnalign="right">
   <m:mn>0.02</m:mn><m:msub><m:mi>x</m:mi><m:mn>5</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>+</m:mo>
  </m:mtd>
  <m:mtd columnalign="right">
   <m:mn>0.01</m:mn><m:msub><m:mi>x</m:mi><m:mn>6</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>+</m:mo>
  </m:mtd>
  <m:mtd columnalign="right">
   <m:mn>0.97</m:mn><m:msub><m:mi>x</m:mi><m:mn>7</m:mn></m:msub>
  </m:mtd>
  <m:mtd columnalign="center">
   <m:mo>&#8804;</m:mo>
  </m:mtd>
  <m:mtd columnalign="left">
   <m:mphantom><m:mo>-</m:mo></m:mphantom><m:mn>0.002</m:mn>
  </m:mtd>
 </m:mtr>
</m:mtable>
</m:math></td><td class="formula2"/></tr></table></div>


The initial point, which is infeasible, is

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
 <m:msub><m:mi>x</m:mi><m:mn>0</m:mn></m:msub>
 <m:mo>=</m:mo>
 <m:msup><m:mfenced separators=""><m:mrow><m:mo>-</m:mo><m:mn>0.01</m:mn></m:mrow><m:mo>,</m:mo><m:mrow><m:mo>-</m:mo><m:mn>0.03</m:mn></m:mrow><m:mo>,</m:mo><m:mn>0.0</m:mn><m:mo>,</m:mo><m:mrow><m:mo>-</m:mo><m:mn>0.01</m:mn></m:mrow><m:mo>,</m:mo><m:mrow><m:mo>-</m:mo><m:mn>0.1</m:mn></m:mrow><m:mo>,</m:mo><m:mn>0.02</m:mn><m:mo>,</m:mo><m:mn>0.01</m:mn></m:mfenced><m:mi mathvariant="normal">T</m:mi></m:msup>
 <m:mtext>.</m:mtext>
</m:math></td><td class="formula2"/></tr></table></div>

The optimal solution (to five figures) is

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:msup><m:mi>x</m:mi><m:mo>*</m:mo></m:msup><m:mo>=</m:mo><m:msup><m:mfenced separators=""><m:mrow><m:mo>-</m:mo><m:mn>0.01</m:mn></m:mrow><m:mo>,</m:mo><m:mrow><m:mo>-</m:mo><m:mn>0.069865</m:mn></m:mrow><m:mo>,</m:mo><m:mn>0.018259</m:mn><m:mo>,</m:mo><m:mrow><m:mo>-</m:mo><m:mn>0.24261</m:mn></m:mrow><m:mo>,</m:mo><m:mrow><m:mo>-</m:mo><m:mn>0.62006</m:mn></m:mrow><m:mo>,</m:mo><m:mn>0.013805</m:mn><m:mo>,</m:mo><m:mn>0.0040665</m:mn></m:mfenced><m:mi mathvariant="normal">T</m:mi></m:msup><m:mtext>.</m:mtext>
</m:math></td><td class="formula2"/></tr></table></div>

One bound constraint and four general constraints are active at the solution.</div><div class="paramtext">The document for <a class="rout" href="../E04/e04ngf.xml">E04NGF/E04NGA</a> includes an example program to solve the same problem using some of the optional parameters described in <a class="sec" href="#optparams">Section 11</a>.</div><h3 class="standard"><a class="sec" name="examtext" id="examtext"/>9.1&#160;&#160;Program Text</h3>
<div class="paramtext"><b>Note:</b> <span class="italic">the following programs illustrate the use of E04NFF and E04NFA</span>.</div><p><a class="verbatimref" href="../../examples/source/e04nffe.f">Program Text (e04nffe.f)</a></p><p><a class="verbatimref" href="../../examples/source/e04nfae.f">Program Text (e04nfae.f)</a></p><h3 class="standard"><a class="sec" name="examdata" id="examdata"/>9.2&#160;&#160;Program Data</h3>
<p><a class="verbatimref" href="../../examples/data/e04nffe.d">Program&#160;Data (e04nffe.d)</a></p><p><a class="verbatimref" href="../../examples/data/e04nfae.d">Program&#160;Data (e04nfae.d)</a></p><h3 class="standard"><a class="sec" name="examresults" id="examresults"/>9.3&#160;&#160;Program Results</h3>
<p><a class="verbatimref" href="../../examples/baseresults/e04nffe.r">Program Results (e04nffe.r)</a></p><p><a class="verbatimref" href="../../examples/baseresults/e04nfae.r">Program Results (e04nfae.r)</a></p>
<div class="paramtext"><b>Note:</b> <span class="italic">the remainder of this document is intended for more advanced users.  <a class="sec" href="#algdetails">Section 10</a> contains a detailed description of the algorithm which may be needed in order to understand <a class="sec" href="#optparams">Sections 11</a> and <a class="sec" href="#monitoring">12</a>.  <a class="sec" href="#optparams">Section 11</a> describes the optional parameters which may be set by calls to <a class="rout" href="../E04/e04mgf.xml">E04MGF/E04MGA</a> and/or <a class="rout" href="../E04/e04mhf.xml">E04MHF/E04MHA</a>.  <a class="sec" href="#monitoring">Section 12</a> describes the quantities which can be requested to monitor the course of the computation</span>.</div><h2 class="standard"><a class="sec" name="algdetails" id="algdetails"/>10&#160;&#160;Algorithmic Details</h2>
<div class="paramtext">This section contains a detailed description of the method used by E04NFF/E04NFA.</div><h3 class="standard"><a class="sec" name="ad-overview" id="ad-overview"/>10.1&#160;&#160;Overview</h3>
<div class="paramtext">E04NFF/E04NFA is based on an inertia-controlling method that maintains a Cholesky factorization of the reduced Hessian (see below).  The method is based on that of <a class="ref" href="#ref489">Gill and Murray (1978)</a>, and is described in detail by  <a class="ref" href="#ref491">Gill <span class="italic">et al.</span> (1991)</a>.  Here we briefly summarize the main features of the method.  Where possible, explicit reference is made to the names of variables that are parameters of E04NFF/E04NFA or appear in the printed output.  E04NFF/E04NFA has two phases: 
<table class="standard-100"><tr>
<td style="width:2.1em;" valign="baseline">(i)</td>
<td valign="top">finding an initial feasible point by minimizing the sum of infeasibilities (the <span class="italic">feasibility phase</span>), and</td>
</tr><tr>
<td style="width:2.1em;" valign="baseline">(ii)</td>
<td valign="top">minimizing the quadratic objective function within the feasible region (the <span class="italic">optimality phase</span>).</td>
</tr></table>
</div><div class="paramtext">The computations in both phases are performed by the same subroutines.  The two-phase nature of the algorithm is reflected by changing the function being minimized from the sum of infeasibilities to the quadratic objective function.  The feasibility phase does <span class="italic">not</span> perform the standard simplex method (i.e., it does not necessarily find a vertex), except in the LP case when <m:math><m:msub><m:mi>m</m:mi><m:mi>L</m:mi></m:msub><m:mo>&#8804;</m:mo><m:mi>n</m:mi></m:math>.  Once any iterate is feasible, all subsequent iterates remain feasible.</div><div class="paramtext">E04NFF/E04NFA has been designed to be efficient when used to solve a <span class="italic">sequence</span> of related problems &#8211; for example, within a sequential quadratic programming method for nonlinearly constrained optimization (e.g., <a class="rout" href="../E04/e04uff.xml">E04UFF/E04UFA</a> or <a class="rout" href="../E04/e04wdf.xml">E04WDF</a>).  In particular, you may specify an initial working set (the indices of the constraints believed to be satisfied exactly at the solution); see the discussion of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_warmstart"><m:mi mathcolor="#800080;" mathvariant="bold">Warm Start</m:mi></m:maction></m:math>.</div><div class="paramtext">In general, an iterative process is required to solve a quadratic program.  (For simplicity, we shall always consider a typical iteration and avoid reference to the index of the iteration.)  Each new iterate <m:math><m:mover><m:mi>x</m:mi><m:mo>-</m:mo></m:mover></m:math>&#160;is defined by

<div class="formula-eqn"><a name="eqn1" id="eqn1"/><table class="formula-eqn"><tr><td class="formula-eqn"><m:math display="block">
<m:mover><m:mi>x</m:mi><m:mo>-</m:mo></m:mover><m:mo>=</m:mo><m:mi>x</m:mi><m:mo>+</m:mo><m:mi>&#945;</m:mi><m:mi>p</m:mi>
</m:math></td><td class="formula-eqn2">
      (1)
     </td></tr></table></div>

where the <span class="italic">step length</span>
<m:math><m:mi>&#945;</m:mi></m:math>&#160;is a non-negative scalar and <m:math><m:mi>p</m:mi></m:math>&#160;is called the <span class="italic">search direction</span>.</div><div class="paramtext">At each point <m:math><m:mi>x</m:mi></m:math>, a working set of constraints is defined to be a linearly independent subset of the constraints that are satisfied &#8216;exactly&#8217; (to within the tolerance defined by the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_feasibilitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Feasibility Tolerance</m:mi></m:maction></m:math>).  The working set is the current prediction of the constraints that hold with equality at the solution of a linearly constrained QP problem.  The search direction is constructed so that the constraints in the working set remain <span class="italic">unaltered</span> for any value of the step length.  For a bound constraint in the working set, this property is achieved by setting the corresponding element of the search direction to zero.  Thus, the associated variable is <span class="italic">fixed</span>, and specification of the working set induces a partition of <m:math><m:mi>x</m:mi></m:math>&#160;into <span class="italic">fixed</span> and <span class="italic">free</span> variables.  During a given iteration, the fixed variables are effectively removed from the problem; since the relevant elements of the search direction are zero, the columns of <m:math><m:mi>A</m:mi></m:math>&#160;corresponding to fixed variables may be ignored.</div><div class="paramtext">Let <m:math><m:msub><m:mi>m</m:mi><m:mi mathvariant="normal">W</m:mi></m:msub></m:math>&#160;denote the number of general constraints in the working set and let <m:math><m:msub><m:mi>n</m:mi><m:mi mathvariant="normal">FX</m:mi></m:msub></m:math>&#160;denote the number of variables fixed at one of their bounds  (<m:math><m:msub><m:mi>m</m:mi><m:mi mathvariant="normal">W</m:mi></m:msub></m:math>&#160;and <m:math><m:msub><m:mi>n</m:mi><m:mi mathvariant="normal">FX</m:mi></m:msub></m:math>&#160;are the quantities <span class="mono">Lin</span> and <span class="mono">Bnd</span> in the monitoring file output from E04NFF/E04NFA; see <a class="sec" href="#monitoring">Section 12</a>).  Similarly, let <m:math><m:msub><m:mi>n</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub></m:math>&#160;(<m:math><m:msub><m:mi>n</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub><m:mo>=</m:mo><m:mi>n</m:mi><m:mo>-</m:mo><m:msub><m:mi>n</m:mi><m:mi mathvariant="normal">FX</m:mi></m:msub></m:math>) denote the number of free variables.  At every iteration, <span class="italic">the variables are reordered so that the last</span>
<m:math><m:msub><m:mi>n</m:mi><m:mi mathvariant="normal">FX</m:mi></m:msub></m:math>&#160;<span class="italic">variables are fixed</span>, with all other relevant vectors and matrices ordered accordingly.</div><h3 class="standard"><a class="sec" name="ad-search" id="ad-search"/>10.2&#160;&#160;Definition of Search Direction</h3>
<div class="paramtext">Let <m:math><m:msub><m:mi>A</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub></m:math>&#160;denote the <m:math><m:msub><m:mi>m</m:mi><m:mi mathvariant="normal">W</m:mi></m:msub></m:math>&#160;by <m:math><m:msub><m:mi>n</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub></m:math>&#160;sub-matrix of general constraints in the working set corresponding to the free variables and let <m:math><m:msub><m:mi>p</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub></m:math>&#160;denote the search direction with respect to the free variables only.  The general constraints in the working set will be unaltered by any move along <m:math><m:mi>p</m:mi></m:math>&#160;if

<div class="formula-eqn"><a name="eqn2" id="eqn2"/><table class="formula-eqn"><tr><td class="formula-eqn"><m:math display="block">
<m:msub><m:mi>A</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub><m:msub><m:mi>p</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub><m:mo>=</m:mo><m:mn>0</m:mn><m:mtext>.</m:mtext>
</m:math></td><td class="formula-eqn2">
      (2)
     </td></tr></table></div>

In order to compute <m:math><m:msub><m:mi>p</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub></m:math>, the <m:math><m:mi>T</m:mi><m:mi>Q</m:mi></m:math>&#160;<span class="italic">factorization</span> of <m:math><m:msub><m:mi>A</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub></m:math>&#160;is used:

<div class="formula-eqn"><a name="eqn3" id="eqn3"/><table class="formula-eqn"><tr><td class="formula-eqn"><m:math display="block">
<m:msub><m:mi>A</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub><m:msub><m:mi>Q</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub><m:mo>=</m:mo><m:mfenced separators=""><m:mn>0</m:mn><m:mtext>&#8195;</m:mtext><m:mi>T</m:mi></m:mfenced><m:mtext>,</m:mtext>
</m:math></td><td class="formula-eqn2">
      (3)
     </td></tr></table></div>

where <m:math><m:mi>T</m:mi></m:math>&#160;is a nonsingular <m:math><m:msub><m:mi>m</m:mi><m:mi mathvariant="normal">W</m:mi></m:msub></m:math>&#160;by <m:math><m:msub><m:mi>m</m:mi><m:mi mathvariant="normal">W</m:mi></m:msub></m:math>&#160;upper triangular matrix (i.e., <m:math><m:msub><m:mi>t</m:mi><m:mrow><m:mi>i</m:mi><m:mi>j</m:mi></m:mrow></m:msub><m:mo>=</m:mo><m:mn>0</m:mn></m:math>&#160;if <m:math><m:mi>i</m:mi><m:mo>&gt;</m:mo><m:mi>j</m:mi></m:math>), and the nonsingular <m:math><m:msub><m:mi>n</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub></m:math>&#160;by <m:math><m:msub><m:mi>n</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub></m:math>&#160;matrix <m:math><m:msub><m:mi>Q</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub></m:math>&#160;is the product of orthogonal transformations (see <a class="ref" href="#ref090">Gill <span class="italic">et al.</span> (1984)</a>).  If the columns of <m:math><m:msub><m:mi>Q</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub></m:math>&#160;are partitioned so that

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:msub><m:mi>Q</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub><m:mo>=</m:mo><m:mfenced separators=""><m:mi>Z</m:mi><m:mtext>&#8195;</m:mtext><m:mi>Y</m:mi></m:mfenced><m:mtext>,</m:mtext>
</m:math></td><td class="formula2"/></tr></table></div>

where <m:math><m:mi>Y</m:mi></m:math>&#160;is <m:math><m:msub><m:mi>n</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub></m:math>&#160;by <m:math><m:msub><m:mi>m</m:mi><m:mi mathvariant="normal">W</m:mi></m:msub></m:math>, then the <m:math><m:msub><m:mi>n</m:mi><m:mi>Z</m:mi></m:msub></m:math>&#160;<m:math><m:mfenced separators=""><m:msub><m:mi>n</m:mi><m:mi>Z</m:mi></m:msub><m:mo>=</m:mo><m:msub><m:mi>n</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub><m:mo>-</m:mo><m:msub><m:mi>m</m:mi><m:mi mathvariant="normal">W</m:mi></m:msub></m:mfenced></m:math>&#160;columns of <m:math><m:mi>Z</m:mi></m:math>&#160;form a basis for the null space of <m:math><m:msub><m:mi>A</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub></m:math>.  Let <m:math><m:msub><m:mi>n</m:mi><m:mi>R</m:mi></m:msub></m:math>&#160;be an integer such that <m:math><m:mn>0</m:mn><m:mo>&#8804;</m:mo><m:msub><m:mi>n</m:mi><m:mi>R</m:mi></m:msub><m:mo>&#8804;</m:mo><m:msub><m:mi>n</m:mi><m:mi>Z</m:mi></m:msub></m:math>, and let <m:math><m:msub><m:mi>Z</m:mi><m:mi>R</m:mi></m:msub></m:math>&#160;denote a matrix whose <m:math><m:msub><m:mi>n</m:mi><m:mi>R</m:mi></m:msub></m:math>&#160;columns are a subset of the columns of <m:math><m:mi>Z</m:mi></m:math>.  (The integer <m:math><m:msub><m:mi>n</m:mi><m:mi>R</m:mi></m:msub></m:math>&#160;is the quantity <span class="mono">Zr</span> in the monitoring output from E04NFF/E04NFA.  In many cases, <m:math><m:msub><m:mi>Z</m:mi><m:mi>R</m:mi></m:msub></m:math>&#160;will include <span class="italic">all</span> the columns of <m:math><m:mi>Z</m:mi></m:math>.)  The direction <m:math><m:msub><m:mi>p</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub></m:math>&#160;will satisfy <a class="eqn" href="#eqn2">(2)</a> if

<div class="formula-eqn"><a name="eqn4" id="eqn4"/><table class="formula-eqn"><tr><td class="formula-eqn"><m:math display="block">
<m:msub><m:mi>p</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub><m:mo>=</m:mo><m:msub><m:mi>Z</m:mi><m:mi>R</m:mi></m:msub><m:msub><m:mi>p</m:mi><m:mi>R</m:mi></m:msub><m:mtext>,</m:mtext>
</m:math></td><td class="formula-eqn2">
      (4)
     </td></tr></table></div>

where <m:math><m:msub><m:mi>p</m:mi><m:mi>R</m:mi></m:msub></m:math>&#160;is any <m:math><m:msub><m:mi>n</m:mi><m:mi>R</m:mi></m:msub></m:math>-vector.</div><div class="paramtext">Let <m:math><m:mi>Q</m:mi></m:math>&#160;denote the <m:math><m:mi>n</m:mi></m:math>&#160;by <m:math><m:mi>n</m:mi></m:math>&#160;matrix

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mi>Q</m:mi><m:mo>=</m:mo>
 <m:mfenced><m:mtable>
  <m:mtr>
   <m:mtd><m:msub><m:mi>Q</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub></m:mtd>
   <m:mtd/>
  </m:mtr><m:mtr>
   <m:mtd/>
   <m:mtd><m:msub><m:mi>I</m:mi><m:mi mathvariant="normal">FX</m:mi></m:msub></m:mtd>
  </m:mtr>
 </m:mtable></m:mfenced>
<m:mtext>,</m:mtext>
</m:math></td><td class="formula2"/></tr></table></div>

where <m:math><m:msub><m:mi>I</m:mi><m:mi mathvariant="normal">FX</m:mi></m:msub></m:math>&#160;is the identity matrix of order <m:math><m:msub><m:mi>n</m:mi><m:mi mathvariant="normal">FX</m:mi></m:msub></m:math>.  Let <m:math><m:msub><m:mi>H</m:mi><m:mi>Q</m:mi></m:msub></m:math>&#160;and <m:math><m:msub><m:mi>g</m:mi><m:mi>Q</m:mi></m:msub></m:math>&#160;denote the <m:math><m:mi>n</m:mi></m:math>&#160;by <m:math><m:mi>n</m:mi></m:math>&#160;<span class="italic">transformed Hessian</span> and <span class="italic">transformed gradient</span><div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:msub><m:mi>H</m:mi><m:mi>Q</m:mi></m:msub><m:mo>=</m:mo><m:msup><m:mi>Q</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>H</m:mi><m:mi>Q</m:mi><m:mtext>&#8195; and &#8195;</m:mtext><m:msub><m:mi>g</m:mi><m:mi>Q</m:mi></m:msub><m:mo>=</m:mo><m:msup><m:mi>Q</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mfenced separators=""><m:mi>c</m:mi><m:mo>+</m:mo><m:mi>H</m:mi><m:mi>x</m:mi></m:mfenced>
</m:math></td><td class="formula2"/></tr></table></div>

and let the matrix of first <m:math><m:msub><m:mi>n</m:mi><m:mi>R</m:mi></m:msub></m:math>&#160;rows and columns of <m:math><m:msub><m:mi>H</m:mi><m:mi>Q</m:mi></m:msub></m:math>&#160;be denoted by <m:math><m:msub><m:mi>H</m:mi><m:mi>R</m:mi></m:msub></m:math>&#160;and the vector of the first <m:math><m:msub><m:mi>n</m:mi><m:mi>R</m:mi></m:msub></m:math>&#160;elements of <m:math><m:msub><m:mi>g</m:mi><m:mi>Q</m:mi></m:msub></m:math>&#160;be denoted by <m:math><m:msub><m:mi>g</m:mi><m:mi>R</m:mi></m:msub></m:math>.  The quantities <m:math><m:msub><m:mi>H</m:mi><m:mi>R</m:mi></m:msub></m:math>&#160;and <m:math><m:msub><m:mi>g</m:mi><m:mi>R</m:mi></m:msub></m:math>&#160;are known as the <span class="italic">reduced Hessian</span> and <span class="italic">reduced gradient</span> of <m:math><m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>, respectively.  Roughly speaking, <m:math><m:msub><m:mi>g</m:mi><m:mi>R</m:mi></m:msub></m:math>&#160;and <m:math><m:msub><m:mi>H</m:mi><m:mi>R</m:mi></m:msub></m:math>&#160;describe the first and second derivatives of an <span class="italic">unconstrained</span> problem for the calculation of <m:math><m:msub><m:mi>p</m:mi><m:mi>R</m:mi></m:msub></m:math>.</div><div class="paramtext">At each iteration, a triangular factorization of <m:math><m:msub><m:mi>H</m:mi><m:mi>R</m:mi></m:msub></m:math>&#160;is available.  If <m:math><m:msub><m:mi>H</m:mi><m:mi>R</m:mi></m:msub></m:math>&#160;is positive-definite, <m:math><m:msub><m:mi>H</m:mi><m:mi>R</m:mi></m:msub><m:mo>=</m:mo><m:msup><m:mi>R</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>R</m:mi></m:math>, where <m:math><m:mi>R</m:mi></m:math>&#160;is the upper triangular Cholesky factor of <m:math><m:msub><m:mi>H</m:mi><m:mi>R</m:mi></m:msub></m:math>.  If <m:math><m:msub><m:mi>H</m:mi><m:mi>R</m:mi></m:msub></m:math>&#160;is not positive-definite, <m:math><m:msub><m:mi>H</m:mi><m:mi>R</m:mi></m:msub><m:mo>=</m:mo><m:msup><m:mi>R</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>D</m:mi><m:mi>R</m:mi></m:math>, where <m:math><m:mi>D</m:mi><m:mo>=</m:mo><m:mrow><m:mi>diag</m:mi><m:mfenced separators=""><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mi>&#956;</m:mi></m:mfenced></m:mrow></m:math>, with <m:math><m:mi>&#956;</m:mi><m:mo>&#8804;</m:mo><m:mn>0</m:mn></m:math>.</div><div class="paramtext">The computation is arranged so that the reduced-gradient vector is a multiple of <m:math><m:msub><m:mi>e</m:mi><m:mi>R</m:mi></m:msub></m:math>, a vector of all zeros except in the last (i.e., <m:math><m:msub><m:mi>n</m:mi><m:mi>R</m:mi></m:msub></m:math>th) position.  This allows the vector <m:math><m:msub><m:mi>p</m:mi><m:mi>R</m:mi></m:msub></m:math>&#160;in <a class="eqn" href="#eqn4">(4)</a> to be computed from a single back-substitution

<div class="formula-eqn"><a name="eqn5" id="eqn5"/><table class="formula-eqn"><tr><td class="formula-eqn"><m:math display="block">
<m:mi>R</m:mi><m:msub><m:mi>p</m:mi><m:mi>R</m:mi></m:msub><m:mo>=</m:mo><m:mi>&#947;</m:mi><m:msub><m:mi>e</m:mi><m:mi>R</m:mi></m:msub>
</m:math></td><td class="formula-eqn2">
      (5)
     </td></tr></table></div>

where <m:math><m:mi>&#947;</m:mi></m:math>&#160;is a scalar that depends on whether or not the reduced Hessian is positive-definite at <m:math><m:mi>x</m:mi></m:math>.  In the positive-definite case, <m:math><m:mi>x</m:mi><m:mo>+</m:mo><m:mi>p</m:mi></m:math>&#160;is the minimizer of the objective function subject to the constraints (bounds and general) in the working set treated as equalities.  If <m:math><m:msub><m:mi>H</m:mi><m:mi>R</m:mi></m:msub></m:math>&#160;is not positive-definite <m:math><m:msub><m:mi>p</m:mi><m:mi>R</m:mi></m:msub></m:math>&#160;satisfies the conditions

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:msubsup><m:mi>p</m:mi><m:mi>R</m:mi><m:mi mathvariant="normal">T</m:mi></m:msubsup>
 <m:msub><m:mi>H</m:mi><m:mi>R</m:mi></m:msub>
 <m:msub><m:mi>p</m:mi><m:mi>R</m:mi></m:msub>
 <m:mo>&lt;</m:mo>
 <m:mn>0</m:mn>
 <m:mtext>&#8195; and &#8195;</m:mtext>
 <m:msubsup><m:mi>g</m:mi><m:mi>R</m:mi><m:mi mathvariant="normal">T</m:mi></m:msubsup>
 <m:msub><m:mi>p</m:mi><m:mi>R</m:mi></m:msub>
 <m:mo>&#8804;</m:mo>
 <m:mn>0</m:mn>
 <m:mtext>,</m:mtext>
</m:math></td><td class="formula2"/></tr></table></div>

which allow the objective function to be reduced by any positive step of the form <m:math><m:mi>x</m:mi><m:mo>+</m:mo><m:mi>&#945;</m:mi><m:mi>p</m:mi></m:math>.</div><h3 class="standard"><a class="sec" name="ad-mainiteration" id="ad-mainiteration"/>10.3&#160;&#160;Main Iteration</h3>
<div class="paramtext">If the reduced gradient is zero, <m:math><m:mi>x</m:mi></m:math>&#160;is a constrained stationary point in the subspace defined by <m:math><m:mi>Z</m:mi></m:math>.  During the feasibility phase, the reduced gradient will usually be zero only at a vertex (although it may be zero at non-vertices in the presence of constraint dependencies).  During the optimality phase a zero reduced gradient implies that <m:math><m:mi>x</m:mi></m:math>&#160;minimizes the quadratic objective when the constraints in the working set are treated as equalities.  At a constrained stationary point, Lagrange multipliers <m:math><m:msub><m:mi>&#955;</m:mi><m:mi>C</m:mi></m:msub></m:math>&#160;and <m:math><m:msub><m:mi>&#955;</m:mi><m:mi>B</m:mi></m:msub></m:math>&#160;for the general and bound constraints are defined from the equations

<div class="formula-eqn"><a name="eqn6" id="eqn6"/><table class="formula-eqn"><tr><td class="formula-eqn"><m:math display="block">
<m:msubsup><m:mi>A</m:mi><m:mi mathvariant="normal">FR</m:mi><m:mi mathvariant="normal">T</m:mi></m:msubsup><m:msub><m:mi>&#955;</m:mi><m:mi>C</m:mi></m:msub><m:mo>=</m:mo><m:msub><m:mi>g</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub><m:mtext>&#8195; and &#8195;</m:mtext><m:msub><m:mi>&#955;</m:mi><m:mi>B</m:mi></m:msub><m:mo>=</m:mo><m:msub><m:mi>g</m:mi><m:mi mathvariant="normal">FX</m:mi></m:msub><m:mo>-</m:mo><m:msubsup><m:mi>A</m:mi><m:mi mathvariant="normal">FX</m:mi><m:mi mathvariant="normal">T</m:mi></m:msubsup><m:msub><m:mi>&#955;</m:mi><m:mi>C</m:mi></m:msub><m:mtext>.</m:mtext>
</m:math></td><td class="formula-eqn2">
      (6)
     </td></tr></table></div>

Given a positive constant <m:math><m:mi>&#948;</m:mi></m:math>&#160;of the order of the <span class="bitalic">machine precision</span>, a Lagrange multiplier <m:math><m:msub><m:mi>&#955;</m:mi><m:mi>j</m:mi></m:msub></m:math>&#160;corresponding to an inequality constraint in the working set is said to be <span class="italic">optimal</span> if <m:math><m:msub><m:mi>&#955;</m:mi><m:mi>j</m:mi></m:msub><m:mo>&#8804;</m:mo><m:mi>&#948;</m:mi></m:math>&#160;when the associated constraint is at its <span class="italic">upper bound</span>, or if <m:math><m:msub><m:mi>&#955;</m:mi><m:mi>j</m:mi></m:msub><m:mo>&#8805;</m:mo><m:mo>-</m:mo><m:mi>&#948;</m:mi></m:math>&#160;when the associated constraint is at its <span class="italic">lower bound</span>.  If a multiplier is nonoptimal, the objective function (either the true objective or the sum of infeasibilities) can be reduced by deleting the corresponding constraint (with index <span class="mono">Jdel</span>; see <a class="sec" href="#monitoring">Section 12</a>) from the working set.</div><div class="paramtext">If optimal multipliers occur during the feasibility phase and the sum of infeasibilities is nonzero, there is no feasible point, and you can force E04NFF/E04NFA to continue until the minimum value of the sum of infeasibilities has been found; see the discussion of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_min-infeasibilities"><m:mi mathcolor="#800080;" mathvariant="bold">Minimum Sum of Infeasibilities</m:mi></m:maction></m:math>.  At such a point, the Lagrange multiplier <m:math><m:msub><m:mi>&#955;</m:mi><m:mi>j</m:mi></m:msub></m:math>&#160;corresponding to an inequality constraint in the working set will be such that <m:math><m:mrow><m:mo>-</m:mo><m:mfenced separators=""><m:mn>1</m:mn><m:mo>+</m:mo><m:mi>&#948;</m:mi></m:mfenced></m:mrow><m:mo>&#8804;</m:mo><m:msub><m:mi>&#955;</m:mi><m:mi>j</m:mi></m:msub><m:mo>&#8804;</m:mo><m:mi>&#948;</m:mi></m:math>&#160;when the associated constraint is at its <span class="italic">upper bound</span>, and <m:math><m:mrow><m:mo>-</m:mo><m:mi>&#948;</m:mi></m:mrow><m:mo>&#8804;</m:mo><m:msub><m:mi>&#955;</m:mi><m:mi>j</m:mi></m:msub><m:mo>&#8804;</m:mo><m:mfenced separators=""><m:mn>1</m:mn><m:mo>+</m:mo><m:mi>&#948;</m:mi></m:mfenced></m:math>&#160;when the associated constraint is at its <span class="italic">lower bound</span>.  Lagrange multipliers for equality constraints will satisfy <m:math><m:mfenced open="|" close="|" separators=""><m:msub><m:mi>&#955;</m:mi><m:mi>j</m:mi></m:msub></m:mfenced><m:mo>&#8804;</m:mo><m:mn>1</m:mn><m:mo>+</m:mo><m:mi>&#948;</m:mi></m:math>.</div><div class="paramtext">If the reduced gradient is not zero, Lagrange multipliers need not be computed and the nonzero elements of the search direction <m:math><m:mi>p</m:mi></m:math>&#160;are given by <m:math><m:msub><m:mi>Z</m:mi><m:mi>R</m:mi></m:msub><m:msub><m:mi>p</m:mi><m:mi>R</m:mi></m:msub></m:math>&#160;(see <a class="eqn" href="#eqn4">(4)</a> and <a class="eqn" href="#eqn5">(5)</a>).  The choice of step length is influenced by the need to maintain feasibility with respect to the satisfied constraints.  If <m:math><m:msub><m:mi>H</m:mi><m:mi>R</m:mi></m:msub></m:math>&#160;is positive-definite and <m:math><m:mi>x</m:mi><m:mo>+</m:mo><m:mi>p</m:mi></m:math>&#160;is feasible, <m:math><m:mi>&#945;</m:mi></m:math>&#160;will be taken as unity.  In this case, the reduced gradient at <m:math><m:mover><m:mi>x</m:mi><m:mo>-</m:mo></m:mover></m:math>&#160;will be zero, and Lagrange multipliers are computed.  Otherwise, <m:math><m:mi>&#945;</m:mi></m:math>&#160;is set to <m:math><m:msub><m:mi>&#945;</m:mi><m:mi mathvariant="normal">M</m:mi></m:msub></m:math>, the step to the &#8216;nearest&#8217; constraint (with index <span class="mono">Jadd</span>; see <a class="sec" href="#monitoring">Section 12</a>), which is added to the working set at the next iteration.</div><div class="paramtext">Each change in the working set leads to a simple change to <m:math><m:msub><m:mi>A</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub></m:math>: if the status of a general constraint changes, a <span class="italic">row</span> of <m:math><m:msub><m:mi>A</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub></m:math>&#160;is altered; if a bound constraint enters or leaves the working set, a <span class="italic">column</span> of <m:math><m:msub><m:mi>A</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub></m:math>&#160;changes.  Explicit representations are recurred of the matrices <m:math><m:mi>T</m:mi></m:math>, <m:math><m:msub><m:mi>Q</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub></m:math>&#160;and <m:math><m:mi>R</m:mi></m:math>; and of vectors <m:math><m:msup><m:mi>Q</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>g</m:mi></m:math>, and <m:math><m:msup><m:mi>Q</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>c</m:mi></m:math>.  The triangular factor <m:math><m:mi>R</m:mi></m:math>&#160;associated with the reduced Hessian is only updated during the optimality phase.</div><div class="paramtext">One of the most important features of E04NFF/E04NFA is its control of the conditioning of the working set, whose nearness to linear dependence is estimated by the ratio of the largest to smallest diagonal elements of the <m:math><m:mi>T</m:mi><m:mi>Q</m:mi></m:math>&#160;factor <m:math><m:mi>T</m:mi></m:math>&#160;(the printed value <span class="mono">Cond T</span>; see <a class="sec" href="#monitoring">Section 12</a>).  In constructing the initial working set, constraints are excluded that would result in a large value of <span class="mono">Cond T</span>.</div><div class="paramtext">E04NFF/E04NFA includes a rigorous procedure that prevents the possibility of cycling at a point where the active constraints are nearly linearly dependent (see <a class="ref" href="#ref490">Gill <span class="italic">et al.</span> (1989)</a>).  The main feature of the anti-cycling procedure is that the feasibility tolerance is increased slightly at the start of every iteration.  This not only allows a positive step to be taken at every iteration, but also provides, whenever possible, a <span class="italic">choice</span> of constraints to be added to the working set.  Let <m:math><m:msub><m:mi>&#945;</m:mi><m:mi mathvariant="normal">M</m:mi></m:msub></m:math>&#160;denote the maximum step at which <m:math><m:mi>x</m:mi><m:mo>+</m:mo><m:msub><m:mi>&#945;</m:mi><m:mi mathvariant="normal">M</m:mi></m:msub><m:mi>p</m:mi></m:math>&#160;does not violate any constraint by more than its feasibility tolerance.  All constraints at a distance <m:math><m:mi>&#945;</m:mi></m:math>&#160;(<m:math><m:mi>&#945;</m:mi><m:mo>&#8804;</m:mo><m:msub><m:mi>&#945;</m:mi><m:mi mathvariant="normal">M</m:mi></m:msub></m:math>) along <m:math><m:mi>p</m:mi></m:math>&#160;from the current point are then viewed as acceptable candidates for inclusion in the working set.  The constraint whose normal makes the largest angle with the search direction is added to the working set.</div><h3 class="standard"><a class="sec" name="ad-choosing" id="ad-choosing"/>10.4&#160;&#160;Choosing the Initial Working Set</h3>
<div class="paramtext">At the start of the optimality phase, a positive-definite <m:math><m:msub><m:mi>H</m:mi><m:mi>R</m:mi></m:msub></m:math>&#160;can be defined if enough constraints are included in the initial working set.  (The matrix with no rows and columns is positive-definite by definition, corresponding to the case when <m:math><m:msub><m:mi>A</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub></m:math>&#160;contains <m:math><m:msub><m:mi>n</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub></m:math>&#160;constraints.)  The idea is to include as many general constraints as necessary to ensure that the reduced Hessian is positive-definite.</div><div class="paramtext">Let <m:math><m:msub><m:mi>H</m:mi><m:mi>Z</m:mi></m:msub></m:math>&#160;denote the matrix of the first <m:math><m:msub><m:mi>n</m:mi><m:mi>Z</m:mi></m:msub></m:math>&#160;rows and columns of the matrix <m:math><m:msub><m:mi>H</m:mi><m:mi>Q</m:mi></m:msub><m:mo>=</m:mo><m:msup><m:mi>Q</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>H</m:mi><m:mi>Q</m:mi></m:math>&#160;at the beginning of the optimality phase.  A partial Cholesky factorization is used to find an upper triangular matrix <m:math><m:mi>R</m:mi></m:math>&#160;that is the factor of the largest positive-definite leading sub-matrix of <m:math><m:msub><m:mi>H</m:mi><m:mi>Z</m:mi></m:msub></m:math>.  The use of interchanges during the factorization of <m:math><m:msub><m:mi>H</m:mi><m:mi>Z</m:mi></m:msub></m:math>&#160;tends to maximize the dimension of <m:math><m:mi>R</m:mi></m:math>.  (The condition of <m:math><m:mi>R</m:mi></m:math>&#160;may be controlled using the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_ranktolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Rank Tolerance</m:mi></m:maction></m:math>.)  Let <m:math><m:msub><m:mi>Z</m:mi><m:mi>R</m:mi></m:msub></m:math>&#160;denote the columns of <m:math><m:mi>Z</m:mi></m:math>&#160;corresponding to <m:math><m:mi>R</m:mi></m:math>, and let <m:math><m:mi>Z</m:mi></m:math>&#160;be partitioned as <m:math>
 <m:mi>Z</m:mi><m:mo>=</m:mo>
 <m:mfenced><m:mtable>
  <m:mtr>
   <m:mtd><m:msub><m:mi>Z</m:mi><m:mi>R</m:mi></m:msub></m:mtd>
   <m:mtd><m:msub><m:mi>Z</m:mi><m:mi>A</m:mi></m:msub></m:mtd>
  </m:mtr>
 </m:mtable></m:mfenced>
</m:math>.  A working set for which <m:math><m:msub><m:mi>Z</m:mi><m:mi>R</m:mi></m:msub></m:math>&#160;defines the null space can be obtained by including <span class="italic">the rows of</span> <m:math>
 <m:msubsup><m:mi>Z</m:mi><m:mi>A</m:mi><m:mi mathvariant="normal">T</m:mi></m:msubsup>
</m:math>&#160;as &#8216;artificial constraints&#8217;.  Minimization of the objective function then proceeds within the subspace defined by <m:math><m:msub><m:mi>Z</m:mi><m:mi>R</m:mi></m:msub></m:math>, as described in <a class="sec" href="#ad-search">Section 10.2</a>.</div><div class="paramtext">The artificially augmented working set is given by

<div class="formula-eqn"><a name="eqn7" id="eqn7"/><table class="formula-eqn"><tr><td class="formula-eqn"><m:math display="block">
<m:msub><m:mover><m:mi>A</m:mi><m:mo>-</m:mo></m:mover><m:mi mathvariant="normal">FR</m:mi></m:msub><m:mo>=</m:mo>
 <m:mfenced><m:mtable>
  <m:mtr>
   <m:mtd><m:msubsup><m:mi>Z</m:mi><m:mi>A</m:mi><m:mi mathvariant="normal">T</m:mi></m:msubsup></m:mtd>
  </m:mtr><m:mtr>
   <m:mtd><m:msub><m:mi>A</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub></m:mtd>
  </m:mtr>
 </m:mtable></m:mfenced>
<m:mtext>,</m:mtext>
</m:math></td><td class="formula-eqn2">
      (7)
     </td></tr></table></div>

so that <m:math><m:msub><m:mi>p</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub></m:math>&#160;will satisfy <m:math><m:msub><m:mi>A</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub><m:msub><m:mi>p</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub><m:mo>=</m:mo><m:mn>0</m:mn></m:math>&#160;<span class="italic">and</span> <m:math>
 <m:msubsup><m:mi>Z</m:mi><m:mi>A</m:mi><m:mi mathvariant="normal">T</m:mi></m:msubsup>
 <m:msub><m:mi>p</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub>
 <m:mo>=</m:mo>
 <m:mn>0</m:mn>
</m:math>.  By definition of the <m:math><m:mi>T</m:mi><m:mi>Q</m:mi></m:math>&#160;factorization,
<m:math><m:msub><m:mover><m:mi>A</m:mi><m:mo>-</m:mo></m:mover><m:mi mathvariant="normal">FR</m:mi></m:msub></m:math>&#160;<span class="italic">automatically</span> satisfies the following:

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:msub><m:mover><m:mi>A</m:mi><m:mo>-</m:mo></m:mover><m:mi mathvariant="normal">FR</m:mi></m:msub><m:msub><m:mi>Q</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub><m:mo>=</m:mo>
 <m:mfenced><m:mtable>
  <m:mtr>
   <m:mtd><m:msubsup><m:mi>Z</m:mi><m:mi>A</m:mi><m:mi mathvariant="normal">T</m:mi></m:msubsup></m:mtd>
  </m:mtr><m:mtr>
   <m:mtd><m:msub><m:mi>A</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub></m:mtd>
  </m:mtr>
 </m:mtable></m:mfenced>
<m:msub><m:mi>Q</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub><m:mo>=</m:mo>
 <m:mfenced><m:mtable>
  <m:mtr>
   <m:mtd><m:msubsup><m:mi>Z</m:mi><m:mi>A</m:mi><m:mi mathvariant="normal">T</m:mi></m:msubsup></m:mtd>
  </m:mtr><m:mtr>
   <m:mtd><m:msub><m:mi>A</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub></m:mtd>
  </m:mtr>
 </m:mtable></m:mfenced>
 <m:mfenced><m:mtable> 
  <m:mtr>
   <m:mtd><m:msub><m:mi>Z</m:mi><m:mi>R</m:mi></m:msub></m:mtd>
   <m:mtd><m:msub><m:mi>Z</m:mi><m:mi>A</m:mi></m:msub></m:mtd>
   <m:mtd><m:mi>Y</m:mi></m:mtd>
  </m:mtr>
 </m:mtable></m:mfenced>
 <m:mo>=</m:mo>
 <m:mfenced><m:mtable>
  <m:mtr>
   <m:mtd><m:mn>0</m:mn></m:mtd>
   <m:mtd><m:mover><m:mi>T</m:mi><m:mo>-</m:mo></m:mover></m:mtd>
  </m:mtr>
 </m:mtable></m:mfenced>
<m:mtext>,</m:mtext>
</m:math></td><td class="formula2"/></tr></table></div>

where

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mover><m:mi>T</m:mi><m:mo>-</m:mo></m:mover><m:mo>=</m:mo>
 <m:mfenced><m:mtable>
  <m:mtr>
   <m:mtd><m:mi>I</m:mi></m:mtd>
   <m:mtd><m:mn>0</m:mn></m:mtd>
  </m:mtr><m:mtr>
   <m:mtd><m:mn>0</m:mn></m:mtd>
   <m:mtd><m:mi>T</m:mi></m:mtd>
  </m:mtr>
 </m:mtable></m:mfenced>
<m:mtext>,</m:mtext>
</m:math></td><td class="formula2"/></tr></table></div>

and hence the <m:math><m:mi>T</m:mi><m:mi>Q</m:mi></m:math>&#160;factorization of <a class="eqn" href="#eqn7">(7)</a> is available trivially from <m:math><m:mi>T</m:mi></m:math>&#160;and <m:math><m:msub><m:mi>Q</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub></m:math>&#160;without additional expense.</div><div class="paramtext">The matrix <m:math><m:msub><m:mi>Z</m:mi><m:mi>A</m:mi></m:msub></m:math>&#160;is not kept fixed, since its role is purely to define an appropriate null space; the <m:math><m:mi>T</m:mi><m:mi>Q</m:mi></m:math>&#160;factorization can therefore be updated in the normal fashion as the iterations proceed.  No work is required to &#8216;delete&#8217; the artificial constraints associated with <m:math>
 <m:msub><m:mi>Z</m:mi><m:mi>A</m:mi></m:msub>
</m:math>&#160;when <m:math>
 <m:msubsup><m:mi>Z</m:mi><m:mi>R</m:mi><m:mi mathvariant="normal">T</m:mi></m:msubsup>
 <m:msub><m:mi>g</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub>
 <m:mo>=</m:mo>
 <m:mn>0</m:mn>
</m:math>, since this simply involves repartitioning <m:math><m:msub><m:mi>Q</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub></m:math>.  The &#8216;artificial&#8217; multiplier vector associated with the rows of <m:math>
 <m:msubsup><m:mi>Z</m:mi><m:mi>A</m:mi><m:mi mathvariant="normal">T</m:mi></m:msubsup>
</m:math>&#160;is equal to <m:math>
 <m:msubsup><m:mi>Z</m:mi><m:mi>A</m:mi><m:mi mathvariant="normal">T</m:mi></m:msubsup>
 <m:msub><m:mi>g</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub>
</m:math>, and the multipliers corresponding to the rows of the &#8216;true&#8217; working set are the multipliers that would be obtained if the artificial constraints were not present.  If an artificial constraint is &#8216;deleted&#8217; from the working set, an <span class="mono">A</span> appears alongside the entry in the <span class="mono">Jdel</span> column of the monitoring file output (see <a class="sec" href="#monitoring">Section 12</a>).</div><div class="paramtext">The number of columns in <m:math><m:msub><m:mi>Z</m:mi><m:mi>A</m:mi></m:msub></m:math>&#160;and <m:math><m:msub><m:mi>Z</m:mi><m:mi>R</m:mi></m:msub></m:math>, the Euclidean norm of <m:math>
 <m:msubsup><m:mi>Z</m:mi><m:mi>R</m:mi><m:mi mathvariant="normal">T</m:mi></m:msubsup>
 <m:msub><m:mi>g</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub>
</m:math>, and the condition estimator of <m:math><m:mi>R</m:mi></m:math>&#160;appear in the monitoring file output as <span class="mono">Art</span>, <span class="mono">Zr</span>, <span class="mono">Norm Gz</span> and <span class="mono">Cond Rz</span> respectively (see <a class="sec" href="#monitoring">Section 12</a>).</div><div class="paramtext">Under some circumstances, a different type of artificial constraint isused when solving a linear program.  Although the algorithm of E04NFF/E04NFA does not usually perform simplex steps (in the traditional sense), there is one exception: a linear program with fewer general constraints than variables (i.e., <m:math><m:msub><m:mi>m</m:mi><m:mi>L</m:mi></m:msub><m:mo>&#8804;</m:mo><m:mi>n</m:mi></m:math>).  Use of the simplex method in this situation leads to savings in storage.  At the starting point, the &#8216;natural&#8217; working set (the set of constraints exactly or nearly satisfied at the starting point) is augmented with a suitable number of &#8216;temporary&#8217; bounds, each of which has the effect of temporarily fixing a variable at its current value.  In subsequent iterations, a temporary bound is treated as a standard constraint until it is deleted from the working set, in which case it is never added again.  If a temporary bound is &#8216;deleted&#8217; from the working set, an <span class="mono">F</span> (for &#8216;Fixed&#8217;) appears alongside the entry in the <span class="mono">Jdel</span> column of the monitoring file output (see <a class="sec" href="#monitoring">Section 12</a>).</div><h2 class="standard"><a class="sec" name="optparams" id="optparams"/>11&#160;&#160;Optional Parameters</h2>
<div class="paramtext">Several optional parameters in E04NFF/E04NFA define choices in the problem specification or the algorithm logic.  In order to reduce the number of formal parameters of E04NFF/E04NFA these optional parameters have associated <span class="italic">default values</span> that are appropriate for most problems.  Therefore, you need only specify those optional parameters whose values are to be different from their default values.</div><div class="paramtext">The remainder of this section can be skipped if you wish to use the default values for <span class="italic">all</span> optional parameters.  A complete list of optional parameters and their default values is given in <a class="sec" href="#op-checklist">Section 11.1</a>.</div><div class="paramtext">Optional parameters may be specified by calling one, or both, of the routines <a class="rout" href="../E04/e04ngf.xml">E04NGF/E04NGA</a> and <a class="rout" href="../E04/e04nhf.xml">E04NHF/E04NHA</a> before a call to E04NFF/E04NFA.</div><div class="paramtext"><a class="rout" href="../E04/e04ngf.xml">E04NGF/E04NGA</a> reads options from an external options file, with <span class="mono">Begin</span> and <span class="mono">End</span> as the first and last lines respectively and each intermediate line defining a single optional parameter.  For example,
<pre class="verbatim">
Begin 
  Print Level = 5 
End 
</pre>
</div><div class="paramtext">The call
<pre class="verbatim">
 CALL E04NGF (IOPTNS, INFORM)
</pre>
can then be used to read the file on unit <a class="arg" href="../E04/e04ngf.xml#IOPTNS">IOPTNS</a>. <a class="arg" href="../E04/e04ngf.xml#INFORM">INFORM</a> will be zero on successful exit.  <a class="rout" href="../E04/e04ngf.xml">E04NGF/E04NGA</a> should be consulted for a full description of this method of supplying optional parameters.</div><div class="paramtext"><a class="rout" href="../E04/e04nhf.xml">E04NHF/E04NHA</a> can be called to supply options directly, one call being necessary for each optional parameter.  For example,
<pre class="verbatim">
 CALL E04NHF ('Print Level = 5')
</pre><a class="rout" href="../E04/e04nhf.xml">E04NHF/E04NHA</a> should be consulted for a full description of this method of supplying optional parameters.</div><div class="paramtext">All optional parameters not specified by you are set to their default values.  Optional parameters specified by you are unaltered by E04NFF/E04NFA (unless they define invalid values) and so remain in effect for subsequent calls unless altered by you.</div><h3 class="standard"><a class="sec" name="op-checklist" id="op-checklist"/>11.1&#160;&#160;Optional Parameter Checklist and Default Values</h3>
<div class="paramtext">
The following list gives the valid options.  For each option, we give the keyword, any essential optional qualifiers and the default value.  A description for each option can be found in <a class="sec" href="#op-description">Section 11.2</a>, where the minimum abbreviation of each keyword is underlined (if no characters of an optional qualifier are underlined, the qualifier may be omitted), the letter <span class="italic">a</span> denotes a phrase (character string) that qualifies an option, the letters <m:math><m:mi>i</m:mi></m:math>&#160;and <m:math><m:mi>r</m:mi></m:math>&#160;denote INTEGER and <span class="bitalic">double precision</span> values required with certain options, and the number <m:math><m:mi>&#949;</m:mi></m:math>&#160;is a generic notation for <span class="bitalic">machine precision</span> (see <a class="rout" href="../X02/x02ajf.xml">X02AJF</a>).</div><div class="left-tablediv"><table class="optparam"><tbody>
<tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><b>Optional Parameter</b></td><td class="libdoc" valign="top" align="left"><b>Default&#160;Value</b></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04nff.xml#optparam_checkfrequency">Check Frequency</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mn>50</m:mn></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04nff.xml#optparam_coldstart">Cold Start</a></td>
<td class="libdoc" valign="top" align="left">Default</td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04nff.xml#optparam_crashtolerance">Crash Tolerance</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mn>0.01</m:mn></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04nff.xml#optparam_defaults">Defaults</a></td>
<td class="libdoc" valign="top" align="left">&#160;</td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04nff.xml#optparam_expandfrequency">Expand Frequency</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mn>5</m:mn></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04nff.xml#optparam_feasibility-pi-limit">Feasibility Phase Iteration Limit</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mn>50</m:mn><m:mo>,</m:mo><m:mrow><m:mn>5</m:mn><m:mfenced separators=""><m:mi>n</m:mi><m:mo>+</m:mo><m:msub><m:mi>m</m:mi><m:mi>L</m:mi></m:msub></m:mfenced></m:mrow></m:mfenced></m:mrow></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04nff.xml#optparam_feasibilitytolerance">Feasibility Tolerance</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mtext/><m:mo>=</m:mo><m:msqrt><m:mi>&#949;</m:mi></m:msqrt></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04nff.xml#optparam_hessianrows">Hessian Rows</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mi>n</m:mi></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04nff.xml#optparam_infiniteboundsize">Infinite Bound Size</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mtext/><m:mo>=</m:mo><m:msup><m:mn>10</m:mn><m:mn>20</m:mn></m:msup></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04nff.xml#optparam_infinitestepsize">Infinite Step Size</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mi mathvariant="italic">bigbnd</m:mi><m:mo>,</m:mo><m:msup><m:mn>10</m:mn><m:mn>20</m:mn></m:msup></m:mfenced></m:mrow></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04nff.xml#optparam_iterationlimit">Iteration Limit</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mn>50</m:mn><m:mo>,</m:mo><m:mrow><m:mn>5</m:mn><m:mfenced separators=""><m:mi>n</m:mi><m:mo>+</m:mo><m:msub><m:mi>m</m:mi><m:mi>L</m:mi></m:msub></m:mfenced></m:mrow></m:mfenced></m:mrow></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04nff.xml#optparam_iters">Iters</a></td>
<td class="libdoc" valign="top" align="left"/>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04nff.xml#optparam_itns">Itns</a></td>
<td class="libdoc" valign="top" align="left"/>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04nff.xml#optparam_list">List</a></td>
<td class="libdoc" valign="top" align="left">Default for <m:math><m:mi mathvariant="normal">E04NFF</m:mi><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_list"><m:mi mathcolor="#800080;" mathvariant="bold">List</m:mi></m:maction></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04nff.xml#optparam_max-degreesoffreedom">Maximum Degrees of Freedom</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mi>n</m:mi></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04nff.xml#optparam_min-infeasibilities">Minimum Sum of Infeasibilities</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mo>=</m:mo><m:mi mathvariant="normal">No</m:mi></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04nff.xml#optparam_monitoringfile">Monitoring File</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04nff.xml#optparam_nolist">Nolist</a></td>
<td class="libdoc" valign="top" align="left">Default for <m:math><m:mi mathvariant="normal">E04NFA</m:mi><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_nolist"><m:mi mathcolor="#800080;" mathvariant="bold">Nolist</m:mi></m:maction></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04nff.xml#optparam_optimality-pi-limit">Optimality Phase Iteration Limit</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mn>50</m:mn><m:mo>,</m:mo><m:mrow><m:mn>5</m:mn><m:mfenced separators=""><m:mi>n</m:mi><m:mo>+</m:mo><m:msub><m:mi>m</m:mi><m:mi>L</m:mi></m:msub></m:mfenced></m:mrow></m:mfenced></m:mrow></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04nff.xml#optparam_optimalitytolerance">Optimality Tolerance</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mtext/><m:mo>=</m:mo><m:msup><m:mi>&#949;</m:mi><m:mn>0.5</m:mn></m:msup></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04nff.xml#optparam_printlevel">Print Level</a></td>
<td class="libdoc" valign="top" align="left">Default for E04NFF
<m:math><m:mtext/><m:mo>=</m:mo><m:mn>10</m:mn></m:math><br/>
Default for E04NFA
<m:math><m:mtext/><m:mo>=</m:mo><m:mn>0</m:mn></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04nff.xml#optparam_problemtype">Problem Type</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mo>=</m:mo></m:math>&#160;QP2

</td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04nff.xml#optparam_ranktolerance">Rank Tolerance</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mn>100</m:mn><m:mi>&#949;</m:mi></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04nff.xml#optparam_warmstart">Warm Start</a></td>
<td class="libdoc" valign="top" align="left"/>
</tr>
</tbody>
</table></div><h3 class="standard"><a class="sec" name="op-description" id="op-description"/>11.2&#160;&#160;Description of the Optional Parameters</h3><table class="optparam"><tr><td class="optparam-left"><a name="optparam_checkfrequency" id="checkfrequency"/><b><span class="u">Ch</span>eck Frequency</b></td><td class="optparam-center"><i>r</i></td><td class="optparam-right">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mn>50</m:mn></m:math></td></tr></table><div class="paramtext">Every <m:math><m:mi>i</m:mi></m:math>th iteration, a numerical test is made to see if the current solution <m:math><m:mi>x</m:mi></m:math>&#160;satisfies the constraints in the working set.  If the largest residual of the constraints in the working set is judged to be too large, the current working set is refactorized and the variables are recomputed to satisfy the constraints more accurately.  If <m:math><m:mi>i</m:mi><m:mo>&#8804;</m:mo><m:mn>0</m:mn></m:math>, the default value is used.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_coldstart" id="coldstart"/><b><span class="u">Co</span>ld Start</b></td><td class="optparam-center"/><td class="optparam-right">Default</td></tr></table>
<table class="multi-optparam"><tr><td class="optparam-left"><a name="optparam_warmstart" id="warmstart"/><b><span class="u">W</span>arm Start</b></td><td class="optparam-center"/><td class="optparam-right"/></tr></table><div class="paramtext">This option specifies how the initial working set is chosen.  With a <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_coldstart"><m:mi mathcolor="#800080;" mathvariant="bold">Cold Start</m:mi></m:maction></m:math>, E04NFF/E04NFA chooses the initial working set based on the values of the variables and constraints at the initial point.  Broadly speaking, the initial working set will include equality constraints and bounds or inequality constraints that violate or &#8216;nearly&#8217; satisfy their bounds (to within <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_crashtolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Crash Tolerance</m:mi></m:maction></m:math>).</div>
<div class="paramtext">With a <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_warmstart"><m:mi mathcolor="#800080;" mathvariant="bold">Warm Start</m:mi></m:maction></m:math>, you must provide a valid definition of every element of the array <a class="arg" href="#ISTATE">ISTATE</a>.  E04NFF/E04NFA will override your specification of <a class="arg" href="#ISTATE">ISTATE</a> if necessary, so that a poor choice of the working set will not cause a fatal error.  For instance, any elements of <a class="arg" href="#ISTATE">ISTATE</a> which are set to <m:math><m:mrow><m:mo>-</m:mo><m:mn>2</m:mn></m:mrow></m:math>, <m:math><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow><m:mtext>&#8203; or &#8203;</m:mtext><m:mn>4</m:mn></m:math>&#160;will be reset to zero, as will any elements which are set to <m:math><m:mn>3</m:mn></m:math>&#160;when the corresponding elements of <a class="arg" href="#BL">BL</a> and <a class="arg" href="#BU">BU</a> are not equal.  A warm start will be advantageous if a good estimate of the initial working set is available &#8211; for example, when E04NFF/E04NFA is called repeatedly to solve related problems.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_crashtolerance" id="crashtolerance"/><b><span class="u">Cr</span>ash Tolerance</b></td><td class="optparam-center"><i>r</i></td><td class="optparam-right">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mn>0.01</m:mn></m:math></td></tr></table><div class="paramtext">This value is used in conjunction with the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_coldstart"><m:mi mathcolor="#800080;" mathvariant="bold">Cold Start</m:mi></m:maction></m:math>&#160;(the default value) when E04NFF/E04NFA selects an initial working set.  If <m:math><m:mn>0</m:mn><m:mo>&#8804;</m:mo><m:mi>r</m:mi><m:mo>&#8804;</m:mo><m:mn>1</m:mn></m:math>, the initial working set will include (if possible) bounds or general inequality constraints that lie within <m:math><m:mi>r</m:mi></m:math>&#160;of their bounds.  In particular, a constraint of the form <m:math>
 <m:msubsup><m:mi>a</m:mi><m:mi>j</m:mi><m:mi mathvariant="normal">T</m:mi></m:msubsup>
 <m:mi>x</m:mi><m:mo>&#8805;</m:mo><m:mi>l</m:mi>
</m:math>&#160;will be included in the initial working set if <m:math>
 <m:mfenced open="|" close="|" separators="">
  <m:msubsup><m:mi>a</m:mi><m:mi>j</m:mi><m:mi mathvariant="normal">T</m:mi></m:msubsup>
  <m:mi>x</m:mi><m:mo>-</m:mo><m:mi>l</m:mi>
 </m:mfenced>
 <m:mo>&#8804;</m:mo>
 <m:mi>r</m:mi>
 <m:mfenced separators=""><m:mn>1</m:mn><m:mo>+</m:mo><m:mfenced open="|" close="|" separators=""><m:mi>l</m:mi></m:mfenced></m:mfenced>
</m:math>.  If <m:math><m:mi>r</m:mi><m:mo>&lt;</m:mo><m:mn>0</m:mn></m:math>&#160;or <m:math><m:mi>r</m:mi><m:mo>&gt;</m:mo><m:mn>1</m:mn></m:math>, the default value is used.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_defaults" id="defaults"/><b><span class="u">Defaults</span></b></td><td class="optparam-center"/><td class="optparam-right"/></tr></table><div class="paramtext">This special keyword may be used to reset all optional parameters to their default values.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_expandfrequency" id="expandfrequency"/><b><span class="u">Ex</span>pand Frequency</b></td><td class="optparam-center"><i>i</i></td><td class="optparam-right">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mn>5</m:mn></m:math></td></tr></table><div class="paramtext">This option is part of an anti-cycling procedure designed to guarantee progress even on highly degenerate problems.</div>
<div class="paramtext">The strategy is to force a positive step at every iteration, at the expense of violating the constraints by a small amount.  Suppose that the value of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_feasibilitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Feasibility Tolerance</m:mi></m:maction></m:math>&#160;is <m:math><m:mi>&#948;</m:mi></m:math>.  Over a period of <m:math><m:mi>i</m:mi></m:math>&#160;iterations, the feasibility tolerance actually used by E04NFF/E04NFA (i.e., the <span class="italic">working</span> feasibility tolerance) increases from <m:math><m:mn>0.5</m:mn><m:mi>&#948;</m:mi></m:math>&#160;to <m:math><m:mi>&#948;</m:mi></m:math>&#160;(in steps of <m:math><m:mn>0.5</m:mn><m:mi>&#948;</m:mi><m:mo>/</m:mo><m:mi>i</m:mi></m:math>).</div>
<div class="paramtext">At certain stages the following &#8216;resetting procedure&#8217; is used to remove constraint infeasibilities.  First, all variables whose upper or lower bounds are in the working set are moved exactly onto their bounds.  A count is kept of the number of nontrivial adjustments made.  If the count is positive, iterative refinement is used to give variables that satisfy the working set to (essentially) <span class="bitalic">machine precision</span>.  Finally, the working feasibility tolerance is reinitialized to <m:math><m:mn>0.5</m:mn><m:mi>&#948;</m:mi></m:math>.</div>
<div class="paramtext">If a problem requires more than <m:math><m:mi>i</m:mi></m:math>&#160;iterations, the resetting procedure is invoked and a new cycle of <m:math><m:mi>i</m:mi></m:math>&#160;iterations is started with <m:math><m:mi>i</m:mi></m:math>&#160;incremented by <m:math><m:mn>10</m:mn></m:math>.  (The decision to resume the feasibility phase or optimality phase is based on comparing any constraint infeasibilities with <m:math><m:mi>&#948;</m:mi></m:math>.)</div>
<div class="paramtext">The resetting procedure is also invoked when E04NFF/E04NFA reaches an apparently optimal, infeasible or unbounded solution, unless this situation has already occurred twice.  If any nontrivial adjustments are made, iterations are continued.</div>
<div class="paramtext">If <m:math><m:mi>i</m:mi><m:mo>&#8804;</m:mo><m:mn>0</m:mn></m:math>, the default value is used.  If <m:math><m:mi>i</m:mi><m:mo>&#8805;</m:mo><m:mn>9999999</m:mn></m:math>, no anti-cycling procedure is invoked.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_feasibility-pi-limit" id="feasibility-pi-limit"/><b><span class="u">F</span>easibility <span class="u">P</span>hase Iteration Limit</b></td><td class="optparam-center"><i>i</i><sub>1</sub></td><td class="optparam-right">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mn>50</m:mn><m:mo>,</m:mo><m:mrow><m:mn>5</m:mn><m:mfenced separators=""><m:mi>n</m:mi><m:mo>+</m:mo><m:msub><m:mi>m</m:mi><m:mi>L</m:mi></m:msub></m:mfenced></m:mrow></m:mfenced></m:mrow></m:math></td></tr></table>
<table class="multi-optparam"><tr><td class="optparam-left"><a name="optparam_optimality-pi-limit" id="optimality-pi-limit"/><b><span class="u">O</span>ptimality <span class="u">P</span>hase Iteration Limit</b></td><td class="optparam-center"><i>i</i><sub>2</sub></td><td class="optparam-right">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mn>50</m:mn><m:mo>,</m:mo><m:mrow><m:mn>5</m:mn><m:mfenced separators=""><m:mi>n</m:mi><m:mo>+</m:mo><m:msub><m:mi>m</m:mi><m:mi>L</m:mi></m:msub></m:mfenced></m:mrow></m:mfenced></m:mrow></m:math></td></tr></table><div class="paramtext">For problems of type FP, the scalar <m:math><m:msub><m:mi>i</m:mi><m:mn>1</m:mn></m:msub></m:math>&#160;specifies the maximum number of iterations allowed before temination.  Setting <m:math><m:msub><m:mi>i</m:mi><m:mn>1</m:mn></m:msub><m:mo>=</m:mo><m:mn>0</m:mn></m:math>&#160;and <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_printlevel"><m:mi mathcolor="#800080;" mathvariant="bold">Print Level</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>&#160;means that the workspace needed will be computed and printed, but no iterations will be performed.</div>
<div class="paramtext">For problems of type LP, the maximum number of iterations allowed before temination is taken as <m:math><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:msub><m:mi>i</m:mi><m:mn>1</m:mn></m:msub><m:mo>,</m:mo><m:msub><m:mi>i</m:mi><m:mn>2</m:mn></m:msub></m:mfenced></m:mrow></m:math>.  Setting <m:math><m:msub><m:mi>i</m:mi><m:mn>1</m:mn></m:msub><m:mo>=</m:mo><m:mn>0</m:mn></m:math>, <m:math><m:msub><m:mi>i</m:mi><m:mn>2</m:mn></m:msub><m:mo>=</m:mo><m:mn>0</m:mn></m:math>&#160;and <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_printlevel"><m:mi mathcolor="#800080;" mathvariant="bold">Print Level</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>&#160;means that the workspace needed will be computed and printed, but no iterations will be performed.</div>
<div class="paramtext">For problems of type QP, the scalars <m:math><m:msub><m:mi>i</m:mi><m:mn>1</m:mn></m:msub></m:math>&#160;and <m:math><m:msub><m:mi>i</m:mi><m:mn>2</m:mn></m:msub></m:math>&#160;specify the maximum number of iterations allowed in the feasibility and optimality phases.  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_optimality-pi-limit"><m:mi mathcolor="#800080;" mathvariant="bold">Optimality Phase Iteration Limit</m:mi></m:maction></m:math>&#160;is equivalent to <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_iterationlimit"><m:mi mathcolor="#800080;" mathvariant="bold">Iteration Limit</m:mi></m:maction></m:math>.  Setting <m:math><m:msub><m:mi>i</m:mi><m:mn>1</m:mn></m:msub><m:mo>=</m:mo><m:mn>0</m:mn></m:math>&#160;and <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_printlevel"><m:mi mathcolor="#800080;" mathvariant="bold">Print Level</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>&#160;means that the workspace needed will be computed and printed, but no iterations will be performed.</div>
<div class="paramtext">If <m:math><m:msub><m:mi>i</m:mi><m:mn>1</m:mn></m:msub><m:mo>&lt;</m:mo><m:mn>0</m:mn></m:math>&#160;or <m:math><m:msub><m:mi>i</m:mi><m:mn>2</m:mn></m:msub><m:mo>&lt;</m:mo><m:mn>0</m:mn></m:math>, the default value is used.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_feasibilitytolerance" id="feasibilitytolerance"/><b><span class="u">F</span>easibility <span class="u">To</span>lerance</b></td><td class="optparam-center"><i>r</i></td><td class="optparam-right">Default <m:math><m:mtext/><m:mo>=</m:mo><m:msqrt><m:mi>&#949;</m:mi></m:msqrt></m:math></td></tr></table><div class="paramtext">If <m:math><m:mi>r</m:mi><m:mo>&#8805;</m:mo><m:mi>&#949;</m:mi></m:math>, <m:math><m:mi>r</m:mi></m:math>&#160;defines the maximum acceptable <span class="italic">absolute</span> violation in each constraint at a &#8216;feasible&#8217; point.  For example, if the variables and the coefficients in the general constraints are of order unity, and the latter are correct to about <m:math><m:mn>6</m:mn></m:math>&#160;decimal digits, it would be appropriate to specify <m:math><m:mi>r</m:mi></m:math>&#160;as <m:math><m:msup><m:mn>10</m:mn><m:mrow><m:mo>-</m:mo><m:mn>6</m:mn></m:mrow></m:msup></m:math>.  If <m:math><m:mn>0</m:mn><m:mo>&#8804;</m:mo><m:mi>r</m:mi><m:mo>&lt;</m:mo><m:mi>&#949;</m:mi></m:math>, the default value is used.</div>
<div class="paramtext">E04NFF/E04NFA attempts to find a feasible solution before optimizing the objective function.  If the sum of infeasibilities cannot be reduced to zero, the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_min-infeasibilities"><m:mi mathcolor="#800080;" mathvariant="bold">Minimum Sum of Infeasibilities</m:mi></m:maction></m:math>&#160;can be used to find the minimum value of the sum.  Let <span class="mono">Sinf</span> be the corresponding sum of infeasibilities.  If <span class="mono">Sinf</span> is quite small, it may be appropriate to raise <m:math><m:mi>r</m:mi></m:math>&#160;by a factor of <m:math><m:mn>10</m:mn></m:math>&#160;or <m:math><m:mn>100</m:mn></m:math>.  Otherwise, some error in the data should be suspected.</div>
<div class="paramtext">Note that a &#8216;feasible solution&#8217; is a solution that satisfies the current constraints to within the tolerance <m:math><m:mi>r</m:mi></m:math>.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_hessianrows" id="hessianrows"/><b><span class="u">H</span>essian Rows</b></td><td class="optparam-center"><i>i</i></td><td class="optparam-right">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mi>n</m:mi></m:math></td></tr></table><div class="paramtext">Note that this option does not apply to problems of type FP or LP.</div>
<div class="paramtext">This specifies <m:math><m:mi>m</m:mi></m:math>, the number of rows of the Hessian matrix <m:math><m:mi>H</m:mi></m:math>.  The default value of <m:math><m:mi>m</m:mi></m:math>&#160;is <m:math><m:mi>n</m:mi></m:math>, the number of variables of the problem.</div>
<div class="paramtext">If the problem is of type QP then <m:math><m:mi>m</m:mi></m:math>&#160;will usually be <m:math><m:mi>n</m:mi></m:math>, the number of variables.  However, a value of <m:math><m:mi>m</m:mi></m:math>&#160;less than <m:math><m:mi>n</m:mi></m:math>&#160;is appropriate for QP3 or QP4 if <m:math><m:mi>H</m:mi></m:math>&#160;is an upper trapezoidal matrix with <m:math><m:mi>m</m:mi></m:math>&#160;rows.  Similarly, <m:math><m:mi>m</m:mi></m:math>&#160;may be used to define the dimension of a leading block of nonzeros in the Hessian matrices of QP1 or QP2.  In this case the last <m:math><m:mi>n</m:mi><m:mo>-</m:mo><m:mi>m</m:mi></m:math>&#160;rows and columns of <m:math><m:mi>H</m:mi></m:math>&#160;are assumed to be zero.  In the QP case <m:math><m:mi>m</m:mi></m:math>&#160;should not be greater than <m:math><m:mi>n</m:mi></m:math>; if it is, the last <m:math><m:mi>m</m:mi><m:mo>-</m:mo><m:mi>n</m:mi></m:math>&#160;rows of <m:math><m:mi>H</m:mi></m:math>&#160;are ignored.</div>
<div class="paramtext">If <m:math><m:mi>i</m:mi><m:mo>&lt;</m:mo><m:mn>0</m:mn></m:math>&#160;or <m:math><m:mi>i</m:mi><m:mo>&gt;</m:mo><m:mi>n</m:mi></m:math>, the default value is used.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_infiniteboundsize" id="infiniteboundsize"/><b><span class="u">In</span>finite <span class="u">B</span>ound Size</b></td><td class="optparam-center"><i>r</i></td><td class="optparam-right">Default <m:math><m:mtext/><m:mo>=</m:mo><m:msup><m:mn>10</m:mn><m:mn>20</m:mn></m:msup></m:math></td></tr></table><div class="paramtext">If <m:math><m:mi>r</m:mi><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>, <m:math><m:mi>r</m:mi></m:math>&#160;defines the &#8216;infinite&#8217; bound <m:math><m:mi mathvariant="italic">infbnd</m:mi></m:math>&#160;in the definition of the problem constraints.  Any upper bound greater than or equal to <m:math><m:mi mathvariant="italic">infbnd</m:mi></m:math>&#160;will be regarded as <m:math><m:mrow><m:mo>+</m:mo><m:mi>&#8734;</m:mi></m:mrow></m:math>&#160;(and similarly any lower bound less than or equal to <m:math><m:mrow><m:mo>-</m:mo><m:mi mathvariant="italic">infbnd</m:mi></m:mrow></m:math>&#160;will be regarded as <m:math><m:mrow><m:mo>-</m:mo><m:mi>&#8734;</m:mi></m:mrow></m:math>).  If <m:math><m:mi>r</m:mi><m:mo>&lt;</m:mo><m:mn>0</m:mn></m:math>, the default value is used.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_infinitestepsize" id="infinitestepsize"/><b><span class="u">In</span>finite <span class="u">S</span>tep Size</b></td><td class="optparam-center"><i>r</i></td><td class="optparam-right">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mi mathvariant="italic">bigbnd</m:mi><m:mo>,</m:mo><m:msup><m:mn>10</m:mn><m:mn>20</m:mn></m:msup></m:mfenced></m:mrow></m:math></td></tr></table><div class="paramtext">If <m:math><m:mi>r</m:mi><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>, <m:math><m:mi>r</m:mi></m:math>&#160;specifies the magnitude of the change in variables that will be considered a step to an unbounded solution.  (Note that an unbounded solution can occur only when the Hessian is not positive-definite.) If the change in <m:math><m:mi>x</m:mi></m:math>&#160;during an iteration would exceed the value of <m:math><m:mi>r</m:mi></m:math>&#160;then the objective function is considered to be unbounded below in the feasible region.  If <m:math><m:mi>r</m:mi><m:mo>&#8804;</m:mo><m:mn>0</m:mn></m:math>, the default value is used.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_iterationlimit" id="iterationlimit"/><b><span class="u">It</span>eration Limit</b></td><td class="optparam-center"><i>i</i></td><td class="optparam-right">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mn>50</m:mn><m:mo>,</m:mo><m:mrow><m:mn>5</m:mn><m:mfenced separators=""><m:mi>n</m:mi><m:mo>+</m:mo><m:msub><m:mi>m</m:mi><m:mi>L</m:mi></m:msub></m:mfenced></m:mrow></m:mfenced></m:mrow></m:math></td></tr></table>
<table class="multi-optparam"><tr><td class="optparam-left"><a name="optparam_iters" id="iters"/><b><span class="u">It</span>ers</b></td><td class="optparam-center"/><td class="optparam-right"/></tr></table>
<table class="multi-optparam"><tr><td class="optparam-left"><a name="optparam_itns" id="itns"/><b><span class="u">It</span>ns</b></td><td class="optparam-center"/><td class="optparam-right"/></tr></table><div class="paramtext">See optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_feasibility-pi-limit"><m:mi mathcolor="#800080;" mathvariant="bold">Feasibility Phase Iteration Limit</m:mi></m:maction></m:math>.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_list" id="list"/><b><span class="u">List</span></b></td><td class="optparam-center"/><td class="optparam-right">Default for <m:math><m:mi mathvariant="normal">E04NFF</m:mi><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_list"><m:mi mathcolor="#800080;" mathvariant="bold">List</m:mi></m:maction></m:math></td></tr></table>
<table class="multi-optparam"><tr><td class="optparam-left"><a name="optparam_nolist" id="nolist"/><b><span class="u">Nolist</span></b></td><td class="optparam-center"/><td class="optparam-right">Default for <m:math><m:mi mathvariant="normal">E04NFA</m:mi><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_nolist"><m:mi mathcolor="#800080;" mathvariant="bold">Nolist</m:mi></m:maction></m:math></td></tr></table><div class="paramtext">Normally each optional parameter specification is printed as it is supplied.  Optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_nolist"><m:mi mathcolor="#800080;" mathvariant="bold">Nolist</m:mi></m:maction></m:math>&#160;may be used to suppress the printing and optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_list"><m:mi mathcolor="#800080;" mathvariant="bold">List</m:mi></m:maction></m:math>&#160;may be used to restore printing.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_max-degreesoffreedom" id="max-degreesoffreedom"/><b><span class="u">Ma</span>ximum Degrees of Freedom</b></td><td class="optparam-center"><i>i</i></td><td class="optparam-right">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mi>n</m:mi></m:math></td></tr></table><div class="paramtext">Note that this option does not apply to problems of type FP or LP.</div>
<div class="paramtext">This places a limit on the storage allocated for the triangular factor <m:math><m:mi>R</m:mi></m:math>&#160;of the reduced Hessian <m:math><m:msub><m:mi>H</m:mi><m:mi>R</m:mi></m:msub></m:math>.  Ideally, <m:math><m:mi>i</m:mi></m:math>&#160;should be set slightly larger than the value of <m:math><m:msub><m:mi>n</m:mi><m:mi>R</m:mi></m:msub></m:math>&#160;expected at the solution.  It need not be larger than <m:math><m:msub><m:mi>m</m:mi><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction></m:msub><m:mo>+</m:mo><m:mn>1</m:mn></m:math>, where <m:math><m:msub><m:mi>m</m:mi><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction></m:msub></m:math>&#160;is the number of variables that appear nonlinearly in the quadratic objective function.  For many problems it can be much smaller than <m:math><m:msub><m:mi>m</m:mi><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction></m:msub></m:math>.</div>
<div class="paramtext">For quadratic problems, a minimizer may lie on any number of constraints, so that <m:math><m:msub><m:mi>n</m:mi><m:mi>R</m:mi></m:msub></m:math>&#160;may vary between <m:math><m:mn>1</m:mn></m:math>&#160;and <m:math><m:mi>n</m:mi></m:math>.  The default value of <m:math><m:mi>i</m:mi></m:math>&#160;is therefore the number of variables <m:math><m:mi>n</m:mi></m:math>.  If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_hessianrows"><m:mi mathcolor="#800080;" mathvariant="bold">Hessian Rows</m:mi></m:maction></m:math>&#160;<m:math><m:mi>m</m:mi></m:math>&#160;is specified, the default value of <m:math><m:mi>i</m:mi></m:math>&#160;is the same number, <m:math><m:mi>m</m:mi></m:math>.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_min-infeasibilities" id="min-infeasibilities"/><b><span class="u">Min</span>imum <span class="u">S</span>um of Infeasibilities</b></td><td class="optparam-center"><i>a</i></td><td class="optparam-right">Default <m:math><m:mo>=</m:mo><m:mi mathvariant="normal">No</m:mi></m:math></td></tr></table><div class="paramtext">If no feasible point exists for the constraints then this option is used to control whether or not E04NFF/E04NFA will calculate a point that minimizes the constraint violations.  If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_min-infeasibilities"><m:mi mathcolor="#800080;" mathvariant="bold">Minimum Sum of Infeasibilities</m:mi></m:maction><m:mo>=</m:mo><m:mi mathvariant="normal">No</m:mi></m:math>, E04NFF/E04NFA will terminate as soon as it is evident that no feasible point exists for the constraints.  The final point will generally not be the point at which the sum of infeasibilities is minimized.  If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_min-infeasibilities"><m:mi mathcolor="#800080;" mathvariant="bold">Minimum Sum of Infeasibilities</m:mi></m:maction><m:mo>=</m:mo><m:mi mathvariant="normal">Yes</m:mi></m:math>, E04NFF/E04NFA will continue until the sum of infeasibilities is minimized.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_monitoringfile" id="monitoringfile"/><b><span class="u">Mo</span>nitoring File</b></td><td class="optparam-center"><i>i</i></td><td class="optparam-right">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow></m:math></td></tr></table><div class="paramtext">If <m:math><m:mi>i</m:mi><m:mo>&#8805;</m:mo><m:mn>0</m:mn></m:math>&#160;and <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_printlevel"><m:mi mathcolor="#800080;" mathvariant="bold">Print Level</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>5</m:mn></m:math>, monitoring information produced by E04NFF/E04NFA at every iteration is sent to a file with logical unit number <m:math><m:mi>i</m:mi></m:math>.</div>
<div class="paramtext">If <m:math><m:mi>i</m:mi><m:mo>&lt;</m:mo><m:mn>0</m:mn></m:math>&#160;and/or <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_printlevel"><m:mi mathcolor="#800080;" mathvariant="bold">Print Level</m:mi></m:maction><m:mo>&lt;</m:mo><m:mn>5</m:mn></m:math>, no monitoring information is produced.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_optimalitytolerance" id="optimalitytolerance"/><b><span class="u">O</span>ptimality <span class="u">T</span>olerance</b></td><td class="optparam-center"><i>r</i></td><td class="optparam-right">Default <m:math><m:mtext/><m:mo>=</m:mo><m:msup><m:mi>&#949;</m:mi><m:mn>0.5</m:mn></m:msup></m:math></td></tr></table><div class="paramtext">If <m:math><m:mi>r</m:mi><m:mo>&#8805;</m:mo><m:mi>&#949;</m:mi></m:math>, <m:math><m:mi>r</m:mi></m:math>&#160;defines the tolerance used to determine if the bounds and general constraints have the right &#8216;sign&#8217; for the solution to be judged to be optimal.</div>
<div class="paramtext">If <m:math><m:mn>0</m:mn><m:mo>&#8804;</m:mo><m:mi>r</m:mi><m:mo>&lt;</m:mo><m:mi>&#949;</m:mi></m:math>, the default value is used.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_printlevel" id="printlevel"/><b><span class="u">Pri</span>nt Level</b></td><td class="optparam-center"><i>i</i></td><td class="optparam-right">Default for E04NFF
<m:math><m:mtext/><m:mo>=</m:mo><m:mn>10</m:mn></m:math><br/>
Default for E04NFA
<m:math><m:mtext/><m:mo>=</m:mo><m:mn>0</m:mn></m:math></td></tr></table><div class="paramtext">The value of <m:math><m:mi>i</m:mi></m:math>&#160;controls the amount of printout produced by E04NFF/E04NFA, as indicated below.  A detailed description of the printed output is given in <a class="sec" href="#fc-printedoutput">Section 8.2</a> (summary output at each iteration and the final solution) and <a class="sec" href="#monitoring">Section 12</a> (monitoring information at each iteration).  If <m:math><m:mi>i</m:mi><m:mo>&lt;</m:mo><m:mn>0</m:mn></m:math>, the default value is used.</div>
<div class="paramtext">The following printout is sent to the current advisory message unit (as defined by <a class="rout" href="../X04/x04abf.xml">X04ABF</a>): 
<div class="left-tablediv"><table class="frame-none"> 
 
 
<tbody> 
<tr> 
<td class="libdoc" valign="top" align="center"><b><m:math><m:mi>i</m:mi></m:math></b></td> 
<td class="libdoc" valign="top" align="center"><b>Output</b></td> 
</tr><tr> 
<td class="libdoc" valign="top" align="center"><m:math><m:mphantom><m:mo>&#8805;</m:mo><m:mn>0</m:mn></m:mphantom><m:mn>0</m:mn></m:math></td> 
<td class="libdoc" valign="top" align="left">No output.</td> 
</tr><tr> 
<td class="libdoc" valign="top" align="center"><m:math><m:mphantom><m:mo>&#8805;</m:mo><m:mn>0</m:mn></m:mphantom><m:mn>1</m:mn></m:math></td> 
<td class="libdoc" valign="top" align="left">The final solution only.</td> 
</tr><tr> 
<td class="libdoc" valign="top" align="center"><m:math><m:mphantom><m:mo>&#8805;</m:mo><m:mn>0</m:mn></m:mphantom><m:mn>5</m:mn></m:math></td> 
<td class="libdoc" valign="top" align="left">One line of summary output (<m:math><m:mtext/><m:mo>&lt;</m:mo><m:mn>80</m:mn></m:math>&#160;characters; see <a class="sec" href="#fc-printedoutput">Section 8.2</a>) for each iteration (no printout of the final solution).</td> 
</tr><tr> 
<td class="libdoc" valign="top" align="center"><m:math><m:mtext/><m:mo>&#8805;</m:mo><m:mn>10</m:mn></m:math></td> 
<td class="libdoc" valign="top" align="left">The final solution and one line of summary output for each iteration.</td> 
</tr> 
</tbody> 
</table></div> 
</div>
<div class="paramtext">The following printout is sent to the logical unit number defined by the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_monitoringfile"><m:mi mathcolor="#800080;" mathvariant="bold">Monitoring File</m:mi></m:maction></m:math>: 
<div class="left-tablediv"><table class="frame-none"> 
 
 
<tbody> 
<tr> 
<td class="libdoc" valign="top" align="center"><b><m:math><m:mi>i</m:mi></m:math></b></td> 
<td class="libdoc" valign="top" align="center"><b>Output</b></td> 
</tr><tr> 
<td class="libdoc" valign="top" align="center"><m:math><m:mtext/><m:mo>&lt;</m:mo><m:mn>5</m:mn></m:math></td> 
<td class="libdoc" valign="top" align="left">No output.</td> 
</tr><tr> 
<td class="libdoc" valign="top" align="center"><m:math><m:mtext/><m:mo>&#8805;</m:mo><m:mn>5</m:mn></m:math></td> 
<td class="libdoc" valign="top" align="left">One long line of output (<m:math><m:mtext/><m:mo>&gt;</m:mo><m:mn>80</m:mn></m:math>&#160;characters; see <a class="sec" href="#monitoring">Section 12</a>) for each iteration (no printout of the final solution).</td> 
</tr><tr> 
<td class="libdoc" valign="top" align="center"><m:math><m:mtext/><m:mo>&#8805;</m:mo><m:mn>20</m:mn></m:math></td> 
<td class="libdoc" valign="top" align="left">At each iteration: the Lagrange multipliers, the variables <m:math><m:mi>x</m:mi></m:math>, the constraint values <m:math><m:mi>A</m:mi><m:mi>x</m:mi></m:math>&#160;and the constraint status.</td> 
</tr><tr> 
<td class="libdoc" valign="top" align="center"><m:math><m:mtext/><m:mo>&#8805;</m:mo><m:mn>30</m:mn></m:math></td> 
<td class="libdoc" valign="top" align="left">At each iteration: the diagonal elements of the upper triangular matrix <m:math><m:mi>T</m:mi></m:math>&#160;associated with the <m:math><m:mi>T</m:mi><m:mi>Q</m:mi></m:math>&#160;factorization <a class="eqn" href="#eqn3">(3)</a> (see <a class="sec" href="#ad-search">Section 10.2</a>) of the working set and the diagonal elements of the upper triangular matrix <m:math><m:mi>R</m:mi></m:math>.</td> 
</tr> 
</tbody> 
</table></div> 
</div>
<div class="paramtext">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_printlevel"><m:mi mathcolor="#800080;" mathvariant="bold">Print Level</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>5</m:mn></m:math>&#160;and the unit number defined by the <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_monitoringfile"><m:mi mathcolor="#800080;" mathvariant="bold">Monitoring File</m:mi></m:maction></m:math>&#160;is the same as that defined by <a class="rout" href="../X04/x04abf.xml">X04ABF</a> then the summary output is suppressed.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_problemtype" id="problemtype"/><b><span class="u">Pro</span>blem <span class="u">Ty</span>pe</b></td><td class="optparam-center"><i>a</i></td><td class="optparam-right">Default <m:math><m:mo>=</m:mo></m:math>&#160;QP2

</td></tr></table><div class="paramtext">This option specifies the type of objective function to be minimized during the optimality phase.  The following are the five optional keywords and the dimensions of the arrays that must be specified in order to define the objective function: <table class="standard-90"><tr>
<td style="width:3.0em;" valign="baseline">LP</td>
<td valign="top"><a class="arg" href="#H">H</a> not referenced, <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#CVEC"><m:mi mathcolor="#EE0000" mathvariant="bold">CVEC</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction></m:mfenced></m:mrow></m:math>&#160;required;</td>
</tr><tr>
<td style="width:3.0em;" valign="baseline">QP1</td>
<td valign="top"><m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#H"><m:mi mathcolor="#EE0000" mathvariant="bold">H</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:maction actiontype="link" dsi:type="simple" dsi:href="#LDH"><m:mi mathcolor="#EE0000" mathvariant="bold">LDH</m:mi></m:maction><m:mo>*</m:mo></m:mfenced></m:mrow></m:math>&#160;symmetric, <a class="arg" href="#CVEC">CVEC</a> not referenced;</td>
</tr><tr>
<td style="width:3.0em;" valign="baseline">QP2</td>
<td valign="top"><m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#H"><m:mi mathcolor="#EE0000" mathvariant="bold">H</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:maction actiontype="link" dsi:type="simple" dsi:href="#LDH"><m:mi mathcolor="#EE0000" mathvariant="bold">LDH</m:mi></m:maction><m:mo>*</m:mo></m:mfenced></m:mrow></m:math>&#160;symmetric, <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#CVEC"><m:mi mathcolor="#EE0000" mathvariant="bold">CVEC</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction></m:mfenced></m:mrow></m:math>&#160;required;</td>
</tr><tr>
<td style="width:3.0em;" valign="baseline">QP3</td>
<td valign="top"><m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#H"><m:mi mathcolor="#EE0000" mathvariant="bold">H</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:maction actiontype="link" dsi:type="simple" dsi:href="#LDH"><m:mi mathcolor="#EE0000" mathvariant="bold">LDH</m:mi></m:maction><m:mo>*</m:mo></m:mfenced></m:mrow></m:math>&#160;upper trapezoidal, <a class="arg" href="#CVEC">CVEC</a> not referenced;</td>
</tr><tr>
<td style="width:3.0em;" valign="baseline">QP4</td>
<td valign="top"><m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#H"><m:mi mathcolor="#EE0000" mathvariant="bold">H</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:maction actiontype="link" dsi:type="simple" dsi:href="#LDH"><m:mi mathcolor="#EE0000" mathvariant="bold">LDH</m:mi></m:maction><m:mo>*</m:mo></m:mfenced></m:mrow></m:math>&#160;upper trapezoidal, <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#CVEC"><m:mi mathcolor="#EE0000" mathvariant="bold">CVEC</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction></m:mfenced></m:mrow></m:math>&#160;required.</td>
</tr></table> </div>
<div class="paramtext">For problems of type FP the objective function is omitted and neither <a class="arg" href="#H">H</a> nor <a class="arg" href="#CVEC">CVEC</a> are referenced.</div>
<div class="paramtext">The following keywords are also acceptable.  The minimum abbreviation of each keyword is underlined.  
<div class="tablediv"><table class="frame-none"> 
 
 
<tbody> 
<tr> 
<td class="libdoc" valign="top" align="center"><m:math><m:mi>a</m:mi></m:math></td> 
<td class="libdoc" valign="top" align="left"><b>Option</b></td> 
</tr><tr> 
<td class="libdoc" valign="top" align="left"><span class="u">Q</span>uadratic</td> 
<td class="libdoc" valign="top" align="left">QP2</td> 
</tr><tr> 
<td class="libdoc" valign="top" align="left"><span class="u">L</span>inear</td> 
<td class="libdoc" valign="top" align="left">LP</td> 
</tr><tr> 
<td class="libdoc" valign="top" align="left"><span class="u">F</span>easible</td> 
<td class="libdoc" valign="top" align="left">FP</td> 
</tr> 
</tbody> 
</table></div> 
</div>
<div class="paramtext">In addition, the keyword QP is equivalent to the default option QP2.</div>
<div class="paramtext">If <m:math><m:mi>H</m:mi><m:mo>=</m:mo><m:mn>0</m:mn></m:math>&#160;(i.e., the objective function is purely linear), the efficiency of E04NFF/E04NFA may be increased by specifying <m:math><m:mi>a</m:mi></m:math>&#160;as LP.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_ranktolerance" id="ranktolerance"/><b><span class="u">R</span>ank Tolerance</b></td><td class="optparam-center"><i>r</i></td><td class="optparam-right">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mn>100</m:mn><m:mi>&#949;</m:mi></m:math></td></tr></table><div class="paramtext">Note that this option does not apply to problems of type FP or LP.</div>
<div class="paramtext">This optional parameter enables you to control the condition number of the triangular factor <m:math><m:mi>R</m:mi></m:math>&#160;(see <a class="sec" href="#algdetails">Section 10</a>).  If <m:math><m:msub><m:mi>&#961;</m:mi><m:mi>i</m:mi></m:msub></m:math>&#160;denotes the function <m:math><m:msub><m:mi>&#961;</m:mi><m:mi>i</m:mi></m:msub><m:mo>=</m:mo><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced open="{" close="}" separators=""><m:mfenced open="|" close="|" separators=""><m:msub><m:mi>R</m:mi><m:mn>11</m:mn></m:msub></m:mfenced><m:mo>,</m:mo><m:mfenced open="|" close="|" separators=""><m:msub><m:mi>R</m:mi><m:mn>22</m:mn></m:msub></m:mfenced><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:mfenced open="|" close="|" separators=""><m:msub><m:mi>R</m:mi><m:mrow><m:mi>i</m:mi><m:mi>i</m:mi></m:mrow></m:msub></m:mfenced></m:mfenced></m:mrow></m:math>, the dimension of <m:math><m:mi>R</m:mi></m:math>&#160;is defined to be smallest index <m:math><m:mi>i</m:mi></m:math>&#160;such that <m:math><m:mfenced open="|" close="|" separators=""><m:msub><m:mi>R</m:mi><m:mrow><m:mi>i</m:mi><m:mo>+</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mi>i</m:mi><m:mo>+</m:mo><m:mn>1</m:mn></m:mrow></m:msub></m:mfenced><m:mo>&#8804;</m:mo><m:msqrt><m:mi>r</m:mi></m:msqrt><m:mfenced open="|" close="|" separators=""><m:msub><m:mi>&#961;</m:mi><m:mrow><m:mi>i</m:mi><m:mo>+</m:mo><m:mn>1</m:mn></m:mrow></m:msub></m:mfenced></m:math>.  If <m:math><m:mi>r</m:mi><m:mo>&#8804;</m:mo><m:mn>0</m:mn></m:math>, the default value is used.</div><h2 class="standard"><a class="sec" name="monitoring" id="monitoring"/>12&#160;&#160;Description of Monitoring Information</h2>
<div class="paramtext">This section describes the long line of output (<m:math><m:mtext/><m:mo>&gt;</m:mo><m:mn>80</m:mn></m:math>&#160;characters) which forms part of the monitoring information produced by E04NFF/E04NFA.  (See also the description of the optional parameters <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_monitoringfile"><m:mi mathcolor="#800080;" mathvariant="bold">Monitoring File</m:mi></m:maction></m:math>&#160;and <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_printlevel"><m:mi mathcolor="#800080;" mathvariant="bold">Print Level</m:mi></m:maction></m:math>.)  You can control the level of printed output.</div><div class="paramtext">To aid interpretation of the printed results the following convention is used for numbering the constraints: indices <m:math><m:mn>1</m:mn></m:math>&#160;through <m:math><m:mi>n</m:mi></m:math>&#160;refer to the bounds on the variables and indices <m:math><m:mi>n</m:mi><m:mo>+</m:mo><m:mn>1</m:mn></m:math>&#160;through <m:math><m:mi>n</m:mi><m:mo>+</m:mo><m:msub><m:mi>m</m:mi><m:mi>L</m:mi></m:msub></m:math>&#160;refer to the general constraints.  When the status of a constraint changes, the index of the constraint is printed, along with the designation <span class="mono">L</span> (lower bound), <span class="mono">U</span> (upper bound), <span class="mono">E</span> (equality), <span class="mono">F</span> (temporarily fixed variable) or <span class="mono">A</span> (artificial constraint).</div><div class="paramtext">When <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_printlevel"><m:mi mathcolor="#800080;" mathvariant="bold">Print Level</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>5</m:mn></m:math>&#160;and <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_monitoringfile"><m:mi mathcolor="#800080;" mathvariant="bold">Monitoring File</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>0</m:mn></m:math>, the following line of output is produced at every iteration on the unit number specified by the <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_monitoringfile"><m:mi mathcolor="#800080;" mathvariant="bold">Monitoring File</m:mi></m:maction></m:math>.  In all cases the values of the quantities printed are those in effect <span class="italic">on</span>
<span class="italic">completion</span> of the given iteration.
<table class="standard-100"><tr>
<td style="width:9.6em;" valign="baseline"><span class="mono">Itn</span></td>
<td valign="top">
is the iteration count.
</td>
</tr><tr>
<td style="width:9.6em;" valign="baseline"><span class="mono">Jdel</span></td>
<td valign="top">
is the index of the constraint deleted from the working set.  If <span class="mono">Jdel</span> is zero, no constraint was deleted.
</td>
</tr><tr>
<td style="width:9.6em;" valign="baseline"><span class="mono">Jadd</span></td>
<td valign="top">
is the index of the constraint added to the working set.  If <span class="mono">Jadd</span> is zero, no constraint was added.
</td>
</tr><tr>
<td style="width:9.6em;" valign="baseline"><span class="mono">Step</span></td>
<td valign="top">
is the step taken along the computed search direction.  If a constraint is added during the current iteration, <span class="mono">Step</span> will be the step to the nearest constraint.  When the problem is of type LP, the step can be greater than one during the optimality phase.
</td>
</tr><tr>
<td style="width:9.6em;" valign="baseline"><span class="mono">Ninf</span></td>
<td valign="top">
is the number of violated constraints (infeasibilities).  This will be zero during the optimality phase.
</td>
</tr><tr>
<td style="width:9.6em;" valign="baseline"><span class="mono">Sinf</span>/<span class="mono">Objective</span></td>
<td valign="top">
is the value of the current objective function.  If <m:math><m:mi>x</m:mi></m:math>&#160;is not feasible, <span class="mono">Sinf</span> gives a weighted sum of the magnitudes of constraint violations.  If <m:math><m:mi>x</m:mi></m:math>&#160;is feasible, <span class="mono">Objective</span> is the value of the objective function of <a class="eqn" href="#eqn1">(1)</a>.  The output line for the final iteration of the feasibility phase (i.e., the first iteration for which <span class="mono">Ninf</span> is zero) will give the value of the true objective at the first feasible point.<div class="paramtext">During the optimality phase the value of the objective function will be nonincreasing.  During the feasibility phase the number of constraint infeasibilities will not increase until either a feasible point is found or the optimality of the multipliers implies that no feasible point exists.  Once optimal multipliers are obtained the number of infeasibilities can increase, but the sum of infeasibilities will either remain constant or be reduced until the minimum sum of infeasibilities is found.</div>
</td>
</tr><tr>
<td style="width:9.6em;" valign="baseline"><span class="mono">Bnd</span></td>
<td valign="top">
is the number of simple bound constraints in the current working set.
</td>
</tr><tr>
<td style="width:9.6em;" valign="baseline"><span class="mono">Lin</span></td>
<td valign="top">
is the number of general linear constraints in the current working set.
</td>
</tr><tr>
<td style="width:9.6em;" valign="baseline"><span class="mono">Art</span></td>
<td valign="top">
is the number of artificial constraints in the working set, i.e., the number of columns of <m:math><m:msub><m:mi>Z</m:mi><m:mi>A</m:mi></m:msub></m:math>&#160;(see <a class="sec" href="#ad-choosing">Section 10.4</a>).
</td>
</tr><tr>
<td style="width:9.6em;" valign="baseline"><span class="mono">Zr</span></td>
<td valign="top">
is the number of columns of <m:math><m:msub><m:mi>Z</m:mi><m:mn>1</m:mn></m:msub></m:math>&#160;(see <a class="sec" href="#ad-search">Section 10.2</a>).  <span class="mono">Zr</span> is the dimension of the subspace in which the objective function is currently being minimized.  The value of <span class="mono">Zr</span> is the number of variables minus the number of constraints in the working set; i.e., <m:math><m:mi mathvariant="monospace">Zr</m:mi><m:mo>=</m:mo><m:mi>n</m:mi><m:mo>-</m:mo><m:mfenced separators=""><m:mi mathvariant="monospace">Bnd</m:mi><m:mo>+</m:mo><m:mi mathvariant="monospace">Lin</m:mi><m:mo>+</m:mo><m:mi mathvariant="monospace">Art</m:mi></m:mfenced></m:math>.<div class="paramtext">The value of <m:math><m:msub><m:mi>n</m:mi><m:mi>Z</m:mi></m:msub></m:math>, the number of columns of <m:math><m:mi>Z</m:mi></m:math>&#160;(see <a class="sec" href="#ad-search">Section 10.2</a>) can be calculated as <m:math><m:msub><m:mi>n</m:mi><m:mi>Z</m:mi></m:msub><m:mo>=</m:mo><m:mi>n</m:mi><m:mo>-</m:mo><m:mfenced separators=""><m:mi mathvariant="monospace">Bnd</m:mi><m:mo>+</m:mo><m:mi mathvariant="monospace">Lin</m:mi></m:mfenced></m:math>.  A zero value of <m:math><m:msub><m:mi>n</m:mi><m:mi>Z</m:mi></m:msub></m:math>&#160;implies that <m:math><m:mi>x</m:mi></m:math>&#160;lies at a vertex of the feasible region.</div>
</td>
</tr><tr>
<td style="width:9.6em;" valign="baseline"><span class="mono">Norm Gz</span></td>
<td valign="top">

is <m:math>
 <m:mfenced open="&#8214;" close="&#8214;" separators="">
  <m:msubsup><m:mi>Z</m:mi><m:mi>R</m:mi><m:mi mathvariant="normal">T</m:mi></m:msubsup>
  <m:msub><m:mi>g</m:mi><m:mi mathvariant="normal">FR</m:mi></m:msub>
 </m:mfenced>
</m:math>, the Euclidean norm of the reduced gradient with respect to <m:math><m:msub><m:mi>Z</m:mi><m:mi>R</m:mi></m:msub></m:math>.  During the optimality phase, this norm will be approximately zero after a unit step.

</td>
</tr><tr>
<td style="width:9.6em;" valign="baseline"><span class="mono">NOpt</span></td>
<td valign="top">
is the number of nonoptimal Lagrange multipliers at the current point.  <span class="mono">NOpt</span> is not printed if the current <m:math><m:mi>x</m:mi></m:math>&#160;is infeasible or no multipliers have been calculated.  At a minimizer, <span class="mono">NOpt</span> will be zero.
</td>
</tr><tr>
<td style="width:9.6em;" valign="baseline"><span class="mono">Min Lm</span></td>
<td valign="top">
is the value of the Lagrange multiplier associated with the deleted constraint.  If <span class="mono">Min&#160;Lm</span> is negative, a lower bound constraint has been deleted, if <span class="mono">Min&#160;Lm</span> is positive, an upper bound constraint has been deleted.  If no multipliers are calculated during a given iteration <span class="mono">Min Lm</span> will be zero.
</td>
</tr><tr>
<td style="width:9.6em;" valign="baseline"><span class="mono">Cond T</span></td>
<td valign="top">
is a lower bound on the condition number of the working set.
</td>
</tr><tr>
<td style="width:9.6em;" valign="baseline"><span class="mono">Cond Rz</span></td>
<td valign="top">
is a lower bound on the condition number of the triangular factor <m:math><m:mi>R</m:mi></m:math>&#160;(the Cholesky factor of the current reduced Hessian; see <a class="sec" href="#ad-search">Section 10.2</a>).  If the problem is specified to be of type LP then <span class="mono">Cond Rz</span> is not printed.
</td>
</tr><tr>
<td style="width:9.6em;" valign="baseline"><span class="mono">Rzz</span></td>
<td valign="top">
is the last diagonal element <m:math><m:mi>&#956;</m:mi></m:math>&#160;of the matrix <m:math><m:mi>D</m:mi></m:math>&#160;associated with the <m:math><m:msup><m:mi>R</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>D</m:mi><m:mi>R</m:mi></m:math>&#160;factorization of the reduced Hessian <m:math><m:msub><m:mi>H</m:mi><m:mi>R</m:mi></m:msub></m:math>&#160;(see <a class="sec" href="#ad-search">Section 10.2</a>).  <span class="mono">Rzz</span> is only printed if <m:math><m:msub><m:mi>H</m:mi><m:mi>R</m:mi></m:msub></m:math>&#160;is not positive-definite (in which case <m:math><m:mi>&#956;</m:mi><m:mo>&#8800;</m:mo><m:mn>1</m:mn></m:math>).  If the printed value of <span class="mono">Rzz</span> is small in absolute value then <m:math><m:msub><m:mi>H</m:mi><m:mi>R</m:mi></m:msub></m:math>&#160;is approximately singular.  A negative value of <span class="mono">Rzz</span> implies that the objective function has negative curvature on the current working set.
</td>
</tr></table>
</div>
<hr/><div><a class="rout" href="../../pdf/E04/e04nff.pdf">E04NFF/E04NFA (PDF version)</a></div><div><a class="chap" href="e04conts.xml">E04 Chapter Contents</a></div><div><a class="chapint" href="e04intro.xml">E04 Chapter Introduction</a></div>
<div><a class="htmltoc" href="../FRONTMATTER/manconts.xml">NAG Library Manual</a></div>
<div><hr/><a class="genint" href="../FRONTMATTER/copyright.xml">&#169; The Numerical Algorithms Group Ltd, Oxford, UK. 2009</a></div></body></html>
