<?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>E04UGF/E04UGA : 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/e04ugf.pdf">E04UGF/E04UGA (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/>E04UGF/E04UGA</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 E04UGF</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 E04UGA</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-majorprintout">8.1&#160;&#160;<b>Major Iteration Printout</b></a>
</div><div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#fc-minorprintout">8.2&#160;&#160;<b>Minor Iteration Printout</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-treatment">10.2&#160;&#160;<b>Treatment of Constraint Infeasibilities</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">E04UGF/E04UGA solves sparse nonlinear programming problems.</div>
<div class="paramtext">E04UGA is a version of E04UGF 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 E04UGA.</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 E04UGF</h3>
<table class="fspec"><tr><td class="tdfspec1">SUBROUTINE&#160;E04UGF&#160;(</td><td class="tdfspec2"><a class="arg" href="#CONFUN">CONFUN</a>, <a class="arg" href="#OBJFUN">OBJFUN</a>, <a class="arg" href="#N">N</a>, <a class="arg" href="#M">M</a>, <a class="arg" href="#NCNLN">NCNLN</a>, <a class="arg" href="#NONLN">NONLN</a>, <a class="arg" href="#NJNLN">NJNLN</a>, <a class="arg" href="#IOBJ">IOBJ</a>, <a class="arg" href="#NNZ">NNZ</a>, <a class="arg" href="#A">A</a>, <a class="arg" href="#HA">HA</a>, <a class="arg" href="#KA">KA</a>, <a class="arg" href="#BL">BL</a>, <a class="arg" href="#BU">BU</a>, <a class="arg" href="#START">START</a>, <a class="arg" href="#NNAME">NNAME</a>, <a class="arg" href="#NAMES">NAMES</a>, <a class="arg" href="#NS">NS</a>, <a class="arg" href="#XS">XS</a>, <a class="arg" href="#ISTATE">ISTATE</a>, <a class="arg" href="#CLAMDA">CLAMDA</a>, <a class="arg" href="#MINIZ">MINIZ</a>, <a class="arg" href="#MINZ">MINZ</a>, <a class="arg" href="#NINF">NINF</a>, <a class="arg" href="#SINF">SINF</a>, <a class="arg" href="#OBJ">OBJ</a>, <a class="arg" href="#IZ">IZ</a>, <a class="arg" href="#LENIZ">LENIZ</a>, <a class="arg" href="#Z">Z</a>, <a class="arg" href="#LENZ">LENZ</a>, <a class="arg" href="#IUSER">IUSER</a>, <a class="arg" href="#RUSER">RUSER</a>, <a class="arg" href="#IFAIL">IFAIL</a>)</td></tr><tr><td class="tdfspec1">INTEGER</td><td class="tdfspec2">N, M, NCNLN, NONLN, NJNLN, IOBJ, NNZ, HA(NNZ), KA(N+1), NNAME, NS, ISTATE(N+M), MINIZ, MINZ, NINF, IZ(LENIZ), LENIZ, LENZ, IUSER(*), IFAIL</td></tr><tr><td class="tdfspec1"><b><i>double&#160;precision</i></b></td><td class="tdfspec2">A(NNZ), BL(N+M), BU(N+M), XS(N+M), CLAMDA(N+M), SINF, OBJ, Z(LENZ), RUSER(*)</td></tr><tr><td class="tdfspec1">CHARACTER*1</td><td class="tdfspec2">START</td></tr><tr><td class="tdfspec1">CHARACTER*8</td><td class="tdfspec2">NAMES(NNAME)</td></tr><tr><td class="tdfspec1">EXTERNAL</td><td class="tdfspec2">CONFUN, OBJFUN</td></tr></table><h3 class="standard"><a class="sec" name="routAspec" id="routAspec"/>2.2&#160;&#160;Specification for E04UGA</h3>
<table class="fspec"><tr><td class="tdfspec1">SUBROUTINE&#160;E04UGA&#160;(</td><td class="tdfspec2"><a class="arg" href="#CONFUN">CONFUN</a>, <a class="arg" href="#OBJFUN">OBJFUN</a>, <a class="arg" href="#N">N</a>, <a class="arg" href="#M">M</a>, <a class="arg" href="#NCNLN">NCNLN</a>, <a class="arg" href="#NONLN">NONLN</a>, <a class="arg" href="#NJNLN">NJNLN</a>, <a class="arg" href="#IOBJ">IOBJ</a>, <a class="arg" href="#NNZ">NNZ</a>, <a class="arg" href="#A">A</a>, <a class="arg" href="#HA">HA</a>, <a class="arg" href="#KA">KA</a>, <a class="arg" href="#BL">BL</a>, <a class="arg" href="#BU">BU</a>, <a class="arg" href="#START">START</a>, <a class="arg" href="#NNAME">NNAME</a>, <a class="arg" href="#NAMES">NAMES</a>, <a class="arg" href="#NS">NS</a>, <a class="arg" href="#XS">XS</a>, <a class="arg" href="#ISTATE">ISTATE</a>, <a class="arg" href="#CLAMDA">CLAMDA</a>, <a class="arg" href="#MINIZ">MINIZ</a>, <a class="arg" href="#MINZ">MINZ</a>, <a class="arg" href="#NINF">NINF</a>, <a class="arg" href="#SINF">SINF</a>, <a class="arg" href="#OBJ">OBJ</a>, <a class="arg" href="#IZ">IZ</a>, <a class="arg" href="#LENIZ">LENIZ</a>, <a class="arg" href="#Z">Z</a>, <a class="arg" href="#LENZ">LENZ</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, M, NCNLN, NONLN, NJNLN, IOBJ, NNZ, HA(NNZ), KA(N+1), NNAME, NS, ISTATE(N+M), MINIZ, MINZ, NINF, IZ(LENIZ), LENIZ, LENZ, IUSER(*), IWSAV(550), IFAIL</td></tr><tr><td class="tdfspec1"><b><i>double&#160;precision</i></b></td><td class="tdfspec2">A(NNZ), BL(N+M), BU(N+M), XS(N+M), CLAMDA(N+M), SINF, OBJ, Z(LENZ), RUSER(*), RWSAV(550)</td></tr><tr><td class="tdfspec1">LOGICAL</td><td class="tdfspec2">LWSAV(20)</td></tr><tr><td class="tdfspec1">CHARACTER*1</td><td class="tdfspec2">START</td></tr><tr><td class="tdfspec1">CHARACTER*8</td><td class="tdfspec2">NAMES(NNAME)</td></tr><tr><td class="tdfspec1">EXTERNAL</td><td class="tdfspec2">CONFUN, OBJFUN</td></tr></table><div class="paramtext">Before calling E04UGA, or either of the option setting routines <a class="rout" href="../E04/e04uhf.xml">E04UHA</a> or <a class="rout" href="../E04/e04ujf.xml">E04UJA</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>'E04UGA'</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>20</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>550</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>550</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/e04ugf.xml">E04UGA</a>, <a class="rout" href="../E04/e04uhf.xml">E04UHA</a>, <a class="rout" href="../E04/e04ujf.xml">E04UJA</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">E04UGF/E04UGA is designed to solve a class of nonlinear programming problems that are assumed to be stated in the following general form:

<div class="formula-eqn"><a name="eqn1" id="eqn1"/><table class="formula-eqn"><tr><td class="formula-eqn"><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 open="{" close="}" separators="">
 <m:mtable>
  <m:mtr>
   <m:mtd><m:mi>x</m:mi></m:mtd>
  </m:mtr><m:mtr>
   <m:mtd><m:mi>F</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:mtd>
  </m:mtr><m:mtr>
   <m:mtd><m:mi>G</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="formula-eqn2">
      (1)
     </td></tr></table></div>

where <m:math><m:mi>x</m:mi><m:mo>=</m:mo><m:msup><m:mfenced separators=""><m:msub><m:mi>x</m:mi><m:mn>1</m:mn></m:msub><m:mo>,</m:mo><m:msub><m:mi>x</m:mi><m:mn>2</m:mn></m:msub><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:msub><m:mi>x</m:mi><m:mi>n</m:mi></m:msub></m:mfenced><m:mi mathvariant="normal">T</m:mi></m:msup></m:math>&#160;is a set of variables, <m:math><m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;is a smooth scalar objective function, <m:math><m:mi>l</m:mi></m:math>&#160;and <m:math><m:mi>u</m:mi></m:math>&#160;are constant lower and upper bounds, <m:math><m:mi>F</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;is a vector of smooth nonlinear constraint functions <m:math><m:mfenced open="{" close="}" separators=""><m:msub><m:mi>F</m:mi><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:mfenced></m:math>&#160;and <m:math><m:mi>G</m:mi></m:math>&#160;is a <span class="italic">sparse</span> matrix.</div><div class="paramtext">The constraints involving <m:math><m:mi>F</m:mi></m:math>&#160;and <m:math><m:mi>G</m:mi><m:mi>x</m:mi></m:math>&#160;are called the <span class="italic">general constraints</span>.  Note that upper and lower bounds are specified for all variables and constraints.  This form allows full generality in specifying various types of constraint.  In particular, the <m:math><m:mi>j</m:mi></m:math>th constraint can be defined as an <span class="italic">equality</span> by setting <m:math><m:msub><m:mi>l</m:mi><m:mi>j</m:mi></m:msub><m:mo>=</m:mo><m:msub><m:mi>u</m:mi><m:mi>j</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">E04UGF/E04UGA converts the upper and lower bounds on the <m:math><m:mi>m</m:mi></m:math>&#160;elements of <m:math><m:mi>F</m:mi></m:math>&#160;and <m:math><m:mi>G</m:mi><m:mi>x</m:mi></m:math>&#160;to equalities by introducing a set of <span class="italic">slack variables</span>
<m:math><m:mi>s</m:mi></m:math>, where <m:math><m:mi>s</m:mi><m:mo>=</m:mo><m:msup><m:mfenced separators=""><m:msub><m:mi>s</m:mi><m:mn>1</m:mn></m:msub><m:mo>,</m:mo><m:msub><m:mi>s</m:mi><m:mn>2</m:mn></m:msub><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:msub><m:mi>s</m:mi><m:mi>m</m:mi></m:msub></m:mfenced><m:mi mathvariant="normal">T</m:mi></m:msup></m:math>.  For example, the linear constraint <m:math><m:mn>5</m:mn><m:mo>&#8804;</m:mo><m:mn>2</m:mn><m:msub><m:mi>x</m:mi><m:mn>1</m:mn></m:msub><m:mo>+</m:mo><m:mn>3</m:mn><m:msub><m:mi>x</m:mi><m:mn>2</m:mn></m:msub><m:mo>&#8804;</m:mo><m:mrow><m:mo>+</m:mo><m:mi>&#8734;</m:mi></m:mrow></m:math>&#160;is replaced by <m:math><m:mn>2</m:mn><m:msub><m:mi>x</m:mi><m:mn>1</m:mn></m:msub><m:mo>+</m:mo><m:mn>3</m:mn><m:msub><m:mi>x</m:mi><m:mn>2</m:mn></m:msub><m:mo>-</m:mo><m:msub><m:mi>s</m:mi><m:mn>1</m:mn></m:msub><m:mo>=</m:mo><m:mn>0</m:mn></m:math>, together with the bounded slack <m:math><m:mn>5</m:mn><m:mo>&#8804;</m:mo><m:msub><m:mi>s</m:mi><m:mn>1</m:mn></m:msub><m:mo>&#8804;</m:mo><m:mrow><m:mo>+</m:mo><m:mi>&#8734;</m:mi></m:mrow></m:math>.  The problem defined by <a class="eqn" href="#eqn1">(1)</a> can therefore be re-written in the following equivalent form:

<div class="formula-eqn"><a name="eqn2" id="eqn2"/><table class="formula-eqn"><tr><td class="formula-eqn"><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:mo>,</m:mo><m:mi>s</m:mi><m:mo>&#8712;</m:mo><m:msup><m:mi>R</m:mi><m:mi>m</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:mfenced open="{" close="}" separators="">
 <m:mtable>
  <m:mtr>
   <m:mtd><m:mi>G</m:mi><m:mi>x</m:mi></m:mtd>
  </m:mtr>
 </m:mtable>
</m:mfenced><m:mo>-</m:mo><m:mi>s</m:mi><m:mo>=</m:mo><m:mn>0</m:mn><m:mtext>, &#8195;</m:mtext><m:mi>l</m:mi><m:mo>&#8804;</m:mo><m:mfenced open="{" close="}" separators="">
 <m:mtable>
  <m:mtr>
   <m:mtd><m:mi>x</m:mi></m:mtd>
  </m:mtr><m:mtr>
   <m:mtd><m:mi>s</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="formula-eqn2">
      (2)
     </td></tr></table></div>

Since the slack variables <m:math><m:mi>s</m:mi></m:math>&#160;are subject to the same upper and lower bounds as the elements of <m:math><m:mi>F</m:mi></m:math>&#160;and <m:math><m:mi>G</m:mi><m:mi>x</m:mi></m:math>, the bounds on <m:math><m:mi>F</m:mi></m:math>&#160;and <m:math><m:mi>G</m:mi><m:mi>x</m:mi></m:math>&#160;can simply be thought of as bounds on the combined vector <m:math><m:mfenced separators=""><m:mi>x</m:mi><m:mo>,</m:mo><m:mi>s</m:mi></m:mfenced></m:math>.  The elements of <m:math><m:mi>x</m:mi></m:math>&#160;and <m:math><m:mi>s</m:mi></m:math>&#160;are partitioned into <span class="italic">basic</span>, <span class="italic">nonbasic</span> and <span class="italic">superbasic variables</span> defined as follows:
<table class="standard-100"><tr>
<td style="width:1.5em;" valign="baseline">&#8211;</td>
<td valign="top">a basic variable (<m:math><m:msub><m:mi>x</m:mi><m:mi>j</m:mi></m:msub></m:math>&#160;say) is the <m:math><m:mi>j</m:mi></m:math>th variable associated with the <m:math><m:mi>j</m:mi></m:math>th column of the basis matrix <m:math><m:mi>B</m:mi></m:math>;</td>
</tr><tr>
<td style="width:1.5em;" valign="baseline">&#8211;</td>
<td valign="top">a nonbasic variable is a variable that is temporarily fixed at its current value (usually its upper or lower bound);</td>
</tr><tr>
<td style="width:1.5em;" valign="baseline">&#8211;</td>
<td valign="top">a superbasic variable is a nonbasic variable which is not at one of its bounds that is free to move in any desired direction (namely one that will improve the value of the objective function or reduce the sum of infeasibilities).</td>
</tr></table>
</div><div class="paramtext">For example, in the simplex method (see <a class="ref" href="#ref079">Gill <span class="italic">et al.</span> (1981)</a>) the elements of <m:math><m:mi>x</m:mi></m:math>&#160;can be partitioned at each vertex into a set of <m:math><m:mi>m</m:mi></m:math>&#160;basic variables (all non-negative) and a set of <m:math><m:mfenced separators=""><m:mi>n</m:mi><m:mo>-</m:mo><m:mi>m</m:mi></m:mfenced></m:math>&#160;nonbasic variables (all zero).  This is equivalent to partitioning the columns of the constraint matrix as <m:math>
 <m:mfenced><m:mtable>
  <m:mtr><m:mtd><m:mi>B</m:mi></m:mtd><m:mtd><m:mi>N</m:mi></m:mtd></m:mtr>
 </m:mtable></m:mfenced>
</m:math>, where <m:math><m:mi>B</m:mi></m:math>&#160;contains the <m:math><m:mi>m</m:mi></m:math>&#160;columns that correspond to the basic variables and <m:math><m:mi>N</m:mi></m:math>&#160;contains the <m:math><m:mfenced separators=""><m:mi>n</m:mi><m:mo>-</m:mo><m:mi>m</m:mi></m:mfenced></m:math>&#160;columns that correspond to the nonbasic variables.  Note that <m:math><m:mi>B</m:mi></m:math>&#160;is square and nonsingular.</div><div class="paramtext">The optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_maximize"><m:mi mathcolor="#800080;" mathvariant="bold">Maximize</m:mi></m:maction></m:math>&#160;may be used to specify an alternative problem in which <m:math><m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;is maximized.  If the objective function is nonlinear and all the constraints are linear, <m:math><m:mi>F</m:mi></m:math>&#160;is absent and the problem is said to be <span class="italic">linearly constrained</span>.  In general, the objective and constraint functions are <span class="italic">structured</span> in the sense that they are formed from sums of linear and nonlinear functions.  This structure can be exploited by the routine during the solution process as follows.</div><div class="paramtext">Consider the following nonlinear optimization problem with four variables (<m:math><m:mi>u</m:mi><m:mo>,</m:mo><m:mi>v</m:mi><m:mo>,</m:mo><m:mi>z</m:mi><m:mo>,</m:mo><m:mi>w</m:mi></m:math>):

<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>u</m:mi><m:mo>,</m:mo><m:mi>v</m:mi><m:mo>,</m:mo><m:mi>z</m:mi><m:mo>,</m:mo><m:mi>w</m:mi></m:mrow></m:munder><m:mspace width="0.25em"/><m:mtext>&#8195;</m:mtext><m:msup>
<m:mfenced separators=""><m:mi>u</m:mi><m:mo>+</m:mo><m:mi>v</m:mi><m:mo>+</m:mo><m:mi>z</m:mi></m:mfenced>
<m:mn>2</m:mn></m:msup><m:mo>+</m:mo><m:mn>3</m:mn><m:mi>z</m:mi><m:mo>+</m:mo><m:mn>5</m:mn><m:mi>w</m:mi>
</m:math></td><td class="formula2"/></tr></table></div>

subject to the constraints

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mtable>
 <m:mtr>
  <m:mtd><m:msup><m:mi>u</m:mi><m:mn>2</m:mn></m:msup><m:mo>+</m:mo><m:msup><m:mi>v</m:mi><m:mn>2</m:mn></m:msup><m:mo>+</m:mo><m:mi>z</m:mi> <m:mphantom><m:mo>+</m:mo><m:mi>w</m:mi></m:mphantom><m:mo>=</m:mo> <m:mn>2</m:mn></m:mtd>
 </m:mtr><m:mtr>
  <m:mtd><m:msup><m:mi>u</m:mi><m:mn>4</m:mn></m:msup><m:mo>+</m:mo><m:msup><m:mi>v</m:mi><m:mn>4</m:mn></m:msup> <m:mphantom><m:mo>+</m:mo><m:mi>z</m:mi></m:mphantom><m:mo>+</m:mo><m:mi>w</m:mi><m:mo>=</m:mo> <m:mn>4</m:mn></m:mtd>
 </m:mtr><m:mtr>
  <m:mtd><m:mn>2</m:mn><m:mi>u</m:mi><m:mo>+</m:mo> <m:mn>4</m:mn><m:mi>v</m:mi> <m:mphantom><m:mo>+</m:mo><m:mi>z</m:mi><m:mo>+</m:mo><m:mi>w</m:mi></m:mphantom><m:mo>&#8805;</m:mo> <m:mn>0</m:mn></m:mtd>
 </m:mtr>
</m:mtable>
</m:math></td><td class="formula2"/></tr></table></div>

and to the bounds

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mtable>
 <m:mtr>
  <m:mtd><m:mi>z</m:mi><m:mo>&#8805;</m:mo><m:mn>0</m:mn><m:mphantom><m:mtext>.</m:mtext></m:mphantom></m:mtd>
 </m:mtr><m:mtr>
  <m:mtd><m:mi>w</m:mi><m:mo>&#8805;</m:mo><m:mn>0</m:mn><m:mtext>.</m:mtext></m:mtd>
 </m:mtr>
</m:mtable>
</m:math></td><td class="formula2"/></tr></table></div>

This problem has several characteristics that can be exploited by the routine:
<table class="standard-100"><tr>
<td style="width:1.5em;" valign="baseline">&#8211;</td>
<td valign="top">the objective function is nonlinear.  It is the sum of a <span class="italic">nonlinear</span> function of the variables (<m:math><m:mi>u</m:mi><m:mo>,</m:mo><m:mi>v</m:mi><m:mo>,</m:mo><m:mi>z</m:mi></m:math>) and a <span class="italic">linear</span> function of the variables (<m:math><m:mi>z</m:mi><m:mo>,</m:mo><m:mi>w</m:mi></m:math>);</td>
</tr><tr>
<td style="width:1.5em;" valign="baseline">&#8211;</td>
<td valign="top">the first two constraints are nonlinear. The third is linear;</td>
</tr><tr>
<td style="width:1.5em;" valign="baseline">&#8211;</td>
<td valign="top">each nonlinear constraint function is the sum of a <span class="italic">nonlinear</span> function of the variables (<m:math><m:mi>u</m:mi><m:mo>,</m:mo><m:mi>v</m:mi></m:math>) and a <span class="italic">linear</span> function of the variables (<m:math><m:mi>z</m:mi><m:mo>,</m:mo><m:mi>w</m:mi></m:math>).</td>
</tr></table>
</div><div class="paramtext">The nonlinear terms are defined by <a class="arg" href="#OBJFUN">OBJFUN</a> and <a class="arg" href="#CONFUN">CONFUN</a> (see <a class="sec" href="#parameters">Section 5</a>), which involve only the appropriate subset of variables.</div><div class="paramtext">For the objective, we define the function <m:math><m:mi>f</m:mi><m:mfenced separators=""><m:mi>u</m:mi><m:mo>,</m:mo><m:mi>v</m:mi><m:mo>,</m:mo><m:mi>z</m:mi></m:mfenced><m:mo>=</m:mo><m:msup>
<m:mfenced separators=""><m:mi>u</m:mi><m:mo>+</m:mo><m:mi>v</m:mi><m:mo>+</m:mo><m:mi>z</m:mi></m:mfenced>
<m:mn>2</m:mn></m:msup></m:math>&#160;to include only the nonlinear part of the objective.  The three variables (<m:math><m:mi>u</m:mi><m:mo>,</m:mo><m:mi>v</m:mi><m:mo>,</m:mo><m:mi>z</m:mi></m:math>) associated with this function are known as the <span class="italic">nonlinear objective variables</span>.  The number of them is given by <a class="arg" href="#NONLN">NONLN</a> (see <a class="sec" href="#parameters">Section 5</a>) and they are the only variables needed in <a class="arg" href="#OBJFUN">OBJFUN</a>.  The linear part <m:math><m:mn>3</m:mn><m:mi>z</m:mi><m:mo>+</m:mo><m:mn>5</m:mn><m:mi>w</m:mi></m:math>&#160;of the objective is stored in row <a class="arg" href="#IOBJ">IOBJ</a> (see <a class="sec" href="#parameters">Section 5</a>) of the (constraint) Jacobian matrix <m:math><m:mi>A</m:mi></m:math>&#160;(see below).</div><div class="paramtext">Thus, if <m:math><m:msup><m:mi>x</m:mi><m:mo>&#8242;</m:mo></m:msup></m:math>&#160;and <m:math><m:msup><m:mi>y</m:mi><m:mo>&#8242;</m:mo></m:msup></m:math>&#160;denote the nonlinear and linear objective variables, respectively, the objective may be re-written in the form

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mi>f</m:mi><m:mfenced separators=""><m:msup><m:mi>x</m:mi><m:mo>&#8242;</m:mo></m:msup></m:mfenced><m:mo>+</m:mo><m:msup><m:mi>c</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:msup><m:mi>x</m:mi><m:mo>&#8242;</m:mo></m:msup><m:mo>+</m:mo><m:msup><m:mi>d</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:msup><m:mi>y</m:mi><m:mo>&#8242;</m:mo></m:msup><m:mtext>,</m:mtext>
</m:math></td><td class="formula2"/></tr></table></div>

where <m:math><m:mi>f</m:mi><m:mfenced separators=""><m:msup><m:mi>x</m:mi><m:mo>&#8242;</m:mo></m:msup></m:mfenced></m:math>&#160;is the nonlinear part of the objective and <m:math><m:mi>c</m:mi></m:math>&#160;and <m:math><m:mi>d</m:mi></m:math>&#160;are constant vectors that form a row of <m:math><m:mi>A</m:mi></m:math>.  In this example, <m:math><m:msup><m:mi>x</m:mi><m:mo>&#8242;</m:mo></m:msup><m:mo>=</m:mo><m:mfenced separators=""><m:mi>u</m:mi><m:mo>,</m:mo><m:mi>v</m:mi><m:mo>,</m:mo><m:mi>z</m:mi></m:mfenced></m:math>&#160;and <m:math><m:msup><m:mi>y</m:mi><m:mo>&#8242;</m:mo></m:msup><m:mo>=</m:mo><m:mi>w</m:mi></m:math>.</div><div class="paramtext">Similarly for the constraints, we define a vector function <m:math><m:mi>F</m:mi><m:mfenced separators=""><m:mi>u</m:mi><m:mo>,</m:mo><m:mi>v</m:mi></m:mfenced></m:math>&#160;to include just the nonlinear terms.  In this example, <m:math><m:msub><m:mi>F</m:mi><m:mn>1</m:mn></m:msub><m:mfenced separators=""><m:mi>u</m:mi><m:mo>,</m:mo><m:mi>v</m:mi></m:mfenced><m:mo>=</m:mo><m:msup><m:mi>u</m:mi><m:mn>2</m:mn></m:msup><m:mo>+</m:mo><m:msup><m:mi>v</m:mi><m:mn>2</m:mn></m:msup></m:math>&#160;and <m:math><m:msub><m:mi>F</m:mi><m:mn>2</m:mn></m:msub><m:mfenced separators=""><m:mi>u</m:mi><m:mo>,</m:mo><m:mi>v</m:mi></m:mfenced><m:mo>=</m:mo><m:msup><m:mi>u</m:mi><m:mn>4</m:mn></m:msup><m:mo>+</m:mo><m:msup><m:mi>v</m:mi><m:mn>4</m:mn></m:msup></m:math>, where the two variables (<m:math><m:mi>u</m:mi><m:mo>,</m:mo><m:mi>v</m:mi></m:math>) are known as the <span class="italic">nonlinear Jacobian variables</span>.  The number of them is given by <a class="arg" href="#NJNLN">NJNLN</a> (see <a class="sec" href="#parameters">Section 5</a>) and they are the only variables needed in <a class="arg" href="#CONFUN">CONFUN</a>.  Thus, if <m:math><m:msup><m:mi>x</m:mi><m:mrow><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo></m:mrow></m:msup></m:math>&#160;and <m:math><m:msup><m:mi>y</m:mi><m:mrow><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo></m:mrow></m:msup></m:math>&#160;denote the nonlinear and linear Jacobian variables, respectively, the constraint functions and the linear part of the objective have the form</div><div class="paramtext"><div class="formula-eqn"><a name="eqn3" id="eqn3"/><table class="formula-eqn"><tr><td class="formula-eqn"><m:math display="block">
 <m:mfenced><m:mtable>
  <m:mtr>
   <m:mtd><m:mi>F</m:mi><m:mfenced separators=""><m:msup><m:mi>x</m:mi><m:mrow><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo></m:mrow></m:msup></m:mfenced><m:mo>+</m:mo><m:msub><m:mi>A</m:mi><m:mn>2</m:mn></m:msub><m:msup><m:mi>y</m:mi><m:mrow><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo></m:mrow></m:msup></m:mtd>
  </m:mtr><m:mtr>
   <m:mtd><m:msub><m:mi>A</m:mi><m:mn>3</m:mn></m:msub><m:msup><m:mi>x</m:mi><m:mrow><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo></m:mrow></m:msup><m:mo>+</m:mo><m:msub><m:mi>A</m:mi><m:mn>4</m:mn></m:msub><m:msup><m:mi>y</m:mi><m:mrow><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo></m:mrow></m:msup></m:mtd>
  </m:mtr>
 </m:mtable></m:mfenced>
<m:mtext>,</m:mtext>
</m:math></td><td class="formula-eqn2">
      (3)
     </td></tr></table></div>

where <m:math><m:msup><m:mi>x</m:mi><m:mrow><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo></m:mrow></m:msup><m:mo>=</m:mo><m:mfenced separators=""><m:mi>u</m:mi><m:mo>,</m:mo><m:mi>v</m:mi></m:mfenced></m:math>&#160;and <m:math><m:msup><m:mi>y</m:mi><m:mrow><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo></m:mrow></m:msup><m:mo>=</m:mo><m:mfenced separators=""><m:mi>z</m:mi><m:mo>,</m:mo><m:mi>w</m:mi></m:mfenced></m:math>&#160;in this example.  This ensures that the Jacobian is of the form

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mi>A</m:mi><m:mo>=</m:mo>
 <m:mfenced><m:mtable>
  <m:mtr>
   <m:mtd><m:mi>J</m:mi><m:mfenced separators=""><m:msup><m:mi>x</m:mi><m:mrow><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo></m:mrow></m:msup></m:mfenced></m:mtd>
   <m:mtd><m:msub><m:mi>A</m:mi><m:mn>2</m:mn></m:msub></m:mtd>
  </m:mtr><m:mtr>
   <m:mtd><m:msub><m:mi>A</m:mi><m:mn>3</m:mn></m:msub></m:mtd>
   <m:mtd><m:msub><m:mi>A</m:mi><m:mn>4</m:mn></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:mi>J</m:mi><m:mfenced separators=""><m:msup><m:mi>x</m:mi><m:mrow><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo></m:mrow></m:msup></m:mfenced><m:mo>=</m:mo><m:mfrac other="display">
  <m:mrow><m:mo>&#8706;</m:mo><m:mi>F</m:mi><m:mfenced separators=""><m:msup><m:mi>x</m:mi><m:mrow><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo></m:mrow></m:msup></m:mfenced></m:mrow>
  <m:mrow><m:mo>&#8706;</m:mo><m:mi>x</m:mi></m:mrow>
 </m:mfrac>
</m:math>.  Note that <m:math><m:mi>J</m:mi><m:mfenced separators=""><m:msup><m:mi>x</m:mi><m:mrow><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo></m:mrow></m:msup></m:mfenced></m:math>&#160;<span class="italic">always</span> appears in the <span class="italic">top left-hand corner</span> of <m:math><m:mi>A</m:mi></m:math>.</div><div class="paramtext">The inequalities <m:math><m:msub><m:mi>l</m:mi><m:mn>1</m:mn></m:msub><m:mo>&#8804;</m:mo><m:mi>F</m:mi><m:mfenced separators=""><m:msup><m:mi>x</m:mi><m:mrow><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo></m:mrow></m:msup></m:mfenced><m:mo>+</m:mo><m:msub><m:mi>A</m:mi><m:mn>2</m:mn></m:msub><m:msup><m:mi>y</m:mi><m:mrow><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo></m:mrow></m:msup><m:mo>&#8804;</m:mo><m:msub><m:mi>u</m:mi><m:mn>1</m:mn></m:msub></m:math>&#160;and <m:math><m:msub><m:mi>l</m:mi><m:mn>2</m:mn></m:msub><m:mo>&#8804;</m:mo><m:msub><m:mi>A</m:mi><m:mn>3</m:mn></m:msub><m:msup><m:mi>x</m:mi><m:mrow><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo></m:mrow></m:msup><m:mo>+</m:mo><m:msub><m:mi>A</m:mi><m:mn>4</m:mn></m:msub><m:msup><m:mi>y</m:mi><m:mrow><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo></m:mrow></m:msup><m:mo>&#8804;</m:mo><m:msub><m:mi>u</m:mi><m:mn>2</m:mn></m:msub></m:math>&#160;implied by the constraint functions in <a class="eqn" href="#eqn3">(3)</a> are known as the <span class="italic">nonlinear</span> and <span class="italic">linear</span> constraints, respectively.  The nonlinear constraint vector <m:math><m:mi>F</m:mi><m:mfenced separators=""><m:msup><m:mi>x</m:mi><m:mrow><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo></m:mrow></m:msup></m:mfenced></m:math>&#160;in <a class="eqn" href="#eqn3">(3)</a> and (optionally) its partial derivative matrix <m:math><m:mi>J</m:mi><m:mfenced separators=""><m:msup><m:mi>x</m:mi><m:mrow><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo></m:mrow></m:msup></m:mfenced></m:math>&#160;are set in <a class="arg" href="#CONFUN">CONFUN</a>.  The matrices <m:math><m:msub><m:mi>A</m:mi><m:mn>2</m:mn></m:msub></m:math>, <m:math><m:msub><m:mi>A</m:mi><m:mn>3</m:mn></m:msub></m:math>&#160;and <m:math><m:msub><m:mi>A</m:mi><m:mn>4</m:mn></m:msub></m:math>&#160;contain any (constant) linear terms.  Along with the sparsity pattern of <m:math><m:mi>J</m:mi><m:mfenced separators=""><m:msup><m:mi>x</m:mi><m:mrow><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo></m:mrow></m:msup></m:mfenced></m:math>&#160;they are stored in the arrays <a class="arg" href="#A">A</a>, <a class="arg" href="#HA">HA</a> and <a class="arg" href="#KA">KA</a> (see <a class="sec" href="#parameters">Section 5</a>).</div><div class="paramtext">In general, the vectors <m:math><m:msup><m:mi>x</m:mi><m:mo>&#8242;</m:mo></m:msup></m:math>&#160;and <m:math><m:msup><m:mi>x</m:mi><m:mrow><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo></m:mrow></m:msup></m:math>&#160;have different dimensions, but they <span class="italic">always overlap</span>, in the sense that the shorter vector is always the beginning of the other.  In the above example, the nonlinear Jacobian variables <m:math><m:mfenced separators=""><m:mi>u</m:mi><m:mo>,</m:mo><m:mi>v</m:mi></m:mfenced></m:math>&#160;are an ordered subset of the nonlinear objective variables <m:math><m:mfenced separators=""><m:mi>u</m:mi><m:mo>,</m:mo><m:mi>v</m:mi><m:mo>,</m:mo><m:mi>z</m:mi></m:mfenced></m:math>.  In other cases it could be the other way round (whichever is the most convenient), but the first way keeps <m:math><m:mi>J</m:mi><m:mfenced separators=""><m:msup><m:mi>x</m:mi><m:mrow><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo></m:mrow></m:msup></m:mfenced></m:math>&#160;as small as possible.</div><div class="paramtext">Note that the nonlinear objective function <m:math><m:mi>f</m:mi><m:mfenced separators=""><m:msup><m:mi>x</m:mi><m:mo>&#8242;</m:mo></m:msup></m:mfenced></m:math>&#160;may involve either a subset or superset of the variables appearing in the nonlinear constraint functions <m:math><m:mi>F</m:mi><m:mfenced separators=""><m:msup><m:mi>x</m:mi><m:mrow><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo></m:mrow></m:msup></m:mfenced></m:math>.  Thus, <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NONLN"><m:mi mathcolor="#EE0000" mathvariant="bold">NONLN</m:mi></m:maction><m:mo>&#8804;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NJNLN"><m:mi mathcolor="#EE0000" mathvariant="bold">NJNLN</m:mi></m:maction></m:math>&#160;(or vice-versa).  Sometimes the objective and constraints really involve <span class="italic">disjoint sets of nonlinear variables</span>.  In such cases the variables should be ordered so that <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NONLN"><m:mi mathcolor="#EE0000" mathvariant="bold">NONLN</m:mi></m:maction><m:mo>&gt;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NJNLN"><m:mi mathcolor="#EE0000" mathvariant="bold">NJNLN</m:mi></m:maction></m:math>&#160;and <m:math><m:msup><m:mi>x</m:mi><m:mo>&#8242;</m:mo></m:msup><m:mo>=</m:mo><m:mfenced separators=""><m:msup><m:mi>x</m:mi><m:mrow><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo></m:mrow></m:msup><m:mo>,</m:mo><m:msup><m:mi>x</m:mi><m:mrow><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo></m:mrow></m:msup></m:mfenced></m:math>, where the objective is nonlinear in just the last vector <m:math><m:msup><m:mi>x</m:mi><m:mrow><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo></m:mrow></m:msup></m:math>.  The first <a class="arg" href="#NJNLN">NJNLN</a> elements of the gradient array <a class="arg" href="../E04/e04ugf.xml#OBJFUN_OBJGRD">OBJGRD</a> should also be set to zero in <a class="arg" href="#OBJFUN">OBJFUN</a>.  This is illustrated in <a class="sec" href="#example">Section 9</a>.</div><div class="paramtext">If all elements of the constraint Jacobian are known (i.e., the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_derivativelevel"><m:mi mathcolor="#800080;" mathvariant="bold">Derivative Level</m:mi></m:maction><m:mo>=</m:mo><m:mn>2</m:mn><m:mtext>&#8203; or &#8203;</m:mtext><m:mn>3</m:mn></m:math>), any constant elements may be assigned their correct values in <a class="arg" href="#A">A</a>, <a class="arg" href="#HA">HA</a> and <a class="arg" href="#KA">KA</a>.  The corresponding elements of the constraint Jacobian array <a class="arg" href="../E04/e04ugf.xml#CONFUN_FJAC">FJAC</a> need not be reset in <a class="arg" href="#CONFUN">CONFUN</a>.  This includes values that are identically zero as constraint Jacobian elements are assumed to be zero unless specified otherwise.  It must be emphasised that, if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_derivativelevel"><m:mi mathcolor="#800080;" mathvariant="bold">Derivative Level</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn><m:mtext>&#8203; or &#8203;</m:mtext><m:mn>1</m:mn></m:math>, unassigned elements of <a class="arg" href="../E04/e04ugf.xml#CONFUN_FJAC">FJAC</a> are <span class="italic">not</span> treated as constant; they are estimated by finite differences, at nontrivial expense.</div><div class="paramtext">If there are no nonlinear constraints in <a class="eqn" href="#eqn1">(1)</a> and <m:math><m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;is linear or quadratic, then it may be more efficient to use <a class="rout" href="../E04/e04nqf.xml">E04NQF</a> to solve the resulting linear or quadratic programming problem, or one of <a class="rout" href="../E04/e04mff.xml">E04MFF/E04MFA</a>, <a class="rout" href="../E04/e04ncf.xml">E04NCF/E04NCA</a> or <a class="rout" href="../E04/e04nff.xml">E04NFF/E04NFA</a> if <m:math><m:mi>G</m:mi></m:math>&#160;is a <span class="italic">dense</span> matrix.  If the problem is dense and does have nonlinear constraints then one of <a class="rout" href="../E04/e04uff.xml">E04UFF/E04UFA</a>, <a class="rout" href="../E04/e04usf.xml">E04USF/E04USA</a> or <a class="rout" href="../E04/e04wdf.xml">E04WDF</a> (as appropriate) should be used instead.</div><div class="paramtext">You must supply an initial estimate of the solution to <a class="eqn" href="#eqn1">(1)</a>, together with versions of <a class="arg" href="#OBJFUN">OBJFUN</a> and <a class="arg" href="#CONFUN">CONFUN</a> that define <m:math><m:mi>f</m:mi><m:mfenced separators=""><m:msup><m:mi>x</m:mi><m:mo>&#8242;</m:mo></m:msup></m:mfenced></m:math>&#160;and <m:math><m:mi>F</m:mi><m:mfenced separators=""><m:msup><m:mi>x</m:mi><m:mrow><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo></m:mrow></m:msup></m:mfenced></m:math>, respectively, and as many first partial derivatives as possible.  Note that if there are any nonlinear constraints, then the <span class="italic">first</span> call to <a class="arg" href="#CONFUN">CONFUN</a> will precede the <span class="italic">first</span> call to <a class="arg" href="#OBJFUN">OBJFUN</a>.</div><div class="paramtext">E04UGF/E04UGA is based on the SNOPT package described in <a class="ref" href="#ref658">Gill <span class="italic">et al.</span> (2002)</a>, which in turn utilizes routines from the MINOS package (see <a class="ref" href="#ref663">Murtagh and Saunders (1995)</a>).  It incorporates a sequential quadratic programming (SQP) method that obtains search directions from a sequence of quadratic programming (QP) subproblems.  Each QP subproblem minimizes a quadratic model of a certain Lagrangian function subject to a linearization of the constraints.  An augmented Lagrangian merit function is reduced along each search direction to ensure convergence from any starting point.  Further details can be found in <a class="sec" href="#algdetails">Section 10</a>.</div><div class="paramtext">Throughout this document the symbol <m:math><m:mi>&#949;</m:mi></m:math>&#160;is used to represent the <span class="bitalic">machine precision</span> (see <a class="rout" href="../X02/x02ajf.xml">X02AJF</a>).</div><h2 class="standard"><a class="sec" name="references" id="references"/>4&#160;&#160;References</h2><div class="paramtext"><a name="ref659" id="ref659"/>Conn A R (1973)  Constrained optimization using a nondifferentiable penalty function <i>SIAM J. Numer. Anal.</i> <b>10</b> 760&#8211;779 </div>
<div class="paramtext"><a name="ref660" id="ref660"/>Eldersveld S K (1991)  Large-scale sequential quadratic programming algorithms <i>PhD Thesis</i> Department of Operations Research, Stanford University, Stanford </div>
<div class="paramtext"><a name="ref661" id="ref661"/>Fletcher R (1984)  An <m:math><m:msub><m:mi>l</m:mi><m:mn>1</m:mn></m:msub></m:math>&#160;penalty method for nonlinear constraints <i>Numerical Optimization 1984</i> (eds P T Boggs, R H Byrd and R B Schnabel) 26&#8211;40 SIAM Philadelphia </div>
<div class="paramtext"><a name="ref662" id="ref662"/>Fourer R (1982)  Solving staircase linear programs by the simplex method <i>Math. Programming</i> <b>23</b> 274&#8211;313 </div>
<div class="paramtext"><a name="ref658" id="ref658"/>Gill P E, Murray W and Saunders M A (2002)  <i>SNOPT: An SQP Algorithm for Large-scale Constrained Optimization</i> <b>12</b> 979&#8211;1006 SIAM J. Optim. </div>
<div class="paramtext"><a name="ref540" id="ref540"/>Gill P E, Murray W, Saunders M A and Wright M H (1986)  Users' guide for NPSOL (Version 4.0): a Fortran package for nonlinear programming <i>Report SOL 86-2</i> Department of Operations Research, Stanford University </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="ref657" id="ref657"/>Gill P E, Murray W, Saunders M A and Wright M H (1992)  Some theoretical properties of an augmented Lagrangian merit function <i>Advances in Optimization and Parallel Computing</i> (ed P M Pardalos) 101&#8211;128 North Holland </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="ref093" id="ref093"/>Hock W and Schittkowski K (1981)  <i>Test Examples for Nonlinear Programming Codes. Lecture Notes in Economics and Mathematical Systems</i> <b>187</b> Springer&#8211;Verlag </div>
<div class="paramtext"><a name="ref663" id="ref663"/>Murtagh B A and Saunders M A (1995)  MINOS 5.4 Users' Guide <i>Report SOL 83-20R</i> Department of Operations Research, Stanford University </div>
<div class="paramtext"><a name="ref197" id="ref197"/>Ortega J M and Rheinboldt W C (1970)  <i>Iterative Solution of Nonlinear Equations in Several Variables</i> Academic Press </div>
<div class="paramtext"><a name="ref096" id="ref096"/>Powell M J D (1974)  Introduction to constrained optimization <i>Numerical Methods for Constrained Optimization</i> (eds P E Gill and W Murray) 1&#8211;28 Academic Press </div><h2 class="standard"><a class="sec" name="parameters" id="parameters"/>5&#160;&#160;Parameters</h2>
<dl><dt class="paramhead"><a name="CONFUN" id="CONFUN"/>1: &#160;&#160;&#8194; CONFUN &#8211; SUBROUTINE, supplied by the NAG Library or the user.<span class="pclass">External Procedure</span></dt><dd><div class="paramtext"><a class="arg" href="#CONFUN">CONFUN</a> must calculate the vector <m:math><m:mi>F</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;of nonlinear constraint functions and (optionally) its Jacobian <m:math> <m:mfenced separators=""><m:mo>=</m:mo><m:mfrac other="display">
  <m:mrow><m:mo>&#8706;</m:mo><m:mi>F</m:mi></m:mrow>
  <m:mrow><m:mo>&#8706;</m:mo><m:mi>x</m:mi></m:mrow>
 </m:mfrac></m:mfenced> </m:math>&#160;for a specified <m:math><m:msubsup><m:mi>n</m:mi><m:mn>1</m:mn><m:mrow><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo></m:mrow></m:msubsup></m:math>&#160;(<m:math><m:mtext/><m:mo>&#8804;</m:mo><m:mi>n</m:mi></m:math>) element vector <m:math><m:mi>x</m:mi></m:math>.  If there are no nonlinear constraints (i.e., <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#CONFUN_NCNLN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCNLN</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math>), <a class="arg" href="#CONFUN">CONFUN</a> will never be called by E04UGF/E04UGA and <a class="arg" href="#CONFUN">CONFUN</a> may be the dummy routine E04UGM.  (E04UGM is included in the NAG Library.) If there are nonlinear constraints, the first call to <a class="arg" href="#CONFUN">CONFUN</a> will occur before the first call to <a class="arg" href="#OBJFUN">OBJFUN</a>.</div><div class="subprog">
<div class="paramtext">The specification of <a class="arg" href="#CONFUN">CONFUN</a> is:</div><table class="fspec"><tr><td class="tdfspec1">SUBROUTINE&#160;CONFUN&#160;(</td><td class="tdfspec2"><a class="arg" href="../E04/e04ugf.xml#CONFUN_MODE">MODE</a>, <a class="arg" href="../E04/e04ugf.xml#CONFUN_NCNLN">NCNLN</a>, <a class="arg" href="../E04/e04ugf.xml#CONFUN_NJNLN">NJNLN</a>, <a class="arg" href="../E04/e04ugf.xml#CONFUN_NNZJAC">NNZJAC</a>, <a class="arg" href="../E04/e04ugf.xml#CONFUN_X">X</a>, <a class="arg" href="../E04/e04ugf.xml#CONFUN_F">F</a>, <a class="arg" href="../E04/e04ugf.xml#CONFUN_FJAC">FJAC</a>, <a class="arg" href="../E04/e04ugf.xml#CONFUN_NSTATE">NSTATE</a>, <a class="arg" href="../E04/e04ugf.xml#CONFUN_IUSER">IUSER</a>, <a class="arg" href="../E04/e04ugf.xml#CONFUN_RUSER">RUSER</a>)</td></tr><tr><td class="tdfspec1">INTEGER</td><td class="tdfspec2">MODE, NCNLN, NJNLN, NNZJAC, NSTATE, IUSER(*)</td></tr><tr><td class="tdfspec1"><b><i>double&#160;precision</i></b></td><td class="tdfspec2">X(NJNLN), F(NCNLN), FJAC(NNZJAC), RUSER(*)</td></tr></table>
<dl><dt class="paramhead"><a name="CONFUN_MODE" id="CONFUN_MODE"/>1: &#160;&#160;&#8194; MODE &#8211; INTEGER<span class="pclass">Input/Output</span></dt><dd><div class="paramtext"><i>On entry</i>: indicates which values must be assigned during each call of <a class="arg" href="#CONFUN">CONFUN</a>.  Only the following values need be assigned:

<dl>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#CONFUN_MODE"><m:mi mathcolor="#EE0000" mathvariant="bold">MODE</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math></dt>
<dd><a class="arg" href="../E04/e04ugf.xml#CONFUN_F">F</a>.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#CONFUN_MODE"><m:mi mathcolor="#EE0000" mathvariant="bold">MODE</m:mi></m:maction><m:mo>=</m:mo><m:mn>1</m:mn></m:math></dt>
<dd>All available elements of <a class="arg" href="../E04/e04ugf.xml#CONFUN_FJAC">FJAC</a>.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#CONFUN_MODE"><m:mi mathcolor="#EE0000" mathvariant="bold">MODE</m:mi></m:maction><m:mo>=</m:mo><m:mn>2</m:mn></m:math></dt>
<dd><a class="arg" href="../E04/e04ugf.xml#CONFUN_F">F</a> and all available elements of <a class="arg" href="../E04/e04ugf.xml#CONFUN_FJAC">FJAC</a>.</dd></dl>
</div>
<div class="paramtext"><i>On exit</i>: you may set to a negative value as follows:

<dl>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#CONFUN_MODE"><m:mi mathcolor="#EE0000" mathvariant="bold">MODE</m:mi></m:maction><m:mo>&#8804;</m:mo><m:mrow><m:mo>-</m:mo><m:mn>2</m:mn></m:mrow></m:math></dt>
<dd>The solution to the current problem is terminated and in this case E04UGF/E04UGA will terminate with <a class="arg" href="#IFAIL">IFAIL</a> set to <a class="arg" href="../E04/e04ugf.xml#CONFUN_MODE">MODE</a>.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#CONFUN_MODE"><m:mi mathcolor="#EE0000" mathvariant="bold">MODE</m:mi></m:maction><m:mo>=</m:mo><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow></m:math></dt>
<dd>The nonlinear constraint functions cannot be calculated at the current <m:math><m:mi>x</m:mi></m:math>.  E04UGF/E04UGA 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="#errors"><m:mn mathcolor="#003399" mathvariant="bold">-1</m:mn></m:maction></m:math>&#160;unless this occurs during the linesearch; in this case, the linesearch will shorten the step and try again.</dd></dl>
</div></dd><dt class="paramhead"><a name="CONFUN_NCNLN" id="CONFUN_NCNLN"/>2: &#160;&#160;&#8194; NCNLN &#8211; INTEGER<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: <m:math><m:msub><m:mi>n</m:mi><m:mi>N</m:mi></m:msub></m:math>, the number of nonlinear constraints.  These must be the first <a class="arg" href="../E04/e04ugf.xml#CONFUN_NCNLN">NCNLN</a> constraints in the problem.</div></dd><dt class="paramhead"><a name="CONFUN_NJNLN" id="CONFUN_NJNLN"/>3: &#160;&#160;&#8194; NJNLN &#8211; INTEGER<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: <m:math><m:msubsup><m:mi>n</m:mi><m:mn>1</m:mn><m:mrow><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo></m:mrow></m:msubsup></m:math>, the number of nonlinear variables.  These must be the first <a class="arg" href="../E04/e04ugf.xml#CONFUN_NJNLN">NJNLN</a> variables in the problem.</div></dd><dt class="paramhead"><a name="CONFUN_NNZJAC" id="CONFUN_NNZJAC"/>4: &#160;&#160;&#8194; NNZJAC &#8211; INTEGER<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: the number of nonzero elements in the constraint Jacobian.  Note that <a class="arg" href="../E04/e04ugf.xml#CONFUN_NNZJAC">NNZJAC</a> will usually be less than <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#CONFUN_NCNLN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCNLN</m:mi></m:maction><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#CONFUN_NJNLN"><m:mi mathcolor="#EE0000" mathvariant="bold">NJNLN</m:mi></m:maction></m:math>.</div></dd><dt class="paramhead"><a name="CONFUN_X" id="CONFUN_X"/>5: &#160;&#160;&#8194; X(<a class="arg" href="../E04/e04ugf.xml#CONFUN_NJNLN">NJNLN</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: <m:math><m:mi>x</m:mi></m:math>, the vector of nonlinear Jacobian variables at which the nonlinear constraint functions and/or the available elements of the constraint Jacobian are to be evaluated.</div></dd><dt class="paramhead"><a name="CONFUN_F" id="CONFUN_F"/>6: &#160;&#160;&#8194; F(<a class="arg" href="../E04/e04ugf.xml#CONFUN_NCNLN">NCNLN</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Output</span></dt><dd><div class="paramtext"><i>On exit</i>: if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#CONFUN_MODE"><m:mi mathcolor="#EE0000" mathvariant="bold">MODE</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math>&#160;or <m:math><m:mn>2</m:mn></m:math>, <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#CONFUN_F"><m:mi mathcolor="#EE0000" mathvariant="bold">F</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow></m:math>&#160;must contain the value of the <m:math><m:mi>i</m:mi></m:math>th nonlinear constraint function at <m:math><m:mi>x</m:mi></m:math>.</div></dd><dt class="paramhead"><a name="CONFUN_FJAC" id="CONFUN_FJAC"/>7: &#160;&#160;&#8194; FJAC(<a class="arg" href="../E04/e04ugf.xml#CONFUN_NNZJAC">NNZJAC</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input/Output</span></dt><dd>
<div class="paramtext"><i>On entry</i>: the elements of <a class="arg" href="../E04/e04ugf.xml#CONFUN_FJAC">FJAC</a> are set to special values which enable E04UGF/E04UGA to detect whether they are changed by <a class="arg" href="#CONFUN">CONFUN</a>.</div>
<div class="paramtext"><i>On exit</i>: if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#CONFUN_MODE"><m:mi mathcolor="#EE0000" mathvariant="bold">MODE</m:mi></m:maction><m:mo>=</m:mo><m:mn>1</m:mn></m:math>&#160;or <m:math><m:mn>2</m:mn></m:math>, <a class="arg" href="../E04/e04ugf.xml#CONFUN_FJAC">FJAC</a> must return the available elements of the constraint Jacobian evaluated at <m:math><m:mi>x</m:mi></m:math>.  These elements must be stored in exactly the same positions as implied by the definitions of the arrays <a class="arg" href="#A">A</a>, <a class="arg" href="#HA">HA</a> and <a class="arg" href="#KA">KA</a>.  If optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_derivativelevel"><m:mi mathcolor="#800080;" mathvariant="bold">Derivative Level</m:mi></m:maction><m:mo>=</m:mo><m:mn>2</m:mn><m:mtext>&#8203; or &#8203;</m:mtext><m:mn>3</m:mn></m:math>, the value of any constant Jacobian element not defined by <a class="arg" href="#CONFUN">CONFUN</a> will be obtained directly from <a class="arg" href="#A">A</a>.  Note that the routine does not perform any internal checks for consistency (except indirectly via the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_verifylevel"><m:mi mathcolor="#800080;" mathvariant="bold">Verify Level</m:mi></m:maction></m:math>), so great care is essential.</div></dd><dt class="paramhead"><a name="CONFUN_NSTATE" id="CONFUN_NSTATE"/>8: &#160;&#160;&#8194; NSTATE &#8211; INTEGER<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#CONFUN_NSTATE"><m:mi mathcolor="#EE0000" mathvariant="bold">NSTATE</m:mi></m:maction><m:mo>=</m:mo><m:mn>1</m:mn></m:math>, then E04UGF/E04UGA is calling <a class="arg" href="#CONFUN">CONFUN</a> for the first time.  This parameter setting allows you to save computation time if certain data must be read or calculated only once.  
<div class="paramtext">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#CONFUN_NSTATE"><m:mi mathcolor="#EE0000" mathvariant="bold">NSTATE</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>2</m:mn></m:math>, then E04UGF/E04UGA is calling <a class="arg" href="#CONFUN">CONFUN</a> for the last time.  This parameter setting allows you to perform some additional computation on the final solution.  In general, the last call to <a class="arg" href="#CONFUN">CONFUN</a> is made with <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#CONFUN_NSTATE"><m:mi mathcolor="#EE0000" mathvariant="bold">NSTATE</m:mi></m:maction><m:mo>=</m:mo><m:mn>2</m:mn><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction></m:math>&#160;(see <a class="sec" href="#errors">Section 6</a>).</div>
<div class="paramtext">Otherwise, <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#CONFUN_NSTATE"><m:mi mathcolor="#EE0000" mathvariant="bold">NSTATE</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math>.</div>
</div></dd><dt class="paramhead"><a name="CONFUN_IUSER" id="CONFUN_IUSER"/>9: &#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="CONFUN_RUSER" id="CONFUN_RUSER"/>10: &#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="#CONFUN">CONFUN</a> is called from E04UGF/E04UGA with the parameters <a class="arg" href="../E04/e04ugf.xml#CONFUN_IUSER">IUSER</a> and <a class="arg" href="../E04/e04ugf.xml#CONFUN_RUSER">RUSER</a> as supplied to E04UGF/E04UGA.  You are free to use the arrays <a class="arg" href="../E04/e04ugf.xml#CONFUN_IUSER">IUSER</a> and <a class="arg" href="../E04/e04ugf.xml#CONFUN_RUSER">RUSER</a> to supply information to <a class="arg" href="#CONFUN">CONFUN</a> as an alternative to using COMMON global variables.</div></dd></dl>
</div>
<div class="paramtext"><a class="arg" href="#CONFUN">CONFUN</a> must be declared as EXTERNAL in the (sub)program from which E04UGF/E04UGA 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="OBJFUN" id="OBJFUN"/>2: &#160;&#160;&#8194; OBJFUN &#8211; SUBROUTINE, supplied by the NAG Library or the user.<span class="pclass">External Procedure</span></dt><dd><div class="paramtext"><a class="arg" href="#OBJFUN">OBJFUN</a> must calculate the nonlinear part of the objective function <m:math><m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;and (optionally) its gradient <m:math> <m:mfenced separators=""><m:mo>=</m:mo><m:mfrac other="display">
  <m:mrow><m:mo>&#8706;</m:mo><m:mi>f</m:mi></m:mrow>
  <m:mrow><m:mo>&#8706;</m:mo><m:mi>x</m:mi></m:mrow>
 </m:mfrac></m:mfenced> </m:math>&#160;for a specified <m:math><m:msubsup><m:mi>n</m:mi><m:mn>1</m:mn><m:mo>&#8242;</m:mo></m:msubsup></m:math>&#160;(<m:math><m:mtext/><m:mo>&#8804;</m:mo><m:mi>n</m:mi></m:math>) element vector <m:math><m:mi>x</m:mi></m:math>.  If there are no nonlinear objective variables (i.e., <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#OBJFUN_NONLN"><m:mi mathcolor="#EE0000" mathvariant="bold">NONLN</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math>), <a class="arg" href="#OBJFUN">OBJFUN</a> will never be called by E04UGF/E04UGA and <a class="arg" href="#OBJFUN">OBJFUN</a> may be the dummy routine E04UGN.  (E04UGN is included in the NAG Library.)</div><div class="subprog">
<div class="paramtext">The specification of <a class="arg" href="#OBJFUN">OBJFUN</a> is:</div><table class="fspec"><tr><td class="tdfspec1">SUBROUTINE&#160;OBJFUN&#160;(</td><td class="tdfspec2"><a class="arg" href="../E04/e04ugf.xml#OBJFUN_MODE">MODE</a>, <a class="arg" href="../E04/e04ugf.xml#OBJFUN_NONLN">NONLN</a>, <a class="arg" href="../E04/e04ugf.xml#OBJFUN_X">X</a>, <a class="arg" href="../E04/e04ugf.xml#OBJFUN_OBJF">OBJF</a>, <a class="arg" href="../E04/e04ugf.xml#OBJFUN_OBJGRD">OBJGRD</a>, <a class="arg" href="../E04/e04ugf.xml#OBJFUN_NSTATE">NSTATE</a>, <a class="arg" href="../E04/e04ugf.xml#OBJFUN_IUSER">IUSER</a>, <a class="arg" href="../E04/e04ugf.xml#OBJFUN_RUSER">RUSER</a>)</td></tr><tr><td class="tdfspec1">INTEGER</td><td class="tdfspec2">MODE, NONLN, NSTATE, IUSER(*)</td></tr><tr><td class="tdfspec1"><b><i>double&#160;precision</i></b></td><td class="tdfspec2">X(NONLN), OBJF, OBJGRD(NONLN), RUSER(*)</td></tr></table>
<dl><dt class="paramhead"><a name="OBJFUN_MODE" id="OBJFUN_MODE"/>1: &#160;&#160;&#8194; MODE &#8211; INTEGER<span class="pclass">Input/Output</span></dt><dd><div class="paramtext"><i>On entry</i>: indicates which values must be assigned during each call of <a class="arg" href="#OBJFUN">OBJFUN</a>.  Only the following values need be assigned:

<dl>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#OBJFUN_MODE"><m:mi mathcolor="#EE0000" mathvariant="bold">MODE</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math></dt>
<dd><a class="arg" href="../E04/e04ugf.xml#OBJFUN_OBJF">OBJF</a>.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#OBJFUN_MODE"><m:mi mathcolor="#EE0000" mathvariant="bold">MODE</m:mi></m:maction><m:mo>=</m:mo><m:mn>1</m:mn></m:math></dt>
<dd>All available elements of <a class="arg" href="../E04/e04ugf.xml#OBJFUN_OBJGRD">OBJGRD</a>.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#OBJFUN_MODE"><m:mi mathcolor="#EE0000" mathvariant="bold">MODE</m:mi></m:maction><m:mo>=</m:mo><m:mn>2</m:mn></m:math></dt>
<dd><a class="arg" href="../E04/e04ugf.xml#OBJFUN_OBJF">OBJF</a> and all available elements of <a class="arg" href="../E04/e04ugf.xml#OBJFUN_OBJGRD">OBJGRD</a>.</dd></dl>
</div>
<div class="paramtext"><i>On exit</i>: you may set to a negative value as follows:

<dl>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#OBJFUN_MODE"><m:mi mathcolor="#EE0000" mathvariant="bold">MODE</m:mi></m:maction><m:mo>&#8804;</m:mo><m:mrow><m:mo>-</m:mo><m:mn>2</m:mn></m:mrow></m:math></dt>
<dd>The solution to the current problem is terminated and in this case E04UGF/E04UGA will terminate with <a class="arg" href="#IFAIL">IFAIL</a> set to <a class="arg" href="../E04/e04ugf.xml#OBJFUN_MODE">MODE</a>.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#OBJFUN_MODE"><m:mi mathcolor="#EE0000" mathvariant="bold">MODE</m:mi></m:maction><m:mo>=</m:mo><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow></m:math></dt>
<dd>The nonlinear part of the objective function cannot be calculated at the current <m:math><m:mi>x</m:mi></m:math>.  E04UGF/E04UGA 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="#errors"><m:mn mathcolor="#003399" mathvariant="bold">-1</m:mn></m:maction></m:math>&#160;unless this occurs during the linesearch; in this case, the linesearch will shorten the step and try again.</dd></dl>
</div></dd><dt class="paramhead"><a name="OBJFUN_NONLN" id="OBJFUN_NONLN"/>2: &#160;&#160;&#8194; NONLN &#8211; INTEGER<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: <m:math><m:msubsup><m:mi>n</m:mi><m:mn>1</m:mn><m:mo>&#8242;</m:mo></m:msubsup></m:math>, the number of nonlinear objective variables.  These must be the first <a class="arg" href="../E04/e04ugf.xml#OBJFUN_NONLN">NONLN</a> variables in the problem.</div></dd><dt class="paramhead"><a name="OBJFUN_X" id="OBJFUN_X"/>3: &#160;&#160;&#8194; X(<a class="arg" href="../E04/e04ugf.xml#OBJFUN_NONLN">NONLN</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: <m:math><m:mi>x</m:mi></m:math>, the vector of nonlinear variables at which the nonlinear part of the objective function and/or all available elements of its gradient are to be evaluated.</div></dd><dt class="paramhead"><a name="OBJFUN_OBJF" id="OBJFUN_OBJF"/>4: &#160;&#160;&#8194; OBJF &#8211; <span class="bitalic">double precision</span><span class="pclass">Output</span></dt><dd><div class="paramtext"><i>On exit</i>: if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#OBJFUN_MODE"><m:mi mathcolor="#EE0000" mathvariant="bold">MODE</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math>&#160;or <m:math><m:mn>2</m:mn></m:math>, <a class="arg" href="../E04/e04ugf.xml#OBJFUN_OBJF">OBJF</a> must be set to the value of the objective function at <m:math><m:mi>x</m:mi></m:math>.</div></dd><dt class="paramhead"><a name="OBJFUN_OBJGRD" id="OBJFUN_OBJGRD"/>5: &#160;&#160;&#8194; OBJGRD(<a class="arg" href="../E04/e04ugf.xml#OBJFUN_NONLN">NONLN</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input/Output</span></dt><dd><div class="paramtext"><i>On entry</i>: the elements of <a class="arg" href="../E04/e04ugf.xml#OBJFUN_OBJGRD">OBJGRD</a> are set to special values which enable E04UGF/E04UGA to detect whether they are changed by <a class="arg" href="#OBJFUN">OBJFUN</a>.</div>
<div class="paramtext"><i>On exit</i>: if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#OBJFUN_MODE"><m:mi mathcolor="#EE0000" mathvariant="bold">MODE</m:mi></m:maction><m:mo>=</m:mo><m:mn>1</m:mn></m:math>&#160;or <m:math><m:mn>2</m:mn></m:math>, <a class="arg" href="../E04/e04ugf.xml#OBJFUN_OBJGRD">OBJGRD</a> must return the available elements of the gradient evaluated at <m:math><m:mi>x</m:mi></m:math>.</div></dd><dt class="paramhead"><a name="OBJFUN_NSTATE" id="OBJFUN_NSTATE"/>6: &#160;&#160;&#8194; NSTATE &#8211; INTEGER<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#OBJFUN_NSTATE"><m:mi mathcolor="#EE0000" mathvariant="bold">NSTATE</m:mi></m:maction><m:mo>=</m:mo><m:mn>1</m:mn></m:math>, E04UGF/E04UGA is calling <a class="arg" href="#OBJFUN">OBJFUN</a> for the first time.  This parameter setting allows you to save computation time if certain data must be read or calculated only once.  
<div class="paramtext">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#OBJFUN_NSTATE"><m:mi mathcolor="#EE0000" mathvariant="bold">NSTATE</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>2</m:mn></m:math>, E04UGF/E04UGA is calling <a class="arg" href="#OBJFUN">OBJFUN</a> for the last time.  This parameter setting allows you to perform some additional computation on the final solution.  In general, the last call to <a class="arg" href="#OBJFUN">OBJFUN</a> is made with <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#OBJFUN_NSTATE"><m:mi mathcolor="#EE0000" mathvariant="bold">NSTATE</m:mi></m:maction><m:mo>=</m:mo><m:mn>2</m:mn><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction></m:math>&#160;(see <a class="sec" href="#errors">Section 6</a>).</div>
<div class="paramtext">Otherwise, <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#OBJFUN_NSTATE"><m:mi mathcolor="#EE0000" mathvariant="bold">NSTATE</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math>.</div></div></dd><dt class="paramhead"><a name="OBJFUN_IUSER" id="OBJFUN_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="OBJFUN_RUSER" id="OBJFUN_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="#OBJFUN">OBJFUN</a> is called from E04UGF/E04UGA with the parameters <a class="arg" href="../E04/e04ugf.xml#OBJFUN_IUSER">IUSER</a> and <a class="arg" href="../E04/e04ugf.xml#OBJFUN_RUSER">RUSER</a> as supplied to E04UGF/E04UGA.  You are free to use the arrays <a class="arg" href="../E04/e04ugf.xml#OBJFUN_IUSER">IUSER</a> and <a class="arg" href="../E04/e04ugf.xml#OBJFUN_RUSER">RUSER</a> to supply information to <a class="arg" href="#OBJFUN">OBJFUN</a> as an alternative to using COMMON global variables.</div>
</dd></dl>
</div>
<div class="paramtext"><a class="arg" href="#OBJFUN">OBJFUN</a> must be declared as EXTERNAL in the (sub)program from which E04UGF/E04UGA 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="N" id="N"/>3: &#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 (excluding slacks).  This is the number of columns in the full Jacobian matrix <m:math><m:mi>A</m:mi></m:math>.</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>&#8805;</m:mo><m:mn>1</m:mn></m:math>.
</div></dd><dt class="paramhead"><a name="M" id="M"/>4: &#160;&#160;&#8194; M &#8211; INTEGER<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: <m:math><m:mi>m</m:mi></m:math>, the number of general constraints (or slacks).  This is the number of rows in <m:math><m:mi>A</m:mi></m:math>, including the free row (if any; see <a class="arg" href="#IOBJ">IOBJ</a>).  Note that <m:math><m:mi>A</m:mi></m:math>&#160;must contain at least one row.  If your problem has no constraints, or only upper and lower bounds on the variables, then you must include a dummy &#8216;free&#8217; row consisting of a single (zero) element subject to &#8216;infinite&#8217; upper and lower bounds.  Further details can be found under the descriptions for <a class="arg" href="#IOBJ">IOBJ</a>, <a class="arg" href="#NNZ">NNZ</a>, <a class="arg" href="#A">A</a>, <a class="arg" href="#HA">HA</a>, <a class="arg" href="#KA">KA</a>, <a class="arg" href="#BL">BL</a> and <a class="arg" href="#BU">BU</a>.</div><div class="paramtext"><i>Constraint</i>:
  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>1</m:mn></m:math>.
</div></dd><dt class="paramhead"><a name="NCNLN" id="NCNLN"/>5: &#160;&#160;&#8194; NCNLN &#8211; INTEGER<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: <m:math><m:msub><m:mi>n</m:mi><m:mi>N</m:mi></m:msub></m:math>, the number of nonlinear constraints.</div><div class="paramtext"><i>Constraint</i>:
  <m:math><m:mn>0</m:mn><m:mo>&#8804;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCNLN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCNLN</m:mi></m:maction><m:mo>&#8804;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction></m:math>.
</div></dd><dt class="paramhead"><a name="NONLN" id="NONLN"/>6: &#160;&#160;&#8194; NONLN &#8211; INTEGER<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: <m:math><m:msubsup><m:mi>n</m:mi><m:mn>1</m:mn><m:mo>&#8242;</m:mo></m:msubsup></m:math>, the number of nonlinear objective variables.  If the objective function is nonlinear, the leading <m:math><m:msubsup><m:mi>n</m:mi><m:mn>1</m:mn><m:mo>&#8242;</m:mo></m:msubsup></m:math>&#160;columns of <m:math><m:mi>A</m:mi></m:math>&#160;belong to the nonlinear objective variables.  (See also the description for <a class="arg" href="#NJNLN">NJNLN</a>.)</div><div class="paramtext"><i>Constraint</i>:
  <m:math><m:mn>0</m:mn><m:mo>&#8804;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NONLN"><m:mi mathcolor="#EE0000" mathvariant="bold">NONLN</m:mi></m:maction><m:mo>&#8804;</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>.
</div></dd><dt class="paramhead"><a name="NJNLN" id="NJNLN"/>7: &#160;&#160;&#8194; NJNLN &#8211; INTEGER<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: <m:math><m:msubsup><m:mi>n</m:mi><m:mn>1</m:mn><m:mrow><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo></m:mrow></m:msubsup></m:math>, the number of nonlinear Jacobian variables.  If there are any nonlinear constraints, the leading <m:math><m:msubsup><m:mi>n</m:mi><m:mn>1</m:mn><m:mrow><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo></m:mrow></m:msubsup></m:math>&#160;columns of <m:math><m:mi>A</m:mi></m:math>&#160;belong to the nonlinear Jacobian variables.  If <m:math><m:msubsup><m:mi>n</m:mi><m:mn>1</m:mn><m:mo>&#8242;</m:mo></m:msubsup><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>&#160;and <m:math><m:msubsup><m:mi>n</m:mi><m:mn>1</m:mn><m:mrow><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo></m:mrow></m:msubsup><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>, the nonlinear objective and Jacobian variables overlap.  The total number of nonlinear variables is given by <m:math><m:mover><m:mi>n</m:mi><m:mo>-</m:mo></m:mover><m:mo>=</m:mo><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:msubsup><m:mi>n</m:mi><m:mn>1</m:mn><m:mo>&#8242;</m:mo></m:msubsup><m:mo>,</m:mo><m:msubsup><m:mi>n</m:mi><m:mn>1</m:mn><m:mrow><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo></m:mrow></m:msubsup></m:mfenced></m:mrow></m:math>.</div><div class="paramtext"><i>Constraints</i>:
   <div class="paramtext"/><ul class="listcons">
<li class="listcons">if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCNLN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCNLN</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="#NJNLN"><m:mi mathcolor="#EE0000" mathvariant="bold">NJNLN</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math>;</li>
<li class="listcons">if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCNLN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCNLN</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>, <m:math><m:mn>1</m:mn><m:mo>&#8804;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NJNLN"><m:mi mathcolor="#EE0000" mathvariant="bold">NJNLN</m:mi></m:maction><m:mo>&#8804;</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></div></dd><dt class="paramhead"><a name="IOBJ" id="IOBJ"/>8: &#160;&#160;&#8194; IOBJ &#8211; INTEGER<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IOBJ"><m:mi mathcolor="#EE0000" mathvariant="bold">IOBJ</m:mi></m:maction><m:mo>&gt;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCNLN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCNLN</m:mi></m:maction></m:math>, row <a class="arg" href="#IOBJ">IOBJ</a> of <m:math><m:mi>A</m:mi></m:math>&#160;is a free row containing the nonzero elements of the linear part of the objective function.  

<dl>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IOBJ"><m:mi mathcolor="#EE0000" mathvariant="bold">IOBJ</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math></dt>
<dd>There is no free row.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IOBJ"><m:mi mathcolor="#EE0000" mathvariant="bold">IOBJ</m:mi></m:maction><m:mo>=</m:mo><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow></m:math></dt>
<dd>There is a dummy &#8216;free&#8217; row.</dd></dl>
</div><div class="paramtext"><i>Constraints</i>:
   <div class="paramtext"/><ul class="listcons">
<li class="listcons">if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IOBJ"><m:mi mathcolor="#EE0000" mathvariant="bold">IOBJ</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="#NCNLN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCNLN</m:mi></m:maction><m:mo>&lt;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#IOBJ"><m:mi mathcolor="#EE0000" mathvariant="bold">IOBJ</m:mi></m:maction><m:mo>&#8804;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction></m:math>;</li>
<li class="listcons">otherwise <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IOBJ"><m:mi mathcolor="#EE0000" mathvariant="bold">IOBJ</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow></m:math>.</li>
</ul></div></dd><dt class="paramhead"><a name="NNZ" id="NNZ"/>9: &#160;&#160;&#8194; NNZ &#8211; INTEGER<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: 

the number of nonzero elements in <m:math><m:mi>A</m:mi></m:math>&#160;(including the Jacobian for any nonlinear constraints).  If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IOBJ"><m:mi mathcolor="#EE0000" mathvariant="bold">IOBJ</m:mi></m:maction><m:mo>=</m:mo><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow></m:math>, set <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NNZ"><m:mi mathcolor="#EE0000" mathvariant="bold">NNZ</m:mi></m:maction><m:mo>=</m:mo><m:mn>1</m:mn></m:math>.</div><div class="paramtext"><i>Constraint</i>:
  <m:math><m:mn>1</m:mn><m:mo>&#8804;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NNZ"><m:mi mathcolor="#EE0000" mathvariant="bold">NNZ</m:mi></m:maction><m:mo>&#8804;</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:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction></m:math>.
</div></dd><dt class="paramhead"><a name="A" id="A"/>10: &#8194; A(<a class="arg" href="#NNZ">NNZ</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input/Output</span></dt><dd><div class="paramtext"><i>On entry</i>: the nonzero elements of the Jacobian matrix <m:math><m:mi>A</m:mi></m:math>, ordered by increasing column index.  Since the constraint Jacobian matrix <m:math><m:mi>J</m:mi><m:mfenced separators=""><m:msup><m:mi>x</m:mi><m:mrow><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo></m:mrow></m:msup></m:mfenced></m:math>&#160;must always appear in the top left-hand corner of <m:math><m:mi>A</m:mi></m:math>, those elements in a column associated with any nonlinear constraints must come before any elements belonging to the linear constraint matrix <m:math><m:mi>G</m:mi></m:math>&#160;and the free row (if any; see <a class="arg" href="#IOBJ">IOBJ</a>).
<div class="paramtext">In general, <a class="arg" href="#A">A</a> is partitioned into a nonlinear part and a linear part corresponding to the nonlinear variables and linear variables in the problem.  Elements in the nonlinear part may be set to any value (e.g., zero) because they are initialized at the first point that satisfies the linear constraints and the upper and lower bounds.</div>
<div class="paramtext">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_derivativelevel"><m:mi mathcolor="#800080;" mathvariant="bold">Derivative Level</m:mi></m:maction><m:mo>=</m:mo><m:mn>2</m:mn><m:mtext>&#8203; or &#8203;</m:mtext><m:mn>3</m:mn></m:math>, the nonlinear part may also be used to store any constant Jacobian elements.  Note that if <a class="arg" href="#CONFUN">CONFUN</a> does not define the constant Jacobian element <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#CONFUN_FJAC"><m:mi mathcolor="#EE0000" mathvariant="bold">FJAC</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow></m:math>&#160;then the missing value will be obtained directly from <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#A"><m:mi mathcolor="#EE0000" mathvariant="bold">A</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow></m:math>&#160;for some <m:math><m:mi>j</m:mi><m:mo>&#8805;</m:mo><m:mi>i</m:mi></m:math>.</div>
<div class="paramtext">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_derivativelevel"><m:mi mathcolor="#800080;" mathvariant="bold">Derivative Level</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn><m:mtext>&#8203; or &#8203;</m:mtext><m:mn>1</m:mn></m:math>, unassigned elements of <a class="arg" href="../E04/e04ugf.xml#CONFUN_FJAC">FJAC</a> are <span class="italic">not</span> treated as constant; they are estimated by finite differences, at nontrivial expense.</div>
<div class="paramtext">The linear part must contain the nonzero elements of <m:math><m:mi>G</m:mi></m:math>&#160;and the free row (if any).  If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IOBJ"><m:mi mathcolor="#EE0000" mathvariant="bold">IOBJ</m:mi></m:maction><m:mo>=</m:mo><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow></m:math>, set <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#A"><m:mi mathcolor="#EE0000" mathvariant="bold">A</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>1</m:mn></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>0</m:mn></m:math>.  Elements with the same row and column indices are not allowed.  (See also the descriptions for <a class="arg" href="#HA">HA</a> and <a class="arg" href="#KA">KA</a>.)</div>
</div>
<div class="paramtext"><i>On exit</i>: elements in the nonlinear part corresponding to nonlinear Jacobian variables are overwritten.</div></dd><dt class="paramhead"><a name="HA" id="HA"/>11: &#8194; HA(<a class="arg" href="#NNZ">NNZ</a>) &#8211; INTEGER array<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#HA"><m:mi mathcolor="#EE0000" mathvariant="bold">HA</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow></m:math>&#160;must contain the row index of the nonzero element stored in <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#A"><m:mi mathcolor="#EE0000" mathvariant="bold">A</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow></m:math>, 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:maction actiontype="link" dsi:type="simple" dsi:href="#NNZ"><m:mi mathcolor="#EE0000" mathvariant="bold">NNZ</m:mi></m:maction></m:math>.  The row indices for a column may be supplied in any order subject to the condition that those elements in a column associated with any nonlinear constraints must appear before those elements associated with any linear constraints (including the free row, if any).  Note that <a class="arg" href="#CONFUN">CONFUN</a> must define the Jacobian elements in the same order.  If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IOBJ"><m:mi mathcolor="#EE0000" mathvariant="bold">IOBJ</m:mi></m:maction><m:mo>=</m:mo><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow></m:math>, set <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#HA"><m:mi mathcolor="#EE0000" mathvariant="bold">HA</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>1</m:mn></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>1</m:mn></m:math>.</div><div class="paramtext"><i>Constraint</i>:
  <m:math><m:mn>1</m:mn><m:mo>&#8804;</m:mo><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#HA"><m:mi mathcolor="#EE0000" mathvariant="bold">HA</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi mathvariant="italic">i</m:mi></m:mfenced></m:mrow><m:mo>&#8804;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction></m:math>,  for <m:math><m:mi mathvariant="italic">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:maction actiontype="link" dsi:type="simple" dsi:href="#NNZ"><m:mi mathcolor="#EE0000" mathvariant="bold">NNZ</m:mi></m:maction></m:math>.</div></dd><dt class="paramhead"><a name="KA" id="KA"/>12: &#8194; KA(<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:mn>1</m:mn></m:math>) &#8211; INTEGER array<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#KA"><m:mi mathcolor="#EE0000" mathvariant="bold">KA</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow></m:math>&#160;must contain the index in <a class="arg" href="#A">A</a> of the start of the <m:math><m:mi>j</m:mi></m:math>th column, 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:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction></m:math>.  To specify the <m:math><m:mi>j</m:mi></m:math>th column as empty, set <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#KA"><m:mi mathcolor="#EE0000" mathvariant="bold">KA</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="#KA"><m:mi mathcolor="#EE0000" mathvariant="bold">KA</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mrow><m:mi>j</m:mi><m:mo>+</m:mo><m:mn>1</m:mn></m:mrow></m:mfenced></m:mrow></m:math>.  Note that the first and last elements of <a class="arg" href="#KA">KA</a> must be such that <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#KA"><m:mi mathcolor="#EE0000" mathvariant="bold">KA</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>1</m:mn></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>1</m:mn></m:math>&#160;and <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#KA"><m:mi mathcolor="#EE0000" mathvariant="bold">KA</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><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:mn>1</m:mn></m:mrow></m:mfenced></m:mrow><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NNZ"><m:mi mathcolor="#EE0000" mathvariant="bold">NNZ</m:mi></m:maction><m:mo>+</m:mo><m:mn>1</m:mn></m:math>.  If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IOBJ"><m:mi mathcolor="#EE0000" mathvariant="bold">IOBJ</m:mi></m:maction><m:mo>=</m:mo><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow></m:math>, set <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#KA"><m:mi mathcolor="#EE0000" mathvariant="bold">KA</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>, for <m:math><m:mi>j</m:mi><m:mo>=</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mn>3</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</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>.</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="#KA"><m:mi mathcolor="#EE0000" mathvariant="bold">KA</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>1</m:mn></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>1</m:mn></m:math>;</li>
<li class="listcons"><m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#KA"><m:mi mathcolor="#EE0000" mathvariant="bold">KA</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi mathvariant="italic">j</m:mi></m:mfenced></m:mrow><m:mo>&#8805;</m:mo><m:mn>1</m:mn></m:math>,  for <m:math><m:mi mathvariant="italic">j</m:mi><m:mo>=</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mn>3</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</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>
<li class="listcons"><m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#KA"><m:mi mathcolor="#EE0000" mathvariant="bold">KA</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><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:mn>1</m:mn></m:mrow></m:mfenced></m:mrow><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NNZ"><m:mi mathcolor="#EE0000" mathvariant="bold">NNZ</m:mi></m:maction><m:mo>+</m:mo><m:mn>1</m:mn></m:math>;</li>
<li class="listcons"><m:math><m:mn>0</m:mn><m:mo>&#8804;</m:mo><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#KA"><m:mi mathcolor="#EE0000" mathvariant="bold">KA</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mrow><m:mi mathvariant="italic">j</m:mi><m:mo>+</m:mo><m:mn>1</m:mn></m:mrow></m:mfenced></m:mrow><m:mo>-</m:mo><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#KA"><m:mi mathcolor="#EE0000" mathvariant="bold">KA</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:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction></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:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction></m:math>.</li>
</ul></div></dd><dt class="paramhead"><a name="BL" id="BL"/>13: &#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="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</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>: <m:math><m:mi>l</m:mi></m:math>, the lower bounds for all the variables and general constraints, in the following order.  The first <a class="arg" href="#N">N</a> elements of <a class="arg" href="#BL">BL</a> must contain the bounds on the variables <m:math><m:mi>x</m:mi></m:math>, the next <a class="arg" href="#NCNLN">NCNLN</a> elements the bounds for the nonlinear constraints <m:math><m:mi>F</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;(if any) and the next (<m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction><m:mo>-</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCNLN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCNLN</m:mi></m:maction></m:math>) elements the bounds for the linear constraints <m:math><m:mi>G</m:mi><m:mi>x</m:mi></m:math>&#160;and the free row (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>.  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>.  If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IOBJ"><m:mi mathcolor="#EE0000" mathvariant="bold">IOBJ</m:mi></m:maction><m:mo>=</m:mo><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow></m:math>, set <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#BL"><m:mi mathcolor="#EE0000" mathvariant="bold">BL</m:mi></m:maction><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:mrow><m:mi>abs</m:mi><m:mfenced separators=""><m:maction actiontype="link" dsi:type="simple" dsi:href="#IOBJ"><m:mi mathcolor="#EE0000" mathvariant="bold">IOBJ</m:mi></m:maction></m:mfenced></m:mrow></m:mfenced><m:mo>&#8804;</m:mo><m:mspace linebreak="newline"/><m:mo>-</m:mo><m:mi mathvariant="italic">bigbnd</m:mi></m:math>.</div><div class="paramtext"><i>Constraint</i>:
  
if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCNLN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCNLN</m:mi></m:maction><m:mo>&lt;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#IOBJ"><m:mi mathcolor="#EE0000" mathvariant="bold">IOBJ</m:mi></m:maction><m:mo>&#8804;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction></m:math>&#160;or <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IOBJ"><m:mi mathcolor="#EE0000" mathvariant="bold">IOBJ</m:mi></m:maction><m:mo>=</m:mo><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow></m:math>, <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#BL"><m:mi mathcolor="#EE0000" mathvariant="bold">BL</m:mi></m:maction><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:mrow><m:mi>abs</m:mi><m:mfenced separators=""><m:maction actiontype="link" dsi:type="simple" dsi:href="#IOBJ"><m:mi mathcolor="#EE0000" mathvariant="bold">IOBJ</m:mi></m:maction></m:mfenced></m:mrow></m:mfenced><m:mo>&#8804;</m:mo><m:mo>-</m:mo><m:mi mathvariant="italic">bigbnd</m:mi></m:math><div class="paramtext">(See also the description for <a class="arg" href="#BU">BU</a>.)</div></div></dd><dt class="paramhead"><a name="BU" id="BU"/>14: &#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="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</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>: <m:math><m:mi>u</m:mi></m:math>, the upper bounds for all the variables and general constraints, in the following order.  The first <a class="arg" href="#N">N</a> elements of <a class="arg" href="#BU">BU</a> must contain the bounds on the variables <m:math><m:mi>x</m:mi></m:math>, the next <a class="arg" href="#NCNLN">NCNLN</a> elements the bounds for the nonlinear constraints <m:math><m:mi>F</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;(if any) and the next (<m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction><m:mo>-</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCNLN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCNLN</m:mi></m:maction></m:math>) elements the bounds for the linear constraints <m:math><m:mi>G</m:mi><m:mi>x</m:mi></m:math>&#160;and the free row (if any).  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>.  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="#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: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: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>.  If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IOBJ"><m:mi mathcolor="#EE0000" mathvariant="bold">IOBJ</m:mi></m:maction><m:mo>=</m:mo><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow></m:math>, set <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#BU"><m:mi mathcolor="#EE0000" mathvariant="bold">BU</m:mi></m:maction><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:mrow><m:mi>abs</m:mi><m:mfenced separators=""><m:maction actiontype="link" dsi:type="simple" dsi:href="#IOBJ"><m:mi mathcolor="#EE0000" mathvariant="bold">IOBJ</m:mi></m:maction></m:mfenced></m:mrow></m:mfenced><m:mo>&#8805;</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">if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCNLN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCNLN</m:mi></m:maction><m:mo>&lt;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#IOBJ"><m:mi mathcolor="#EE0000" mathvariant="bold">IOBJ</m:mi></m:maction><m:mo>&#8804;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction></m:math>&#160;or <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IOBJ"><m:mi mathcolor="#EE0000" mathvariant="bold">IOBJ</m:mi></m:maction><m:mo>=</m:mo><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow></m:math>, <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#BU"><m:mi mathcolor="#EE0000" mathvariant="bold">BU</m:mi></m:maction><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:mrow><m:mi>abs</m:mi><m:mfenced separators=""><m:maction actiontype="link" dsi:type="simple" dsi:href="#IOBJ"><m:mi mathcolor="#EE0000" mathvariant="bold">IOBJ</m:mi></m:maction></m:mfenced></m:mrow></m:mfenced><m:mo>&#8805;</m:mo><m:mi mathvariant="italic">bigbnd</m:mi></m:math>;</li>
<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="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</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="START" id="START"/>15: &#8194; START &#8211; CHARACTER*1<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: indicates how a starting basis is to be obtained.

<dl>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#START"><m:mi mathcolor="#EE0000" mathvariant="bold">START</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'C'</m:mtext></m:math></dt>
<dd>An internal Crash procedure will be used to choose an initial basis.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#START"><m:mi mathcolor="#EE0000" mathvariant="bold">START</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'W'</m:mtext></m:math></dt>
<dd>A basis is already defined in <a class="arg" href="#ISTATE">ISTATE</a> and <a class="arg" href="#NS">NS</a> (probably from a previous call).</dd></dl>
</div><div class="paramtext"><i>Constraint</i>:
  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#START"><m:mi mathcolor="#EE0000" mathvariant="bold">START</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'C'</m:mtext></m:math>&#160;or <m:math><m:mtext>'W'</m:mtext></m:math>.
</div></dd><dt class="paramhead"><a name="NNAME" id="NNAME"/>16: &#8194; NNAME &#8211; INTEGER<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: 

the number of column (i.e., variable) and row (i.e., constraint) names supplied in <a class="arg" href="#NAMES">NAMES</a>.

<dl>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NNAME"><m:mi mathcolor="#EE0000" mathvariant="bold">NNAME</m:mi></m:maction><m:mo>=</m:mo><m:mn>1</m:mn></m:math></dt>
<dd>There are no names. Default names will be used in the printed output.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NNAME"><m:mi mathcolor="#EE0000" mathvariant="bold">NNAME</m:mi></m:maction><m:mo>=</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:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction></m:math></dt>
<dd>All names must be supplied.</dd></dl>
</div><div class="paramtext"><i>Constraint</i>:
  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NNAME"><m:mi mathcolor="#EE0000" mathvariant="bold">NNAME</m:mi></m:maction><m:mo>=</m:mo><m:mn>1</m:mn></m:math>&#160;or <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="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction></m:math>.
</div></dd><dt class="paramhead"><a name="NAMES" id="NAMES"/>17: &#8194; NAMES(<a class="arg" href="#NNAME">NNAME</a>) &#8211; CHARACTER*8 array<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: specifies the column and row names to be used in the printed output.
<div class="paramtext">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NNAME"><m:mi mathcolor="#EE0000" mathvariant="bold">NNAME</m:mi></m:maction><m:mo>=</m:mo><m:mn>1</m:mn></m:math>, <a class="arg" href="#NAMES">NAMES</a> is not referenced and the printed output will use default names for the columns and rows.</div>
<div class="paramtext">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NNAME"><m:mi mathcolor="#EE0000" mathvariant="bold">NNAME</m:mi></m:maction><m:mo>=</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:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction></m:math>, the first <a class="arg" href="#N">N</a> elements must contain the names for the columns, the next <a class="arg" href="#NCNLN">NCNLN</a> elements must contain the names for the nonlinear rows (if any) and the next <m:math><m:mfenced separators=""><m:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction><m:mo>-</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCNLN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCNLN</m:mi></m:maction></m:mfenced></m:math>&#160;elements must contain the names for the linear rows (if any) to be used in the printed output.  Note that the name for the free row or dummy &#8216;free&#8217; row must be stored in <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NAMES"><m:mi mathcolor="#EE0000" mathvariant="bold">NAMES</m:mi></m:maction><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:mrow><m:mi>abs</m:mi><m:mfenced separators=""><m:maction actiontype="link" dsi:type="simple" dsi:href="#IOBJ"><m:mi mathcolor="#EE0000" mathvariant="bold">IOBJ</m:mi></m:maction></m:mfenced></m:mrow></m:mfenced></m:math>.</div>
</div></dd><dt class="paramhead"><a name="NS" id="NS"/>18: &#8194; NS &#8211; INTEGER<span class="pclass">Input/Output</span></dt><dd><div class="paramtext"><i>On entry</i>: <m:math><m:msub><m:mi>n</m:mi><m:mi>S</m:mi></m:msub></m:math>, the number of superbasics.  It need not be specified if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#START"><m:mi mathcolor="#EE0000" mathvariant="bold">START</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'C'</m:mtext></m:math>, but must retain its value from a previous call when <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#START"><m:mi mathcolor="#EE0000" mathvariant="bold">START</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'W'</m:mtext></m:math>.</div>
<div class="paramtext"><i>On exit</i>: the final number of superbasics.</div></dd><dt class="paramhead"><a name="XS" id="XS"/>19: &#8194; XS(<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="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction></m:math>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input/Output</span></dt><dd><div class="paramtext"><i>On entry</i>: the initial values of the variables and slacks <m:math><m:mfenced separators=""><m:mi>x</m:mi><m:mo>,</m:mo><m:mi>s</m:mi></m:mfenced></m:math>.  (See the description for <a class="arg" href="#ISTATE">ISTATE</a>.)</div>
<div class="paramtext"><i>On exit</i>: the final values of the variables and slacks <m:math><m:mfenced separators=""><m:mi>x</m:mi><m:mo>,</m:mo><m:mi>s</m:mi></m:mfenced></m:math>.</div></dd><dt class="paramhead"><a name="ISTATE" id="ISTATE"/>20: &#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="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction></m:math>) &#8211; INTEGER array<span class="pclass">Input/Output</span></dt><dd><div class="paramtext"><i>On entry</i>: if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#START"><m:mi mathcolor="#EE0000" mathvariant="bold">START</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'C'</m:mtext></m:math>, the first <a class="arg" href="#N">N</a> elements of <a class="arg" href="#ISTATE">ISTATE</a> and <a class="arg" href="#XS">XS</a> must specify the initial states and values, respectively, of the variables <m:math><m:mi>x</m:mi></m:math>.  (The slacks <m:math><m:mi>s</m:mi></m:math>&#160;need not be initialized.) An internal Crash procedure is then used to select an initial basis matrix <m:math><m:mi>B</m:mi></m:math>.  The initial basis matrix will be triangular (neglecting certain small elements in each column).  It is chosen from various rows and columns of <m:math><m:mfenced><m:mtable> <m:mtr> <m:mtd><m:mi>A</m:mi></m:mtd> <m:mtd><m:mo>-</m:mo><m:mi>I</m:mi></m:mtd> </m:mtr> </m:mtable></m:mfenced></m:math>.  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"><b><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></b></td>
<td class="libdoc" valign="top" align="left"><b>State of <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#XS"><m:mi mathcolor="#EE0000" mathvariant="bold">XS</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow></m:math>&#160;during Crash procedure</b></td>
</tr><tr>
<td class="libdoc" valign="top" align="center"><m:math><m:mn>0</m:mn></m:math>&#160;or <m:math><m:mn>1</m:mn></m:math></td>
<td class="libdoc" valign="top" align="left">Eligible for the basis</td>
</tr><tr>
<td class="libdoc" valign="top" align="center"><m:math><m:mn>2</m:mn></m:math></td>
<td class="libdoc" valign="top" align="left">Ignored</td>
</tr><tr>
<td class="libdoc" valign="top" align="center"><m:math><m:mn>3</m:mn></m:math></td>
<td class="libdoc" valign="top" align="left">Eligible for the basis (given preference over <m:math><m:mn>0</m:mn></m:math>&#160;or <m:math><m:mn>1</m:mn></m:math>)</td>
</tr><tr>
<td class="libdoc" valign="top" align="center"><m:math><m:mn>4</m:mn></m:math>&#160;or <m:math><m:mn>5</m:mn></m:math></td>
<td class="libdoc" valign="top" align="left">Ignored</td>
</tr>
</tbody>
</table></div>
<div class="paramtext">If nothing special is known about the problem, or there is no wish to provide special information, you may set <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;and <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#XS"><m:mi mathcolor="#EE0000" mathvariant="bold">XS</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.0</m:mn></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:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction></m:math>.  All variables will then be eligible for the initial basis.  Less trivially, to say that the <m:math><m:mi>j</m:mi></m:math>th variable will probably be equal to one of its bounds, set <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>&#160;and <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#XS"><m:mi mathcolor="#EE0000" mathvariant="bold">XS</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="#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;or <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>5</m:mn></m:math>&#160;and <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#XS"><m:mi mathcolor="#EE0000" mathvariant="bold">XS</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>&#160;as appropriate.</div>
<div class="paramtext">Following the Crash procedure, variables for which <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;are made superbasic.  Other variables not selected for the basis are then made nonbasic at the value <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#XS"><m:mi mathcolor="#EE0000" mathvariant="bold">XS</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow></m:math>&#160;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>&#8804;</m:mo><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#XS"><m:mi mathcolor="#EE0000" mathvariant="bold">XS</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>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>j</m:mi></m:mfenced></m:mrow></m:math>, or at the value <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;or <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;closest to <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#XS"><m:mi mathcolor="#EE0000" mathvariant="bold">XS</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow></m:math>.</div>
<div class="paramtext">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#START"><m:mi mathcolor="#EE0000" mathvariant="bold">START</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'W'</m:mtext></m:math>, <a class="arg" href="#ISTATE">ISTATE</a> and <a class="arg" href="#XS">XS</a> must specify the initial states and values, respectively, of the variables and slacks <m:math><m:mfenced separators=""><m:mi>x</m:mi><m:mo>,</m:mo><m:mi>s</m:mi></m:mfenced></m:math>.  If the routine has been called previously with the same values of <a class="arg" href="#N">N</a> and <a class="arg" href="#M">M</a>, <a class="arg" href="#ISTATE">ISTATE</a> already contains satisfactory information.</div>
</div><div class="paramtext"><i>Constraints</i>:
   <div class="paramtext"/><ul class="listcons">
<li class="listcons">if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#START"><m:mi mathcolor="#EE0000" mathvariant="bold">START</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'C'</m:mtext></m:math>, <m:math><m:mn>0</m:mn><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>5</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:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction></m:math>;</li>
<li class="listcons">if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#START"><m:mi mathcolor="#EE0000" mathvariant="bold">START</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'W'</m:mtext></m:math>, <m:math><m:mn>0</m:mn><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>3</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="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction></m:mrow></m:math>.</li>
</ul></div>
<div class="paramtext"><i>On exit</i>: the final states of the variables and slacks <m:math><m:mfenced separators=""><m:mi>x</m:mi><m:mo>,</m:mo><m:mi>s</m:mi></m:mfenced></m:math>.  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"><b><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></b></td>
<td class="libdoc" valign="top" align="left"><b>State of variable <m:math><m:mi>j</m:mi></m:math></b></td>
<td class="libdoc" valign="top" align="left"><b>Normal value of <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#XS"><m:mi mathcolor="#EE0000" mathvariant="bold">XS</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow></m:math></b></td>
</tr><tr>
<td class="libdoc" valign="top" align="center"><m:math><m:mn>0</m:mn></m:math></td>
<td class="libdoc" valign="top" align="left">Nonbasic</td>
<td class="libdoc" valign="top" align="left"><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></td>
</tr><tr>
<td class="libdoc" valign="top" align="center"><m:math><m:mn>1</m:mn></m:math></td>
<td class="libdoc" valign="top" align="left">Nonbasic</td>
<td class="libdoc" valign="top" align="left"><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></td>
</tr><tr>
<td class="libdoc" valign="top" align="center"><m:math><m:mn>2</m:mn></m:math></td>
<td class="libdoc" valign="top" align="left">Superbasic</td>
<td class="libdoc" valign="top" align="left">Between <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></td>
</tr><tr>
<td class="libdoc" valign="top" align="center"><m:math><m:mn>3</m:mn></m:math></td>
<td class="libdoc" valign="top" align="left">Basic</td>
<td class="libdoc" valign="top" align="left">Between <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></td>
</tr>
</tbody>
</table></div>
<div class="paramtext">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NINF"><m:mi mathcolor="#EE0000" mathvariant="bold">NINF</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math>, basic and superbasic variables may be outside their bounds by as much as the value of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_minorfeasibilitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Minor Feasibility Tolerance</m:mi></m:maction></m:math>.  Note that if scaling is specified, the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_minorfeasibilitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Minor Feasibility Tolerance</m:mi></m:maction></m:math>&#160;applies to the variables of the <span class="italic">scaled</span> problem.  In this case, the variables of the original problem may be as much as <m:math><m:mn>0.1</m:mn></m:math>&#160;outside their bounds, but this is unlikely unless the problem is very badly scaled.</div>
<div class="paramtext">Very occasionally some nonbasic variables may be outside their bounds by as much as the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_minorfeasibilitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Minor Feasibility Tolerance</m:mi></m:maction></m:math>&#160;and there may be some nonbasic variables for which <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#XS"><m:mi mathcolor="#EE0000" mathvariant="bold">XS</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow></m:math>&#160;lies strictly between its bounds.</div>
<div class="paramtext">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NINF"><m:mi mathcolor="#EE0000" mathvariant="bold">NINF</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>, some basic and superbasic variables may be outside their bounds by an arbitrary amount (bounded by <a class="arg" href="#SINF">SINF</a> if scaling was not used).</div>
</div></dd><dt class="paramhead"><a name="CLAMDA" id="CLAMDA"/>21: &#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="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction></m:math>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input/Output</span></dt><dd><div class="paramtext"><i>On entry</i>: if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCNLN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCNLN</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>, <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;must contain a Lagrange multiplier estimate for the <m:math><m:mi>j</m:mi></m:math>th nonlinear constraint <m:math><m:msub><m:mi>F</m:mi><m:mi>j</m:mi></m:msub><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>, for <m:math><m:mi>j</m:mi><m:mo>=</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:mo>,</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>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</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:maction actiontype="link" dsi:type="simple" dsi:href="#NCNLN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCNLN</m:mi></m:maction></m:math>.  If nothing special is known about the problem, or there is no wish to provide special information, you may 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:mo>=</m:mo><m:mn>0.0</m:mn></m:math>.  The remaining elements need not be set.</div>
<div class="paramtext"><i>On exit</i>: a set of Lagrange multipliers for the bounds on the variables (<span class="italic">reduced costs</span>) and the general constraints (<span class="italic">shadow costs</span>).  More precisely, the first <a class="arg" href="#N">N</a> elements contain the multipliers for the bounds on the variables, the next <a class="arg" href="#NCNLN">NCNLN</a> elements contain the multipliers for the nonlinear constraints <m:math><m:mi>F</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;(if any) and the next (<m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction><m:mo>-</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCNLN"><m:mi mathcolor="#EE0000" mathvariant="bold">NCNLN</m:mi></m:maction></m:math>) elements contain the multipliers for the linear constraints <m:math><m:mi>G</m:mi><m:mi>x</m:mi></m:math>&#160;and the free row (if any).</div></dd><dt class="paramhead"><a name="MINIZ" id="MINIZ"/>22: &#8194; MINIZ &#8211; INTEGER<span class="pclass">Output</span></dt><dd><div class="paramtext"><i>On exit</i>: the minimum value of <a class="arg" href="#LENIZ">LENIZ</a> required to start solving the problem.  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="#IFeq12"><m:mn mathcolor="#003399" mathvariant="bold">12</m:mn></m:maction></m:math>, E04UGF/E04UGA may be called again with <a class="arg" href="#LENIZ">LENIZ</a> suitably larger than <a class="arg" href="#MINIZ">MINIZ</a>.  (The bigger the better, since it is not certain how much workspace the basis factors need.)</div></dd><dt class="paramhead"><a name="MINZ" id="MINZ"/>23: &#8194; MINZ &#8211; INTEGER<span class="pclass">Output</span></dt><dd><div class="paramtext"><i>On exit</i>: the minimum value of <a class="arg" href="#LENZ">LENZ</a> required to start solving the problem.  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="#IFeq13"><m:mn mathcolor="#003399" mathvariant="bold">13</m:mn></m:maction></m:math>, E04UGF/E04UGA may be called again with <a class="arg" href="#LENZ">LENZ</a> suitably larger than <a class="arg" href="#MINZ">MINZ</a>.  (The bigger the better, since it is not certain how much workspace the basis factors need.)</div></dd><dt class="paramhead"><a name="NINF" id="NINF"/>24: &#8194; NINF &#8211; INTEGER<span class="pclass">Output</span></dt><dd><div class="paramtext"><i>On exit</i>: the number of constraints that lie outside their bounds by more than the value of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_minorfeasibilitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Minor Feasibility Tolerance</m:mi></m:maction></m:math>.
<div class="paramtext">If the <span class="italic">linear</span> constraints are infeasible, the sum of the infeasibilities of the linear constraints is minimized subject to the upper and lower bounds being satisfied.  In this case, <a class="arg" href="#NINF">NINF</a> contains the number of elements of <m:math><m:mi>G</m:mi><m:mi>x</m:mi></m:math>&#160;that lie outside their upper or lower bounds.  Note that the nonlinear constraints are not evaluated.</div>
<div class="paramtext">Otherwise, the sum of the infeasibilities of the <span class="italic">nonlinear</span> constraints is minimized subject to the linear constraints and the upper and lower bounds being satisfied.  In this case, <a class="arg" href="#NINF">NINF</a> contains the number of elements of <m:math><m:mi>F</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;that lie outside their upper or lower bounds.</div>
</div></dd><dt class="paramhead"><a name="SINF" id="SINF"/>25: &#8194; SINF &#8211; <span class="bitalic">double precision</span><span class="pclass">Output</span></dt><dd><div class="paramtext"><i>On exit</i>: the sum of the infeasibilities of constraints that lie outside their bounds by more than the value of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_minorfeasibilitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Minor Feasibility Tolerance</m:mi></m:maction></m:math>.</div></dd><dt class="paramhead"><a name="OBJ" id="OBJ"/>26: &#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.</div></dd><dt class="paramhead"><a name="IZ" id="IZ"/>27: &#8194; IZ(<a class="arg" href="#LENIZ">LENIZ</a>) &#8211; INTEGER array<span class="pclass">Workspace</span></dt><dt class="multi-paramhead"><a name="LENIZ" id="LENIZ"/>28: &#8194; LENIZ &#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="#IZ">IZ</a> as declared in the (sub)program from which E04UGF/E04UGA is called.</div><div class="paramtext"><i>Constraint</i>:
  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LENIZ"><m:mi mathcolor="#EE0000" mathvariant="bold">LENIZ</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>500</m:mn><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="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction></m:mrow></m:mfenced></m:mrow></m:math>.
</div></dd><dt class="paramhead"><a name="Z" id="Z"/>29: &#8194; Z(<a class="arg" href="#LENZ">LENZ</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Workspace</span></dt><dt class="multi-paramhead"><a name="LENZ" id="LENZ"/>30: &#8194; LENZ &#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="#Z">Z</a> as declared in the (sub)program from which E04UGF/E04UGA is called.</div><div class="paramtext"><i>Constraint</i>:
  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LENZ"><m:mi mathcolor="#EE0000" mathvariant="bold">LENZ</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>500</m:mn></m:math>.
</div>
<div class="paramtext">The amounts of workspace provided (i.e., <a class="arg" href="#LENIZ">LENIZ</a> and <a class="arg" href="#LENZ">LENZ</a>) and required (i.e., <a class="arg" href="#MINIZ">MINIZ</a> and <a class="arg" href="#MINZ">MINZ</a>) are (by default) output on the current advisory message unit (as defined by <a class="rout" href="../X04/x04abf.xml">X04ABF</a>).  Since the minimum values of <a class="arg" href="#LENIZ">LENIZ</a> and <a class="arg" href="#LENZ">LENZ</a> required to start solving the problem are returned in <a class="arg" href="#MINIZ">MINIZ</a> and <a class="arg" href="#MINZ">MINZ</a> respectively, you may prefer to obtain appropriate values from the output of a preliminary run with <a class="arg" href="#LENIZ">LENIZ</a> set to <m:math><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mn>500</m:mn><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="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction></m:mrow></m:mfenced></m:mrow></m:math>&#160;and/or <a class="arg" href="#LENZ">LENZ</a> set to <m:math><m:mn>500</m:mn></m:math>.  (E04UGF/E04UGA 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="#IFeq15"><m:mn mathcolor="#003399" mathvariant="bold">15</m:mn></m:maction></m:math>&#160;or <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFeq16"><m:mn mathcolor="#003399" mathvariant="bold">16</m:mn></m:maction></m:math>.)</div></dd><dt class="paramhead"><a name="IUSER" id="IUSER"/>31: &#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 E04UGF/E04UGA, but is passed directly to user-supplied subroutines <a class="arg" href="#CONFUN">CONFUN</a> and <a class="arg" href="#OBJFUN">OBJFUN</a> and may be used to pass information to those routines.</div></dd><dt class="paramhead"><a name="RUSER" id="RUSER"/>32: &#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 E04UGF/E04UGA, but is passed directly to user-supplied subroutines <a class="arg" href="#CONFUN">CONFUN</a> and <a class="arg" href="#OBJFUN">OBJFUN</a> and may be used to pass information to those routines.</div></dd><dt class="paramhead"><a name="IFAIL" id="IFAIL"/>33: &#8194; IFAIL &#8211; INTEGER<span class="pclass">Input/Output</span></dt><dd>
<div class="paramtext"><b>Note:</b> <span class="italic">for E04UGA, <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">E04UGF/E04UGA 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 the iterates have converged to a point <m:math><m:mi>x</m:mi></m:math>&#160;that satisfies the first-order Kuhn&#8211;Karesh&#8211;Tucker conditions (see <a class="sec" href="#fc-majorprintout">Section 8.1</a>) to the accuracy requested by the optional parameters <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_majorfeasibilitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Major 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>) and <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_majoroptimalitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Major Optimality 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>).</div>
</dd><dd class="note"><b>Note:</b> <span class="italic"> the following are additional parameters for specific use with E04UGA.  Users of E04UGF therefore need not read the remainder of this description</span>.</dd><dt class="paramhead"><a name="LWSAV" id="LWSAV"/>33: &#8194; LWSAV(<m:math><m:mn>20</m:mn></m:math>) &#8211; LOGICAL array<span class="pclass">Communication Array</span></dt><dt class="multi-paramhead"><a name="IWSAV" id="IWSAV"/>34: &#8194; IWSAV(<m:math><m:mn>550</m:mn></m:math>) &#8211; INTEGER array<span class="pclass">Communication Array</span></dt><dt class="multi-paramhead"><a name="RWSAV" id="RWSAV"/>35: &#8194; RWSAV(<m:math><m:mn>550</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>, E04UGA, <a class="rout" href="../E04/e04uhf.xml">E04UHA</a> or <a class="rout" href="../E04/e04ujf.xml">E04UJA</a>.</div></dd><dt class="paramhead"><a name="IFAIL2" id="IFAIL2"/>36: &#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> E04UGF/E04UGA 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="IFlt0" id="IFlt0"/><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>&lt;</m:mo><m:mn>0</m:mn></m:math></dt>
<dd>
<div class="paramtext">A negative value of <a class="arg" href="#IFAIL">IFAIL</a> indicates an exit from E04UGF/E04UGA because you set <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#OBJFUN_MODE"><m:mi mathcolor="#EE0000" mathvariant="bold">MODE</m:mi></m:maction><m:mo>&lt;</m:mo><m:mn>0</m:mn></m:math>&#160;in <a class="arg" href="#OBJFUN">OBJFUN</a> or <a class="arg" href="#CONFUN">CONFUN</a>.  The value of <a class="arg" href="#IFAIL">IFAIL</a> will be the same as your setting of <a class="arg" href="../E04/e04ugf.xml#OBJFUN_MODE">MODE</a>.</div>
</dd>
</dl><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 problem is infeasible.  The general constraints cannot all be satisfied simultaneously to within the values of the optional parameters <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_majorfeasibilitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Major 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>) and <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_minorfeasibilitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Minor 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>).</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 problem is unbounded (or badly scaled).  The objective function is not bounded below (or above in the case of maximization) in the feasible region because a nonbasic variable can apparently be increased or decreased by an arbitrary amount without causing a basic variable to violate a bound.  Add an upper or lower bound to the variable (whose index is printed by default by E04UGF) and rerun E04UGF/E04UGA.</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">The problem may be unbounded.  Check that the values of the optional parameters <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_unboundedobjective"><m:mi mathcolor="#800080;" mathvariant="bold">Unbounded Objective</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>15</m:mn></m:msup></m:math>) and <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_unboundedstepsize"><m:mi mathcolor="#800080;" mathvariant="bold">Unbounded Step Size</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: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>) are not too small.  This exit also implies that the objective function is not bounded below (or above in the case of maximization) in the feasible region defined by expanding the bounds by the value of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_violationlimit"><m:mi mathcolor="#800080;" mathvariant="bold">Violation Limit</m:mi></m:maction></m:math>&#160;(<m:math><m:mtext>default value</m:mtext><m:mo>=</m:mo><m:mn>10.0</m:mn></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">Too many iterations.  The values of the optional parameters <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_majoriterationlimit"><m:mi mathcolor="#800080;" mathvariant="bold">Major Iteration Limit</m:mi></m:maction></m:math>&#160;(<m:math><m:mtext>default value</m:mtext><m:mo>=</m:mo><m:mn>1000</m:mn></m:math>) and/or <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>&#160;(<m:math><m:mtext>default value</m:mtext><m:mo>=</m:mo><m:mn>10000</m:mn></m:math>) are too small.</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">Feasible solution found, but requested accuracy could not be achieved.  Check that the value of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_majoroptimalitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Major Optimality 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>) is not too small (say, <m:math><m:mtext/><m:mo>&lt;</m:mo><m:mi>&#949;</m:mi></m:math>).</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">The value of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_superbasicslimit"><m:mi mathcolor="#800080;" mathvariant="bold">Superbasics Limit</m:mi></m:maction></m:math>&#160;(<m:math><m:mtext>default value</m:mtext><m:mo>=</m:mo><m:mrow><m:mi>min</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mn>500</m:mn><m:mo>,</m:mo><m:mrow><m:mover><m:mi>n</m:mi><m:mo>-</m:mo></m:mover><m:mo>+</m:mo><m:mn>1</m:mn></m:mrow></m:mfenced></m:mrow></m:math>) is too small.</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">
An input parameter is invalid.</div>
</dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq8" id="IFeq8"/><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>8</m:mn></m:math></dt>
<dd>
<div class="paramtext">The user-supplied derivatives of the objective function computed by <a class="arg" href="#OBJFUN">OBJFUN</a> appear to be incorrect.  Check that <a class="arg" href="#OBJFUN">OBJFUN</a> has been coded correctly and that all relevant elements of the objective gradient have been assigned their correct values.</div>
</dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq9" id="IFeq9"/><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>9</m:mn></m:math></dt>
<dd>
<div class="paramtext">The user-supplied derivatives of the nonlinear constraint functions computed by <a class="arg" href="#CONFUN">CONFUN</a> appear to be incorrect.  Check that <a class="arg" href="#CONFUN">CONFUN</a> has been coded correctly and that all relevant elements of the nonlinear constraint Jacobian have been assigned their correct values.</div>
</dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq10" id="IFeq10"/><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>10</m:mn></m:math></dt>
<dd>
<div class="paramtext">The current point cannot be improved upon.  Check that <a class="arg" href="#OBJFUN">OBJFUN</a> and <a class="arg" href="#CONFUN">CONFUN</a> have been coded correctly and that they are consistent with the value of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_derivativelevel"><m:mi mathcolor="#800080;" mathvariant="bold">Derivative Level</m:mi></m:maction></m:math>&#160;(<m:math><m:mtext>default value</m:mtext><m:mo>=</m:mo><m:mn>3</m:mn></m:math>).</div>
</dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq11" id="IFeq11"/><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>11</m:mn></m:math></dt>
<dd>
<div class="paramtext">Numerical error in trying to satisfy the linear constraints (or the linearized nonlinear constraints).  The basis is very ill-conditioned.</div>
</dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq12" id="IFeq12"/><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>12</m:mn></m:math></dt>
<dd>
<div class="paramtext">Not enough integer workspace for the basis factors.  Increase <a class="arg" href="#LENIZ">LENIZ</a> and rerun E04UGF/E04UGA.</div>
</dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq13" id="IFeq13"/><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>13</m:mn></m:math></dt>
<dd>
<div class="paramtext">Not enough real workspace for the basis factors.  Increase <a class="arg" href="#LENZ">LENZ</a> and rerun E04UGF/E04UGA.</div>
</dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq14" id="IFeq14"/><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>14</m:mn></m:math></dt>
<dd>
<div class="paramtext">The basis is singular after <m:math><m:mn>15</m:mn></m:math>&#160;attempts to factorize it (and adding slacks where necessary).  Either the problem is badly scaled or the value of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_lufactortolerance"><m:mi mathcolor="#800080;" mathvariant="bold">LU Factor Tolerance</m:mi></m:maction></m:math>&#160;(<m:math><m:mtext>default value</m:mtext><m:mo>=</m:mo><m:mn>5.0</m:mn></m:math>&#160;or <m:math><m:mn>100.0</m:mn></m:math>) is too large.</div>
</dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq15" id="IFeq15"/><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>15</m:mn></m:math></dt>
<dd>
<div class="paramtext">Not enough integer workspace to start solving the problem.  Increase <a class="arg" href="#LENIZ">LENIZ</a> to at least <a class="arg" href="#MINIZ">MINIZ</a> and rerun E04UGF/E04UGA.</div>
</dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq16" id="IFeq16"/><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>16</m:mn></m:math></dt>
<dd>
<div class="paramtext">Not enough real workspace to start solving the problem.  Increase <a class="arg" href="#LENZ">LENZ</a> to at least <a class="arg" href="#MINZ">MINZ</a> and rerun E04UGF/E04UGA.</div>
</dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq17" id="IFeq17"/><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>17</m:mn></m:math></dt>
<dd>
<div class="paramtext">An unexpected error has occurred.  Please contact <a class="url" href="http://www.nag.co.uk">NAG</a>.</div>
</dd>
</dl><h2 class="standard"><a class="sec" name="accuracy" id="accuracy"/>7&#160;&#160;Accuracy</h2>
<div class="paramtext">If the value of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_majoroptimalitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Major Optimality Tolerance</m:mi></m:maction></m:math>&#160;is set to <m:math><m:msup><m:mn>10</m:mn><m:mrow><m:mo>-</m:mo><m:mi>d</m:mi></m:mrow></m:msup></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>) and <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;on exit, then the final value of <m:math><m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;should have approximately <m:math><m:mi>d</m:mi></m:math>&#160;correct significant digits.</div><h2 class="standard"><a class="sec" name="fcomments" id="fcomments"/>8&#160;&#160;Further Comments</h2>
<div class="paramtext">This section contains a description of the printed output.</div><h3 class="standard"><a class="sec" name="fc-majorprintout" id="fc-majorprintout"/>8.1&#160;&#160;Major Iteration Printout</h3>
<div class="paramtext">This section describes the intermediate printout and final printout produced by the major iterations of E04UGF/E04UGA.  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_majorprintlevel"><m:mi mathcolor="#800080;" mathvariant="bold">Major 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_majorprintlevel"><m:mi mathcolor="#800080;" mathvariant="bold">Major Print Level</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>10</m:mn></m:math>&#160;(the default for E04UGF, by default no output is produced by E04UGA).</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 major 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:10.2em;" valign="baseline"><span class="mono">Maj</span></td>
<td valign="top">
is the major iteration count.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Mnr</span></td>
<td valign="top">

is the number of minor iterations required by the feasibility and optimality phases of the QP subproblem.  Generally, <span class="mono">Mnr</span> will be <m:math><m:mn>1</m:mn></m:math>&#160;in the later iterations, since theoretical analysis predicts that the correct active set will be identified near the solution
 (see <a class="sec" href="#algdetails">Section 10</a>).  <div class="paramtext">
Note that <span class="mono">Mnr</span> may be greater than the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_minoriterationlimit"><m:mi mathcolor="#800080;" mathvariant="bold">Minor Iteration Limit</m:mi></m:maction></m:math>&#160;if some iterations are required for the feasibility phase.</div>
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Step</span></td>
<td valign="top">
is the step <m:math><m:msub><m:mi>&#945;</m:mi><m:mi>k</m:mi></m:msub></m:math>&#160;taken along the computed search direction.  On reasonably well-behaved problems, the unit step (i.e., <m:math><m:msub><m:mi>&#945;</m:mi><m:mi>k</m:mi></m:msub><m:mo>=</m:mo><m:mn>1</m:mn></m:math>) will be taken as the solution is approached.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Merit Function</span></td>
<td valign="top">

is the value of the augmented Lagrangian merit function <a class="eqn" href="#eqnlmf">(6)</a> at the current iterate.  This function will decrease at each iteration unless it was necessary to increase the penalty parameters
 (see <a class="sec" href="#fc-majorprintout">Section 8.1</a>).  
As the solution is approached, <span class="mono">Merit Function</span> will converge to the value of the objective function at the solution.
 <div class="paramtext">In elastic mode (see <a class="sec" href="#ad-treatment">Section 10.2</a>) then the merit function is a composite function involving the constraint violations weighted by the value of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_elasticweight"><m:mi mathcolor="#800080;" mathvariant="bold">Elastic Weight</m:mi></m:maction></m:math>.</div><div class="paramtext">If there are no nonlinear constraints present then this entry contains <span class="mono">Objective</span>, the value of the objective function <m:math><m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>.  In this case, <m:math><m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;will decrease monotonically to its optimal value.</div>
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Feasibl</span></td>
<td valign="top">
is the value of <span class="italic">rowerr</span>, the largest element of the scaled nonlinear constraint residual vector defined in the description of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_majorfeasibilitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Major Feasibility Tolerance</m:mi></m:maction></m:math>.  The solution is regarded as &#8216;feasible&#8217; if <span class="mono">Feasibl</span> is less than (or equal to) the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_majorfeasibilitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Major Feasibility Tolerance</m:mi></m:maction></m:math>.  <span class="mono">Feasibl</span> will be approximately zero in the neighbourhood of a solution.<div class="paramtext">If there are no nonlinear constraints present, all iterates are feasible and this entry is not printed.</div>
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Optimal</span></td>
<td valign="top">
is the value of <span class="italic">maxgap</span>, the largest element of the maximum complementarity gap vector defined in the description of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_majoroptimalitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Major Optimality Tolerance</m:mi></m:maction></m:math>.  The Lagrange multipliers are regarded as &#8216;optimal&#8217; if <span class="mono">Optimal</span> is less than (or equal to) the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_majoroptimalitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Major Optimality Tolerance</m:mi></m:maction></m:math>.  <span class="mono">Optimal</span> will be approximately zero in the neighbourhood of a solution.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Cond Hz</span></td>
<td valign="top">
is an estimate of the condition number of the reduced Hessian of the Lagrangian (not printed if <a class="arg" href="#NCNLN">NCNLN</a> and <a class="arg" href="#NONLN">NONLN</a> are both zero).  It is the square of the ratio between the largest and smallest diagonal elements of the upper triangular matrix <m:math><m:mi>R</m:mi></m:math>.  This constitutes a lower bound on the condition number of the matrix <m:math><m:msup><m:mi>R</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>R</m:mi></m:math>&#160;that approximates the reduced Hessian.  The larger this number, the more difficult the problem.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">PD</span></td>
<td valign="top">
is a two-letter indication of the status of the convergence tests involving the feasibility and optimality of the iterates defined in the descriptions of the optional parameters <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_majorfeasibilitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Major Feasibility Tolerance</m:mi></m:maction></m:math>&#160;and <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_majoroptimalitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Major Optimality Tolerance</m:mi></m:maction></m:math>.  Each letter is <span class="mono">T</span> if the test is satisfied and <span class="mono">F</span> otherwise.  The tests indicate whether the values of <span class="mono">Feasibl</span> and <span class="mono">Optimal</span> are sufficiently small.  For example, <span class="mono">TF</span> or <span class="mono">TT</span> is printed if there are no nonlinear constraints present (since all iterates are feasible).  If either indicator is <span class="mono">F</span> when E04UGF/E04UGA terminates 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>, you should check the solution carefully.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">M</span></td>
<td valign="top">
is printed if an extra evaluation of user-supplied subroutines <a class="arg" href="#OBJFUN">OBJFUN</a> and <a class="arg" href="#CONFUN">CONFUN</a> was needed in order to define an acceptable positive-definite quasi-Newton update to the Hessian of the Lagrangian.  This modification is only performed when there are nonlinear constraints present.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">m</span></td>
<td valign="top">
is printed if, in addition, it was also necessary to modify the update to include an augmented Lagrangian term.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">s</span></td>
<td valign="top">
is printed if a self-scaled BFGS (Broyden&#8211;Fletcher&#8211;Goldfarb&#8211;Shanno) update was performed.  This update is always used when the Hessian approximation is diagonal and hence always follows a Hessian reset.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">S</span></td>
<td valign="top">
is printed if, in addition, it was also necessary to modify the self-scaled update in order to maintain positive-definiteness.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">n</span></td>
<td valign="top">
is printed if no positive-definite BFGS update could be found, in which case the approximate Hessian is unchanged from the previous iteration.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">r</span></td>
<td valign="top">
is printed if the approximate Hessian was reset after <m:math><m:mn>10</m:mn></m:math>&#160;consecutive major iterations in which no BFGS update could be made.  The diagonal elements of the approximate Hessian are retained if at least one update has been performed since the last reset.  Otherwise, the approximate Hessian is reset to the identity matrix.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">R</span></td>
<td valign="top">
is printed if the approximate Hessian has been reset by discarding all but its diagonal elements.  This reset will be forced periodically by the values of the optional parameters <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_hessianfrequency"><m:mi mathcolor="#800080;" mathvariant="bold">Hessian Frequency</m:mi></m:maction></m:math>&#160;and <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_hessianupdates"><m:mi mathcolor="#800080;" mathvariant="bold">Hessian Updates</m:mi></m:maction></m:math>.  However, it may also be necessary to reset an ill-conditioned Hessian from time to time.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">l</span></td>
<td valign="top">
is printed if the change in the norm of the variables was greater than the value defined by the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_majorsteplimit"><m:mi mathcolor="#800080;" mathvariant="bold">Major Step Limit</m:mi></m:maction></m:math>.  If this output occurs frequently during later iterations, it may be worthwhile increasing the value of <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_majorsteplimit"><m:mi mathcolor="#800080;" mathvariant="bold">Major Step Limit</m:mi></m:maction></m:math>.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">c</span></td>
<td valign="top">
is printed if central differences have been used to compute the unknown elements of the objective and constraint gradients.  A switch to central differences is made if either the linesearch gives a small step, or <m:math><m:mi>x</m:mi></m:math>&#160;is close to being optimal.  In some cases, it may be necessary to re-solve the QP subproblem with the central difference gradient and Jacobian.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">u</span></td>
<td valign="top">
is printed if the QP subproblem was unbounded.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">t</span></td>
<td valign="top">
is printed if the minor iterations were terminated after the number of iterations specified by the value of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_minoriterationlimit"><m:mi mathcolor="#800080;" mathvariant="bold">Minor Iteration Limit</m:mi></m:maction></m:math>&#160;was reached.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">i</span></td>
<td valign="top">
is printed if the QP subproblem was infeasible when the routine was not in elastic mode.  This event triggers the start of nonlinear elastic mode, which remains in effect for all subsequent iterations.  Once in elastic mode, the QP subproblems are associated with the elastic problem <a class="eqn" href="#elasticproblem">(8)</a> (see <a class="sec" href="#ad-treatment">Section 10.2</a>).  It is also printed if the minimizer of the elastic subproblem does not satisfy the linearized constraints when the routine is already in elastic mode.  (In this case, a feasible point for the usual QP subproblem may or may not exist.)
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">w</span></td>
<td valign="top">
is printed if a weak solution of the QP subproblem was found.
</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:10.2em;" valign="baseline"><span class="mono">Variable</span></td>
<td valign="top">
gives the name of the variable.  If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NNAME"><m:mi mathcolor="#EE0000" mathvariant="bold">NNAME</m:mi></m:maction><m:mo>=</m:mo><m:mn>1</m:mn></m:math>, a default name is assigned to the <m:math><m:mi>j</m:mi></m:math>th variable 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>.  If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NNAME"><m:mi mathcolor="#EE0000" mathvariant="bold">NNAME</m:mi></m:maction><m:mo>=</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:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction></m:math>, the name supplied in <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#NAMES"><m:mi mathcolor="#EE0000" mathvariant="bold">NAMES</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow></m:math>&#160;is assigned to the <m:math><m:mi>j</m:mi></m:math>th variable.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">State</span></td>
<td valign="top">
gives the state of the variable (<span class="mono">LL</span> if nonbasic on its lower bound, <span class="mono">UL</span> if nonbasic on its upper bound, <span class="mono">EQ</span> if nonbasic and fixed, <span class="mono">FR</span> if nonbasic and strictly between its bounds, <span class="mono">BS</span> if basic and <span class="mono">SBS</span> if superbasic).

 <div class="paramtext">

A key is sometimes printed before <span class="mono">State</span>.
 Note that unless the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_scaleoption"><m:mi mathcolor="#800080;" mathvariant="bold">Scale Option</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math>&#160;is specified, the tests for assigning a key are applied to the variables of the scaled problem.

 <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 nonbasic, but its reduced gradient is essentially zero.  This means that if the variable were allowed to start moving away from its current value, there would be no change in the value of the objective function.  The values of the basic and superbasic variables <span class="italic">might</span> change, giving a genuine alternative solution.  The values of the Lagrange multipliers <span class="italic">might</span> 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 basic, 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 basic and is currently violating one of its bounds by more than the value of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_minorfeasibilitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Minor Feasibility Tolerance</m:mi></m:maction></m:math>.
</td>
</tr><tr>
<td style="width:3.0em;" valign="baseline"><span class="mono">N</span></td>
<td valign="top">
<span class="italic">Not precisely optimal</span>.  The variable is nonbasic.  Its reduced gradient is larger than the value of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_majorfeasibilitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Major Feasibility Tolerance</m:mi></m:maction></m:math>.
</td>
</tr></table>
 </div></td>
</tr><tr>
<td style="width:10.2em;" 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:10.2em;" 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:10.2em;" 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:10.2em;" 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>.  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>, nonpositive if <span class="mono">State</span> is <span class="mono">UL</span> and zero if <span class="mono">State</span> is <span class="mono">BS</span> or <span class="mono">SBS</span>.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Residual</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:mi>n</m:mi></m:math>&#160;replaced by <m:math><m:mi>m</m:mi></m:math>, <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#NAMES"><m:mi mathcolor="#EE0000" mathvariant="bold">NAMES</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow></m:math>&#160;replaced by <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#NAMES"><m:mi mathcolor="#EE0000" mathvariant="bold">NAMES</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>, <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.  The heading is changed as follows:
<table class="standard-100"><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Constrnt</span></td>
<td valign="top">
gives the name of the general constraint.
</td>
</tr></table>
</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><h3 class="standard"><a class="sec" name="fc-minorprintout" id="fc-minorprintout"/>8.2&#160;&#160;Minor Iteration Printout</h3>
<div class="paramtext">This section describes the printout produced by the minor iterations of E04UGF/E04UGA, which involve solving a QP subproblem at every major iteration.  (Further details can be found in <a class="sec" href="#fc-majorprintout">Section 8.1</a>.)  The 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_minorprintlevel"><m:mi mathcolor="#800080;" mathvariant="bold">Minor Print Level</m:mi></m:maction></m:math>).  Note that the printout is produced only if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_minorprintlevel"><m:mi mathcolor="#800080;" mathvariant="bold">Minor Print Level</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>1</m:mn></m:math>&#160;(<m:math><m:mtext>default value</m:mtext><m:mo>=</m:mo><m:mn>0</m:mn></m:math>, which produces no output).</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 minor iteration.  In all cases, the values of the quantities printed are those in effect <span class="italic">on completion</span> of the given iteration of the QP subproblem.
<table class="standard-100"><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Itn</span></td>
<td valign="top">
is the iteration count.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Step</span></td>
<td valign="top">
is the step taken along the computed search direction.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Ninf</span></td>
<td valign="top">
is the number of infeasibilities.  This will not increase unless the iterations are in elastic mode.  <span class="mono">Ninf</span> will be zero during the optimality phase.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Sinf</span></td>
<td valign="top">
is the value of the sum of infeasibilities if <span class="mono">Ninf</span> is nonzero.  This will be zero during the optimality phase.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Objective</span></td>
<td valign="top">
is the value of the current QP objective function when <span class="mono">Ninf</span> is zero and the iterations are not in elastic mode.  The switch to elastic mode is indicated by a change in the heading to <span class="mono">Composite Obj</span>.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Composite Obj</span></td>
<td valign="top">
is the value of the composite objective function <a class="eqn" href="#comp-objective-func">(9)</a> when the iterations are in elastic mode.  This function will decrease monotonically at each iteration.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Norm rg</span></td>
<td valign="top">
is the Euclidean norm of the reduced gradient of the QP objective function.  During the optimality phase, this norm will be approximately zero after a unit step.
</td>
</tr></table>
</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 is a reformulation of Problem 74 in <a class="ref" href="#ref093">Hock and Schittkowski (1981)</a> and involves the minimization of the nonlinear function

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced><m:mo>=</m:mo><m:msup><m:mn>10</m:mn><m:mrow><m:mo>-</m:mo><m:mn>6</m:mn></m:mrow></m:msup><m:msubsup><m:mi>x</m:mi><m:mn>3</m:mn><m:mn>3</m:mn></m:msubsup><m:mo>+</m:mo><m:mfrac other="small"><m:mn>2</m:mn><m:mn>3</m:mn></m:mfrac><m:mo>&#215;</m:mo><m:msup><m:mn>10</m:mn><m:mrow><m:mo>-</m:mo><m:mn>6</m:mn></m:mrow></m:msup><m:msubsup><m:mi>x</m:mi><m:mn>4</m:mn><m:mn>3</m:mn></m:msubsup><m:mo>+</m:mo><m:mn>3</m:mn><m:msub><m:mi>x</m:mi><m:mn>3</m:mn></m:msub><m:mo>+</m:mo><m:mn>2</m:mn><m:msub><m:mi>x</m:mi><m:mn>4</m:mn></m:msub>
</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.55</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.55</m:mn><m:mtext>,</m:mtext></m:mtd>
 </m:mtr><m:mtr>
  <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>0.55</m:mn></m:mrow><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.55</m:mn><m:mtext>,</m:mtext></m:mtd>
 </m:mtr><m:mtr>
  <m:mtd><m:mphantom><m:mo>-</m:mo> <m:mn>0.0</m:mn></m:mphantom><m:mn>0</m:mn><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>1200</m:mn><m:mtext>,</m:mtext></m:mtd>
 </m:mtr><m:mtr>
  <m:mtd><m:mphantom><m:mo>-</m:mo> <m:mn>0.0</m:mn></m:mphantom><m:mn>0</m:mn><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>1200</m:mn><m:mtext>,</m:mtext></m:mtd>
 </m:mtr>
</m:mtable>
</m:math></td><td class="formula2"/></tr></table></div>

to the nonlinear constraints

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mtable columnalign="left">
 <m:mtr>
  <m:mtd><m:mn>1000</m:mn><m:mrow><m:mi>sin</m:mi><m:mfenced separators=""><m:mo>-</m:mo><m:msub><m:mi>x</m:mi><m:mn>1</m:mn></m:msub><m:mo>-</m:mo><m:mn>0.25</m:mn></m:mfenced></m:mrow></m:mtd>
  <m:mtd><m:mo>+</m:mo></m:mtd>
  <m:mtd><m:mn>1000</m:mn><m:mrow><m:mi>sin</m:mi><m:mfenced separators=""><m:mo>-</m:mo><m:msub><m:mi>x</m:mi><m:mn>2</m:mn></m:msub><m:mo>-</m:mo><m:mn>0.25</m:mn></m:mfenced></m:mrow><m:mo>-</m:mo><m:msub><m:mi>x</m:mi><m:mn>3</m:mn></m:msub></m:mtd>
  <m:mtd><m:mo>=</m:mo></m:mtd>
  <m:mtd columnalign="right"><m:mo>-</m:mo><m:mn>894.8</m:mn><m:mtext>,</m:mtext></m:mtd>
 </m:mtr><m:mtr>
  <m:mtd><m:mn>1000</m:mn><m:mrow><m:mi>sin</m:mi><m:mfenced separators=""><m:msub><m:mi>x</m:mi><m:mn>1</m:mn></m:msub><m:mo>-</m:mo><m:mn>0.25</m:mn></m:mfenced></m:mrow></m:mtd>
  <m:mtd><m:mo>+</m:mo></m:mtd>
  <m:mtd><m:mn>1000</m:mn><m:mrow><m:mi>sin</m:mi><m:mfenced separators=""><m:msub><m:mi>x</m:mi><m:mn>1</m:mn></m:msub><m:mo>-</m:mo><m:msub><m:mi>x</m:mi><m:mn>2</m:mn></m:msub><m:mo>-</m:mo><m:mn>0.25</m:mn></m:mfenced></m:mrow><m:mo>-</m:mo><m:msub><m:mi>x</m:mi><m:mn>4</m:mn></m:msub></m:mtd>
  <m:mtd><m:mo>=</m:mo></m:mtd>
  <m:mtd columnalign="right"><m:mo>-</m:mo><m:mn>894.8</m:mn><m:mtext>,</m:mtext></m:mtd>
 </m:mtr><m:mtr>
  <m:mtd><m:mn>1000</m:mn><m:mrow><m:mi>sin</m:mi><m:mfenced separators=""><m:msub><m:mi>x</m:mi><m:mn>2</m:mn></m:msub><m:mo>-</m:mo><m:mn>0.25</m:mn></m:mfenced></m:mrow></m:mtd>
  <m:mtd><m:mo>+</m:mo></m:mtd>
  <m:mtd><m:mn>1000</m:mn><m:mrow><m:mi>sin</m:mi><m:mfenced separators=""><m:msub><m:mi>x</m:mi><m:mn>2</m:mn></m:msub><m:mo>-</m:mo><m:msub><m:mi>x</m:mi><m:mn>1</m:mn></m:msub><m:mo>-</m:mo><m:mn>0.25</m:mn></m:mfenced></m:mrow></m:mtd>
  <m:mtd><m:mo>=</m:mo></m:mtd>
  <m:mtd columnalign="right"><m:mo>-</m:mo><m:mn>1294.8</m:mn><m:mtext>,</m:mtext></m:mtd>
 </m:mtr>
</m:mtable>
</m:math></td><td class="formula2"/></tr></table></div>

and to the linear constraints

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mtable>
 <m:mtr>
  <m:mtd><m:mo>-</m:mo><m:msub><m:mi>x</m:mi><m:mn>1</m:mn></m:msub><m:mo>+</m:mo><m:msub><m:mi>x</m:mi><m:mn>2</m:mn></m:msub><m:mo>&#8805;</m:mo><m:mrow><m:mo>-</m:mo><m:mn>0.55</m:mn></m:mrow><m:mtext>,</m:mtext></m:mtd>
 </m:mtr><m:mtr>
  <m:mtd><m:mphantom><m:mo>-</m:mo></m:mphantom><m:msub><m:mi>x</m:mi><m:mn>1</m:mn></m:msub><m:mo>-</m:mo><m:msub><m:mi>x</m:mi><m:mn>2</m:mn></m:msub><m:mo>&#8805;</m:mo><m:mrow><m:mo>-</m:mo><m:mn>0.55</m:mn></m:mrow><m:mtext>.</m:mtext></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><m:mtable>
    <m:mtr>
     <m:mtd><m:mn>0</m:mn><m:mtext>,</m:mtext></m:mtd>
     <m:mtd><m:mn>0</m:mn><m:mtext>,</m:mtext></m:mtd>
     <m:mtd><m:mn>0</m:mn><m:mtext>,</m:mtext></m:mtd>
     <m:mtd><m:mn>0</m:mn></m:mtd>
    </m:mtr>
   </m:mtable></m:mfenced><m:mi mathvariant="normal">T</m:mi></m:msup>
 <m:mtext>,</m:mtext>
</m:math></td><td class="formula2"/></tr></table></div>

and <m:math><m:mi>f</m:mi><m:mfenced separators=""><m:msub><m:mi>x</m:mi><m:mn>0</m:mn></m:msub></m:mfenced><m:mo>=</m:mo><m:mn>0</m:mn></m:math>.</div><div class="paramtext">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:mn>0.11887</m:mn><m:mo>,</m:mo><m:mrow><m:mo>-</m:mo><m:mn>0.39623</m:mn></m:mrow><m:mo>,</m:mo><m:mn>679.94</m:mn><m:mo>,</m:mo><m:mn>1026.0</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>

and <m:math><m:mi>f</m:mi><m:mfenced separators=""><m:msup><m:mi>x</m:mi><m:mo>*</m:mo></m:msup></m:mfenced><m:mo>=</m:mo><m:mn>5126.4</m:mn></m:math>.  All the nonlinear constraints are active at the solution.</div><div class="paramtext">The document for <a class="rout" href="../E04/e04uhf.xml">E04UHF/E04UHA</a> includes an example program to solve Problem 45 from <a class="ref" href="#ref093">Hock and Schittkowski (1981)</a> 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 E04UGF and E04UGA</span>.</div><p><a class="verbatimref" href="../../examples/source/e04ugfe.f">Program Text (e04ugfe.f)</a></p><p><a class="verbatimref" href="../../examples/source/e04ugae.f">Program Text (e04ugae.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/e04ugfe.d">Program&#160;Data (e04ugfe.d)</a></p><p><a class="verbatimref" href="../../examples/data/e04ugae.d">Program&#160;Data (e04ugae.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/e04ugfe.r">Program Results (e04ugfe.r)</a></p><p><a class="verbatimref" href="../../examples/baseresults/e04ugae.r">Program Results (e04ugae.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/e04uhf.xml">E04UHF/E04UHA</a> and/or <a class="rout" href="../E04/e04ujf.xml">E04UJF/E04UJA</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 E04UGF/E04UGA.</div><h3 class="standard"><a class="sec" name="ad-overview" id="ad-overview"/>10.1&#160;&#160;Overview</h3>
<div class="paramtext">Here we briefly summarize the main features of the method and introduce some terminology.  Where possible, explicit reference is made to the names of variables that are parameters of the routine or appear in the printed output.  Further details can be found in <a class="ref" href="#ref658">Gill <span class="italic">et al.</span> (2002)</a>.</div><div class="paramtext">At a solution of <a class="eqn" href="#eqn1">(1)</a>, some of the constraints will be <span class="italic">active</span>, i.e., satisfied exactly.  Let

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mi>r</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced><m:mo>=</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>F</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:mtd>
  </m:mtr><m:mtr>
   <m:mtd><m:mi>G</m:mi><m:mi>x</m:mi></m:mtd>
  </m:mtr>
 </m:mtable></m:mfenced>
</m:math></td><td class="formula2"/></tr></table></div>

and <m:math><m:mi mathvariant="script">G</m:mi></m:math>&#160;denote the set of indices of <m:math><m:mi>r</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;corresponding to active constraints at an arbitrary point <m:math><m:mi>x</m:mi></m:math>.  Let <m:math><m:msubsup><m:mi>r</m:mi><m:mi>j</m:mi><m:mo>&#8242;</m:mo></m:msubsup><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;denote the usual <span class="italic">derivative</span> of <m:math><m:msub><m:mi>r</m:mi><m:mi>j</m:mi></m:msub><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>, which is the row vector of first partial derivatives of <m:math><m:msub><m:mi>r</m:mi><m:mi>j</m:mi></m:msub><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;(see <a class="ref" href="#ref197">Ortega and Rheinboldt (1970)</a>).  The vector <m:math><m:msubsup><m:mi>r</m:mi><m:mi>j</m:mi><m:mo>&#8242;</m:mo></m:msubsup><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;comprises the <m:math><m:mi>j</m:mi></m:math>th row of <m:math><m:msup><m:mi>r</m:mi><m:mo>&#8242;</m:mo></m:msup><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;so that

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:msup><m:mi>r</m:mi><m:mo>&#8242;</m:mo></m:msup><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced><m:mo>=</m:mo>
 <m:mfenced><m:mtable>
  <m:mtr>
   <m:mtd><m:mi>I</m:mi></m:mtd>
  </m:mtr><m:mtr>
   <m:mtd><m:mi>J</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:mtd>
  </m:mtr><m:mtr>
   <m:mtd><m:mi>G</m:mi></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:mi>J</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;is the Jacobian of <m:math><m:mi>F</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>.</div><div class="paramtext">A point <m:math><m:mi>x</m:mi></m:math>&#160;is a <span class="italic">first-order Kuhn&#8211;Karesh&#8211;Tucker (KKT) point</span> for <a class="eqn" href="#eqn1">(1)</a> (see <a class="ref" href="#ref096">Powell (1974)</a>) if the following conditions hold:
<table class="standard-100"><tr>
<td style="width:2.1em;" valign="baseline">(a)</td>
<td valign="top"><m:math><m:mi>x</m:mi></m:math>&#160;is feasible;</td>
</tr><tr>
<td style="width:2.1em;" valign="baseline">(b)</td>
<td valign="top">there exists a vector <m:math><m:mi>&#955;</m:mi></m:math>&#160;(<span class="italic">the Lagrange multiplier vector for the bound and general constraints</span>) such that

<div class="formula-eqn"><a name="eqn4" id="eqn4"/><table class="formula-eqn"><tr><td class="formula-eqn"><m:math display="block">
<m:mi>g</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced><m:mo>=</m:mo><m:msup><m:mi>r</m:mi><m:mo>&#8242;</m:mo></m:msup><m:msup><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>&#955;</m:mi><m:mo>=</m:mo><m:mfenced separators=""><m:mi>I</m:mi><m:mtext>&#8195;</m:mtext><m:mi>J</m:mi><m:msup><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced><m:mi mathvariant="normal">T</m:mi></m:msup><m:mtext>&#8195;</m:mtext><m:msup><m:mi>G</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup></m:mfenced><m:mi>&#955;</m:mi><m:mtext>,</m:mtext>
</m:math></td><td class="formula-eqn2">
      (4)
     </td></tr></table></div>

where <m:math><m:mi>g</m:mi></m:math>&#160;is the gradient of <m:math><m:mi>f</m:mi></m:math>&#160;evaluated at <m:math><m:mi>x</m:mi></m:math>;</td>
</tr><tr>
<td style="width:2.1em;" valign="baseline">(c)</td>
<td valign="top">the Lagrange multiplier <m:math><m:msub><m:mi>&#955;</m:mi><m:mi>j</m:mi></m:msub></m:math>&#160;associated with the <m:math><m:mi>j</m:mi></m:math>th constraint satisfies <m:math><m:msub><m:mi>&#955;</m:mi><m:mi>j</m:mi></m:msub><m:mo>=</m:mo><m:mn>0</m:mn></m:math>&#160;if <m:math><m:msub><m:mi>l</m:mi><m:mi>j</m:mi></m:msub><m:mo>&lt;</m:mo><m:msub><m:mi>r</m:mi><m:mi>j</m:mi></m:msub><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced><m:mo>&lt;</m:mo><m:msub><m:mi>u</m:mi><m:mi>j</m:mi></m:msub></m:math>; <m:math><m:msub><m:mi>&#955;</m:mi><m:mi>j</m:mi></m:msub><m:mo>&#8805;</m:mo><m:mn>0</m:mn></m:math>&#160;if <m:math><m:msub><m:mi>l</m:mi><m:mi>j</m:mi></m:msub><m:mo>=</m:mo><m:msub><m:mi>r</m:mi><m:mi>j</m:mi></m:msub><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>; <m:math><m:msub><m:mi>&#955;</m:mi><m:mi>j</m:mi></m:msub><m:mo>&#8804;</m:mo><m:mn>0</m:mn></m:math>&#160;if <m:math><m:msub><m:mi>r</m:mi><m:mi>j</m:mi></m:msub><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced><m:mo>=</m:mo><m:msub><m:mi>u</m:mi><m:mi>j</m:mi></m:msub></m:math>; and <m:math><m:msub><m:mi>&#955;</m:mi><m:mi>j</m:mi></m:msub></m:math>&#160;can have any value if <m:math><m:msub><m:mi>l</m:mi><m:mi>j</m:mi></m:msub><m:mo>=</m:mo><m:msub><m:mi>u</m:mi><m:mi>j</m:mi></m:msub></m:math>.</td>
</tr></table>
</div><div class="paramtext">An equivalent statement of the condition <a class="eqn" href="#eqn4">(4)</a> is

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:msup><m:mi>Z</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>g</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced><m:mo>=</m:mo><m:mn>0</m:mn><m:mtext>,</m:mtext>
</m:math></td><td class="formula2"/></tr></table></div>

where <m:math><m:mi>Z</m:mi></m:math>&#160;is a matrix defined as follows.  Consider the set <m:math><m:mi>N</m:mi></m:math>&#160;of vectors orthogonal to the gradients of the active constraints, i.e.,

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
 <m:mi>N</m:mi>
 <m:mo>=</m:mo>
 <m:mfenced open="{" close="}" separators="">
  <m:mi>z</m:mi>
  <m:mtext>&#8195;</m:mtext>
  <m:mo>&#8739;</m:mo>
  <m:mtext>&#8195;</m:mtext>
  <m:msubsup><m:mi>r</m:mi><m:mi>j</m:mi><m:mo>&#8242;</m:mo></m:msubsup>
  <m:mfenced separators=""><m:mi>x</m:mi></m:mfenced>
  <m:mi>z</m:mi><m:mo>=</m:mo><m:mn>0</m:mn>
  <m:mtext>&#8195; for all &#8195;</m:mtext>
  <m:mi>j</m:mi><m:mo>&#8712;</m:mo><m:mi mathvariant="script">G</m:mi>
 </m:mfenced>
<m:mtext>.</m:mtext>
</m:math></td><td class="formula2"/></tr></table></div>

The columns of <m:math><m:mi>Z</m:mi></m:math>&#160;may then be taken as any basis for the vector space <m:math><m:mi>N</m:mi></m:math>.  The vector <m:math><m:msup><m:mi>Z</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>g</m:mi></m:math>&#160;is termed the <span class="italic">reduced gradient</span> of <m:math><m:mi>f</m:mi></m:math>&#160;at <m:math><m:mi>x</m:mi></m:math>.  Certain additional conditions must be satisfied in order for a first-order KKT point to be a solution of <a class="eqn" href="#eqn1">(1)</a> (see <a class="ref" href="#ref096">Powell (1974)</a>).</div><div class="paramtext">The basic structure of E04UGF/E04UGA involves <span class="italic">major</span> and <span class="italic">minor</span> iterations.  The major iterations generate a sequence of iterates <m:math><m:mfenced open="{" close="}" separators=""><m:msub><m:mi>x</m:mi><m:mi>k</m:mi></m:msub></m:mfenced></m:math>&#160;that satisfy the linear constraints and converge to a point <m:math><m:msup><m:mi>x</m:mi><m:mo>*</m:mo></m:msup></m:math>&#160;that satisfies the first-order KKT optimality conditions.  At each iterate a QP subproblem is used to generate a search direction towards the next iterate (<m:math><m:msub><m:mi>x</m:mi><m:mrow><m:mi>k</m:mi><m:mo>+</m:mo><m:mn>1</m:mn></m:mrow></m:msub></m:math>).  The constraints of the subproblem are formed from the linear constraints <m:math><m:mi>G</m:mi><m:mi>x</m:mi><m:mo>-</m:mo><m:msub><m:mi>s</m:mi><m:mi>L</m:mi></m:msub><m:mo>=</m:mo><m:mn>0</m:mn></m:math>&#160;and the nonlinear constraint linearization

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mi>F</m:mi><m:mfenced separators=""><m:msub><m:mi>x</m:mi><m:mi>k</m:mi></m:msub></m:mfenced><m:mo>+</m:mo><m:msup><m:mi>F</m:mi><m:mo>&#8242;</m:mo></m:msup><m:mfenced separators=""><m:msub><m:mi>x</m:mi><m:mi>k</m:mi></m:msub></m:mfenced><m:mfenced separators=""><m:mi>x</m:mi><m:mo>-</m:mo><m:msub><m:mi>x</m:mi><m:mi>k</m:mi></m:msub></m:mfenced><m:mo>-</m:mo><m:msub><m:mi>s</m:mi><m:mi>N</m:mi></m:msub><m:mo>=</m:mo><m:mn>0</m:mn><m:mtext>,</m:mtext>
</m:math></td><td class="formula2"/></tr></table></div>

where <m:math><m:msup><m:mi>F</m:mi><m:mo>&#8242;</m:mo></m:msup><m:mfenced separators=""><m:msub><m:mi>x</m:mi><m:mi>k</m:mi></m:msub></m:mfenced></m:math>&#160;denotes the <span class="italic">Jacobian matrix</span>, whose rows are the first partial derivatives of <m:math><m:mi>F</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;evaluated at the point <m:math><m:msub><m:mi>x</m:mi><m:mi>k</m:mi></m:msub></m:math>.  The QP constraints therefore comprise the <m:math><m:mi>m</m:mi></m:math>&#160;linear constraints

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mtable>
 <m:mtr>
  <m:mtd><m:msup><m:mi>F</m:mi><m:mo>&#8242;</m:mo></m:msup><m:mfenced separators=""><m:msub><m:mi>x</m:mi><m:mi>k</m:mi></m:msub></m:mfenced><m:mi>x</m:mi><m:mo>-</m:mo><m:msub><m:mi>s</m:mi><m:mi>N</m:mi></m:msub><m:mphantom><m:mo>-</m:mo></m:mphantom><m:mphantom><m:msub><m:mi>s</m:mi><m:mi>L</m:mi></m:msub></m:mphantom><m:mo>=</m:mo><m:mo>-</m:mo><m:mi>F</m:mi><m:mfenced separators=""><m:msub><m:mi>x</m:mi><m:mi>k</m:mi></m:msub></m:mfenced><m:mo>+</m:mo><m:msup><m:mi>F</m:mi><m:mo>&#8242;</m:mo></m:msup><m:mfenced separators=""><m:msub><m:mi>x</m:mi><m:mi>k</m:mi></m:msub></m:mfenced><m:msub><m:mi>x</m:mi><m:mi>k</m:mi></m:msub><m:mtext>,</m:mtext></m:mtd>
 </m:mtr><m:mtr>
  <m:mtd><m:mphantom><m:mo>'</m:mo><m:mfenced separators=""><m:msub><m:mi>x</m:mi><m:mi>k</m:mi></m:msub></m:mfenced></m:mphantom><m:mi>G</m:mi><m:mi>x</m:mi><m:mphantom><m:mo>-</m:mo></m:mphantom><m:mphantom><m:msub><m:mi>s</m:mi><m:mi>N</m:mi></m:msub></m:mphantom><m:mo>-</m:mo><m:msub><m:mi>s</m:mi><m:mi>L</m:mi></m:msub><m:mo>=</m:mo><m:mn>0</m:mn><m:mo>,</m:mo><m:mphantom><m:mi>F</m:mi><m:mfenced separators=""><m:msub><m:mi>x</m:mi><m:mi>k</m:mi></m:msub></m:mfenced><m:mo>+</m:mo><m:msup><m:mi>F</m:mi><m:mo>&#8242;</m:mo></m:msup><m:mfenced separators=""><m:msub><m:mi>x</m:mi><m:mi>k</m:mi></m:msub></m:mfenced><m:msub><m:mi>x</m:mi><m:mi>k</m:mi></m:msub></m:mphantom></m:mtd>
 </m:mtr>
</m:mtable>
</m:math></td><td class="formula2"/></tr></table></div>

where <m:math><m:mi>x</m:mi></m:math>&#160;and <m:math><m:mi>s</m:mi><m:mo>=</m:mo><m:msup><m:mfenced separators=""><m:msub><m:mi>s</m:mi><m:mi>N</m:mi></m:msub><m:mo>,</m:mo><m:msub><m:mi>s</m:mi><m:mi>L</m:mi></m:msub></m:mfenced><m:mi mathvariant="normal">T</m:mi></m:msup></m:math>&#160;are bounded above and below by <m:math><m:mi>u</m:mi></m:math>&#160;and <m:math><m:mi>l</m:mi></m:math>&#160;as before.  If the <m:math><m:mi>m</m:mi></m:math>&#160;by <m:math><m:mi>n</m:mi></m:math>&#160;matrix <m:math><m:mi>A</m:mi></m:math>&#160;and <m:math><m:mi>m</m:mi></m:math>&#160;element vector <m:math><m:mi>b</m:mi></m:math>&#160;are defined as

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mi>A</m:mi><m:mo>=</m:mo>
 <m:mfenced><m:mtable>
  <m:mtr>
   <m:mtd><m:msup><m:mi>F</m:mi><m:mo>&#8242;</m:mo></m:msup><m:mfenced separators=""><m:msub><m:mi>x</m:mi><m:mi>k</m:mi></m:msub></m:mfenced></m:mtd>
  </m:mtr><m:mtr>
   <m:mtd><m:mi>G</m:mi></m:mtd>
  </m:mtr>
 </m:mtable></m:mfenced>
<m:mtext>&#8195; and &#8195;</m:mtext><m:mi>b</m:mi><m:mo>=</m:mo>
 <m:mfenced><m:mtable>
  <m:mtr>
   <m:mtd><m:mo>-</m:mo><m:mi>F</m:mi><m:mfenced separators=""><m:msub><m:mi>x</m:mi><m:mi>k</m:mi></m:msub></m:mfenced><m:mo>+</m:mo><m:msup><m:mi>F</m:mi><m:mo>&#8242;</m:mo></m:msup><m:mfenced separators=""><m:msub><m:mi>x</m:mi><m:mi>k</m:mi></m:msub></m:mfenced><m:msub><m:mi>x</m:mi><m:mi>k</m:mi></m:msub></m:mtd>
  </m:mtr><m:mtr>
   <m:mtd><m:mn>0</m:mn></m:mtd>
  </m:mtr>
 </m:mtable></m:mfenced>
<m:mtext>,</m:mtext>
</m:math></td><td class="formula2"/></tr></table></div>

then the QP subproblem can be written as

<div class="formula-eqn"><a name="eqn5" id="eqn5"/><table class="formula-eqn"><tr><td class="formula-eqn"><m:math display="block">
<m:mtable>
 <m:mtr>
  <m:mtd><m:munder><m:mi mathvariant="normal">minimize</m:mi><m:mrow><m:mi>x</m:mi><m:mo>,</m:mo><m:mi>s</m:mi></m:mrow></m:munder><m:mspace width="0.25em"/><m:mi>q</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced><m:mtext>&#8195; subject to &#8195;</m:mtext><m:mi>A</m:mi><m:mi>x</m:mi><m:mo>-</m:mo><m:mi>s</m:mi><m:mo>=</m:mo><m:mi>b</m:mi><m:mtext>, &#8195;</m:mtext><m:mi>l</m:mi><m:mo>&#8804;</m:mo><m:mfenced open="{" close="}" separators="">
 <m:mtable>
   <m:mtr>
     <m:mtd><m:mi>x</m:mi></m:mtd>
   </m:mtr><m:mtr>
     <m:mtd><m:mi>s</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:mtd>
 </m:mtr>
</m:mtable>
</m:math></td><td class="formula-eqn2">
      (5)
     </td></tr></table></div>

where <m:math><m:mi>q</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;is a quadratic approximation to a modified Lagrangian function (see <a class="ref" href="#ref658">Gill <span class="italic">et al.</span> (2002)</a>).</div><div class="paramtext">The linear constraint matrix <m:math><m:mi>A</m:mi></m:math>&#160;is stored in the arrays <a class="arg" href="#A">A</a>, <a class="arg" href="#HA">HA</a> and <a class="arg" href="#KA">KA</a> (see <a class="sec" href="#parameters">Section 5</a>).  This allows you to specify the sparsity pattern of nonzero elements in <m:math><m:msup><m:mi>F</m:mi><m:mo>&#8242;</m:mo></m:msup><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;and <m:math><m:mi>G</m:mi></m:math>&#160;and to identify any nonzero elements that remain constant throughout the minimization.</div><div class="paramtext">Solving the QP subproblem is itself an iterative procedure, with the <span class="italic">minor</span> iterations of an SQP method being the iterations of the QP method.  At each minor iteration, the constraints <m:math><m:mi>A</m:mi><m:mi>x</m:mi><m:mo>-</m:mo><m:mi>s</m:mi><m:mo>=</m:mo><m:mi>b</m:mi></m:math>&#160;are (conceptually) partitioned into the form

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mi>B</m:mi><m:msub><m:mi>x</m:mi><m:mi>B</m:mi></m:msub><m:mo>+</m:mo><m:mi>S</m:mi><m:msub><m:mi>x</m:mi><m:mi>S</m:mi></m:msub><m:mo>+</m:mo><m:mi>N</m:mi><m:msub><m:mi>x</m:mi><m:mi>N</m:mi></m:msub><m:mo>=</m:mo><m:mi>b</m:mi><m:mtext>,</m:mtext>
</m:math></td><td class="formula2"/></tr></table></div>

where the <span class="italic">basis matrix</span>
<m:math><m:mi>B</m:mi></m:math>&#160;is square and nonsingular.  The elements of <m:math><m:msub><m:mi>x</m:mi><m:mi>B</m:mi></m:msub></m:math>, <m:math><m:msub><m:mi>x</m:mi><m:mi>S</m:mi></m:msub></m:math>&#160;and <m:math><m:msub><m:mi>x</m:mi><m:mi>N</m:mi></m:msub></m:math>&#160;are called the <span class="italic">basic</span>, <span class="italic">superbasic</span> and <span class="italic">nonbasic</span> variables respectively; they are a permutation of the elements of <m:math><m:mi>x</m:mi></m:math>&#160;and <m:math><m:mi>s</m:mi></m:math>.  At a QP solution, the basic and superbasic variables will lie somewhere between their bounds, while the nonbasic variables will be equal to one of their upper or lower bounds.  At each minor iteration, <m:math><m:msub><m:mi>x</m:mi><m:mi>S</m:mi></m:msub></m:math>&#160;is regarded as a set of independent variables that are free to move in any desired direction, namely one that will improve the value of the QP objective function <m:math><m:mi>q</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;or sum of infeasibilities (as appropriate).  The basic variables are then adjusted in order to ensure that (<m:math><m:mi>x</m:mi><m:mo>,</m:mo><m:mi>s</m:mi></m:math>) continues to satisfy <m:math><m:mi>A</m:mi><m:mi>x</m:mi><m:mo>-</m:mo><m:mi>s</m:mi><m:mo>=</m:mo><m:mi>b</m:mi></m:math>.  The number of superbasic variables (<m:math><m:msub><m:mi>n</m:mi><m:mi>S</m:mi></m:msub></m:math>&#160;say) therefore indicates the number of degrees of freedom remaining after the constraints have been satisfied.  In broad terms, <m:math><m:msub><m:mi>n</m:mi><m:mi>S</m:mi></m:msub></m:math>&#160;is a measure of <span class="italic">how nonlinear</span> the problem is.  In particular, <m:math><m:msub><m:mi>n</m:mi><m:mi>S</m:mi></m:msub></m:math>&#160;will always be zero if there are no nonlinear constraints in <a class="eqn" href="#eqn1">(1)</a> and <m:math><m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;is linear.</div><div class="paramtext">If it appears that no improvement can be made with the current definition of <m:math><m:mi>B</m:mi></m:math>, <m:math><m:mi>S</m:mi></m:math>&#160;and <m:math><m:mi>N</m:mi></m:math>, a nonbasic variable is selected to be added to <m:math><m:mi>S</m:mi></m:math>&#160;and the process is repeated with the value of <m:math><m:msub><m:mi>n</m:mi><m:mi>S</m:mi></m:msub></m:math>&#160;increased by one.  At all stages, if a basic or superbasic variable encounters one of its bounds, the variable is made nonbasic and the value of <m:math><m:msub><m:mi>n</m:mi><m:mi>S</m:mi></m:msub></m:math>&#160;decreased by one.</div><div class="paramtext">Associated with each of the <m:math><m:mi>m</m:mi></m:math>&#160;equality constraints <m:math><m:mi>A</m:mi><m:mi>x</m:mi><m:mo>-</m:mo><m:mi>s</m:mi><m:mo>=</m:mo><m:mi>b</m:mi></m:math>&#160;is a <span class="italic">dual variable</span>
<m:math><m:msub><m:mi>&#960;</m:mi><m:mi>i</m:mi></m:msub></m:math>.  Similarly, each variable in <m:math><m:mfenced separators=""><m:mi>x</m:mi><m:mo>,</m:mo><m:mi>s</m:mi></m:mfenced></m:math>&#160;has an associated <span class="italic">reduced gradient</span>
<m:math><m:msub><m:mi>d</m:mi><m:mi>j</m:mi></m:msub></m:math>&#160;(also known as a <span class="italic">reduced cost</span>).  The reduced gradients for the variables <m:math><m:mi>x</m:mi></m:math>&#160;are the quantities <m:math><m:mi>g</m:mi><m:mo>-</m:mo><m:msup><m:mi>A</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>&#960;</m:mi></m:math>, where <m:math><m:mi>g</m:mi></m:math>&#160;is the gradient of the QP objective function <m:math><m:mi>q</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>; the reduced gradients for the slack variables <m:math><m:mi>s</m:mi></m:math>&#160;are the dual variables <m:math><m:mi>&#960;</m:mi></m:math>.  The QP subproblem <a class="eqn" href="#eqn5">(5)</a> is optimal if <m:math><m:msub><m:mi>d</m:mi><m:mi>j</m:mi></m:msub><m:mo>&#8805;</m:mo><m:mn>0</m:mn></m:math>&#160;for all nonbasic variables at their lower bounds, <m:math><m:msub><m:mi>d</m:mi><m:mi>j</m:mi></m:msub><m:mo>&#8804;</m:mo><m:mn>0</m:mn></m:math>&#160;for all nonbasic variables at their upper bounds and <m:math><m:msub><m:mi>d</m:mi><m:mi>j</m:mi></m:msub><m:mo>=</m:mo><m:mn>0</m:mn></m:math>&#160;for other variables (including superbasics).  In practice, an <span class="italic">approximate</span> QP solution is found by slightly relaxing these conditions on <m:math><m:msub><m:mi>d</m:mi><m:mi>j</m:mi></m:msub></m:math>&#160;(see the description of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_minoroptimalitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Minor Optimality Tolerance</m:mi></m:maction></m:math>).</div><div class="paramtext">After a QP subproblem has been solved, new estimates of the solution to <a class="eqn" href="#eqn1">(1)</a> are computed using a linesearch on the augmented Lagrangian merit function

<div class="formula-eqn"><a name="eqnlmf" id="eqnlmf"/><table class="formula-eqn"><tr><td class="formula-eqn"><m:math display="block">
 <m:mi mathvariant="script">M</m:mi>
 <m:mfenced separators=""><m:mi>x</m:mi><m:mo>,</m:mo><m:mi>s</m:mi><m:mo>,</m:mo><m:mi>&#960;</m:mi></m:mfenced>
 <m:mo>=</m:mo>
 <m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced>
 <m:mo>-</m:mo>
 <m:msup><m:mi>&#960;</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup>
 <m:mfenced separators="">
  <m:mi>F</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced>
  <m:mo>-</m:mo>
  <m:msub><m:mi>s</m:mi><m:mi>N</m:mi></m:msub>
 </m:mfenced>
 <m:mo>+</m:mo>
 <m:mfrac other="small"><m:mn>1</m:mn><m:mn>2</m:mn></m:mfrac>
 <m:msup><m:mfenced separators="">
   <m:mi>F</m:mi>
   <m:mfenced separators=""><m:mi>x</m:mi></m:mfenced>
   <m:mo>-</m:mo>
   <m:msub><m:mi>s</m:mi><m:mi>N</m:mi></m:msub>
  </m:mfenced><m:mi mathvariant="normal">T</m:mi></m:msup>
 <m:mi>D</m:mi>
  <m:mfenced separators="">
   <m:mi>F</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced>
   <m:mo>-</m:mo>
   <m:msub><m:mi>s</m:mi><m:mi>N</m:mi></m:msub>
  </m:mfenced>
 <m:mtext>,</m:mtext>
</m:math></td><td class="formula-eqn2">
      (6)
     </td></tr></table></div>

where <m:math><m:mi>D</m:mi></m:math>&#160;is a diagonal matrix of penalty parameters.  If (<m:math><m:msub><m:mi>x</m:mi><m:mi>k</m:mi></m:msub><m:mo>,</m:mo><m:msub><m:mi>s</m:mi><m:mi>k</m:mi></m:msub><m:mo>,</m:mo><m:msub><m:mi>&#960;</m:mi><m:mi>k</m:mi></m:msub></m:math>) denotes the current estimate of the solution and (<m:math><m:mover><m:mi>x</m:mi><m:mo>^</m:mo></m:mover><m:mo>,</m:mo><m:mover><m:mi>s</m:mi><m:mo>^</m:mo></m:mover><m:mo>,</m:mo><m:mover><m:mi>&#960;</m:mi><m:mo>^</m:mo></m:mover></m:math>) denotes the optimal QP solution, the linesearch determines a step <m:math><m:msub><m:mi>&#945;</m:mi><m:mi>k</m:mi></m:msub></m:math>&#160;(where <m:math><m:mn>0</m:mn><m:mo>&lt;</m:mo><m:msub><m:mi>&#945;</m:mi><m:mi>k</m:mi></m:msub><m:mo>&#8804;</m:mo><m:mn>1</m:mn></m:math>) such that the new point

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
 <m:mfenced><m:mtable>
  <m:mtr>
   <m:mtd><m:msub><m:mi>x</m:mi><m:mrow><m:mi>k</m:mi><m:mo>+</m:mo><m:mn>1</m:mn></m:mrow></m:msub></m:mtd>
  </m:mtr><m:mtr>
   <m:mtd><m:msub><m:mi>s</m:mi><m:mrow><m:mi>k</m:mi><m:mo>+</m:mo><m:mn>1</m:mn></m:mrow></m:msub></m:mtd>
  </m:mtr><m:mtr>
   <m:mtd><m:msub><m:mi>&#960;</m:mi><m:mrow><m:mi>k</m:mi><m:mo>+</m:mo><m:mn>1</m:mn></m:mrow></m:msub></m:mtd>
  </m:mtr>
 </m:mtable></m:mfenced>
 <m:mo>=</m:mo>
 <m:mfenced><m:mtable>
  <m:mtr>
   <m:mtd><m:msub><m:mi>x</m:mi><m:mi>k</m:mi></m:msub></m:mtd>
  </m:mtr><m:mtr>
   <m:mtd><m:msub><m:mi>s</m:mi><m:mi>k</m:mi></m:msub></m:mtd>
  </m:mtr><m:mtr>
   <m:mtd><m:msub><m:mi>&#960;</m:mi><m:mi>k</m:mi></m:msub></m:mtd>
  </m:mtr>
 </m:mtable></m:mfenced>
 <m:mo>+</m:mo><m:msub><m:mi>&#945;</m:mi><m:mi>k</m:mi></m:msub>
 <m:mfenced><m:mtable>
  <m:mtr>
   <m:mtd><m:msub><m:mover><m:mi>x</m:mi><m:mo>^</m:mo></m:mover><m:mi>k</m:mi></m:msub><m:mo>-</m:mo><m:msub><m:mi>x</m:mi><m:mi>k</m:mi></m:msub></m:mtd>
  </m:mtr><m:mtr>
   <m:mtd><m:msub><m:mover><m:mi>s</m:mi><m:mo>^</m:mo></m:mover><m:mi>k</m:mi></m:msub><m:mo>-</m:mo><m:msub><m:mi>s</m:mi><m:mi>k</m:mi></m:msub></m:mtd>
  </m:mtr><m:mtr>
   <m:mtd><m:msub><m:mover><m:mi>&#960;</m:mi><m:mo>^</m:mo></m:mover><m:mi>k</m:mi></m:msub><m:mo>-</m:mo><m:msub><m:mi>&#960;</m:mi><m:mi>k</m:mi></m:msub></m:mtd>
  </m:mtr>
 </m:mtable></m:mfenced>
</m:math></td><td class="formula2"/></tr></table></div>

produces a <span class="italic">sufficient decrease</span> in the merit function
<a class="eqn" href="#eqnlmf">(6)</a>.  When necessary, the penalties in <m:math><m:mi>D</m:mi></m:math>&#160;are increased by the minimum-norm perturbation that ensures descent for <m:math><m:mi mathvariant="script">M</m:mi></m:math>&#160;(see <a class="ref" href="#ref657">Gill <span class="italic">et al.</span> (1992)</a>).  As in <a class="rout" href="../E04/e04wdf.xml">E04WDF</a>, <m:math><m:msub><m:mi>s</m:mi><m:mi>N</m:mi></m:msub></m:math>&#160;is adjusted to minimize the merit function as a function of <m:math><m:mi>s</m:mi></m:math>&#160;before the solution of the QP subproblem.  Further details can be found in <a class="ref" href="#ref660">Eldersveld (1991)</a> and <a class="ref" href="#ref540">Gill <span class="italic">et al.</span> (1986)</a>.</div><h3 class="standard"><a class="sec" name="ad-treatment" id="ad-treatment"/>10.2&#160;&#160;Treatment of Constraint Infeasibilities</h3>
<div class="paramtext">E04UGF/E04UGA makes explicit allowance for infeasible constraints.  Infeasible linear constraints are detected first by solving a problem of the form

<div class="formula-eqn"><a name="eqn7" id="eqn7"/><table class="formula-eqn"><tr><td class="formula-eqn"><m:math display="block">
<m:mtable>
 <m:mtr>
  <m:mtd><m:munder><m:mi mathvariant="normal">minimize</m:mi><m:mrow><m:mi>x</m:mi><m:mo>,</m:mo><m:mi>v</m:mi><m:mo>,</m:mo><m:mi>w</m:mi></m:mrow></m:munder><m:mspace width="0.25em"/><m:msup><m:mi>e</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mfenced separators=""><m:mi>v</m:mi><m:mo>+</m:mo><m:mi>w</m:mi></m:mfenced><m:mtext>&#8195; subject to &#8195;</m:mtext><m:mi>l</m:mi><m:mo>&#8804;</m:mo><m:mfenced open="{" close="}" separators="">
 <m:mtable>
   <m:mtr>
     <m:mtd><m:mi>x</m:mi></m:mtd>
   </m:mtr><m:mtr>
     <m:mtd><m:mi>G</m:mi><m:mi>x</m:mi><m:mo>-</m:mo><m:mi>v</m:mi><m:mo>+</m:mo><m:mi>w</m:mi></m:mtd>
   </m:mtr>
 </m:mtable>
</m:mfenced>
<m:mo>&#8804;</m:mo><m:mi>u</m:mi><m:mtext>, &#8195;</m:mtext><m:mi>v</m:mi><m:mo>&#8805;</m:mo><m:mn>0</m:mn><m:mtext>, &#8195;</m:mtext><m:mi>w</m:mi><m:mo>&#8805;</m:mo><m:mn>0</m:mn><m:mtext>,</m:mtext></m:mtd>
 </m:mtr>
</m:mtable>
</m:math></td><td class="formula-eqn2">
      (7)
     </td></tr></table></div>

where <m:math><m:mi>e</m:mi><m:mo>=</m:mo><m:msup><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:mfenced><m:mi mathvariant="normal">T</m:mi></m:msup></m:math>.  This is equivalent to minimizing the sum of the general linear constraint violations subject to the simple bounds.  (In the linear programming literature, the approach is often called <span class="italic">elastic programming</span>.)</div><div class="paramtext">If the linear constraints are infeasible (i.e., <m:math><m:mi>v</m:mi><m:mo>&#8800;</m:mo><m:mn>0</m:mn></m:math>&#160;or <m:math><m:mi>w</m:mi><m:mo>&#8800;</m:mo><m:mn>0</m:mn></m:math>), the routine terminates without computing the nonlinear functions.</div><div class="paramtext">If the linear constraints are feasible, all subsequent iterates will satisfy the linear constraints.  (Such a strategy allows linear constraints to be used to define a region in which <m:math><m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;and <m:math><m:mi>F</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;can be safely evaluated.)  The routine then proceeds to solve <a class="eqn" href="#eqn1">(1)</a> as given, using search directions obtained from a sequence of QP subproblems <a class="eqn" href="#eqn5">(5)</a>.  Each QP subproblem minimizes a quadratic model of a certain Lagrangian function subject to linearized constraints.  An augmented Lagrangian merit function <a class="eqn" href="#eqnlmf">(6)</a> is reduced along each search direction to ensure convergence from any starting point.</div><div class="paramtext">The routine enters &#8216;elastic&#8217; mode if the QP subproblem proves to be infeasible or unbounded (or if the dual variables <m:math><m:mi>&#960;</m:mi></m:math>&#160;for the nonlinear constraints become &#8216;large&#8217;) by solving a problem of the form

<div class="formula-eqn"><a name="elasticproblem" id="elasticproblem"/><table class="formula-eqn"><tr><td class="formula-eqn"><m:math display="block">
<m:mtable>
 <m:mtr>
  <m:mtd><m:munder><m:mi mathvariant="normal">minimize</m:mi><m:mrow><m:mi>x</m:mi><m:mo>,</m:mo><m:mi>v</m:mi><m:mo>,</m:mo><m:mi>w</m:mi></m:mrow></m:munder><m:mspace width="0.25em"/><m:mover><m:mi>f</m:mi><m:mo>-</m:mo></m:mover><m:mfenced separators=""><m:mi>x</m:mi><m:mo>,</m:mo><m:mi>v</m:mi><m:mo>,</m:mo><m:mi>w</m:mi></m:mfenced><m:mtext>&#8195; subject to &#8195;</m:mtext><m:mi>l</m:mi><m:mo>&#8804;</m:mo><m:mfenced open="{" close="}" separators="">
 <m:mtable>
   <m:mtr>
     <m:mtd><m:mi>x</m:mi></m:mtd>
   </m:mtr><m:mtr>
     <m:mtd><m:mi>F</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced><m:mo>-</m:mo><m:mi>v</m:mi><m:mo>+</m:mo><m:mi>w</m:mi></m:mtd>
   </m:mtr><m:mtr>
     <m:mtd><m:mi>G</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>, &#8195;</m:mtext><m:mi>v</m:mi><m:mo>&#8805;</m:mo><m:mn>0</m:mn><m:mtext>, &#8195;</m:mtext><m:mi>w</m:mi><m:mo>&#8805;</m:mo><m:mn>0</m:mn><m:mtext>,</m:mtext></m:mtd>
 </m:mtr>
</m:mtable>
</m:math></td><td class="formula-eqn2">
      (8)
     </td></tr></table></div>

where

<div class="formula-eqn"><a name="comp-objective-func" id="comp-objective-func"/><table class="formula-eqn"><tr><td class="formula-eqn"><m:math display="block">
<m:mover><m:mi>f</m:mi><m:mo>-</m:mo></m:mover><m:mfenced separators=""><m:mi>x</m:mi><m:mo>,</m:mo><m:mi>v</m:mi><m:mo>,</m:mo><m:mi>w</m:mi></m:mfenced><m:mo>=</m:mo><m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced><m:mo>+</m:mo><m:mi>&#947;</m:mi><m:msup><m:mi>e</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mfenced separators=""><m:mi>v</m:mi><m:mo>+</m:mo><m:mi>w</m:mi></m:mfenced>
</m:math></td><td class="formula-eqn2">
      (9)
     </td></tr></table></div>

is called a <span class="italic">composite objective</span> and <m:math><m:mi>&#947;</m:mi></m:math>&#160;is a non-negative parameter (the <span class="italic">elastic weight</span>).  If <m:math><m:mi>&#947;</m:mi></m:math>&#160;is sufficiently large, this is equivalent to minimizing the sum of the nonlinear constraint violations subject to the linear constraints and bounds.  A similar <m:math><m:msub><m:mi>l</m:mi><m:mn>1</m:mn></m:msub></m:math>&#160;formulation of <a class="eqn" href="#eqn1">(1)</a> is fundamental to the <m:math><m:msub><m:mi mathvariant="normal">Sl</m:mi><m:mn>1</m:mn></m:msub></m:math>QP algorithm of <a class="ref" href="#ref661">Fletcher (1984)</a>.  See also <a class="ref" href="#ref659">Conn (1973)</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 E04UGF/E04UGA define choices in the problem specification or the algorithm logic.  In order to reduce the number of formal parameters of E04UGF/E04UGA 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/e04uhf.xml">E04UHF/E04UHA</a> and <a class="rout" href="../E04/e04ujf.xml">E04UJF/E04UJA</a> before a call to E04UGF/E04UGA.</div><div class="paramtext"><a class="rout" href="../E04/e04uhf.xml">E04UHF/E04UHA</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 E04UHF (IOPTNS, INFORM)
</pre>
can then be used to read the file on unit <a class="arg" href="../E04/e04uhf.xml#IOPTNS">IOPTNS</a>. <a class="arg" href="../E04/e04uhf.xml#INFORM">INFORM</a> will be zero on successful exit.  <a class="rout" href="../E04/e04uhf.xml">E04UHF/E04UHA</a> should be consulted for a full description of this method of supplying optional parameters.</div><div class="paramtext"><a class="rout" href="../E04/e04ujf.xml">E04UJF/E04UJA</a> can be called to supply options directly, one call being necessary for each optional parameter.  For example,
<pre class="verbatim">
 CALL E04UJF ('Print Level = 5')
</pre><a class="rout" href="../E04/e04ujf.xml">E04UJF/E04UJA</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 E04UGF/E04UGA (unless they define invalid values) and so remain in effect for subsequent calls to E04UGF/E04UGA from the calling program (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 definition 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 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 default value of an option is used whenever the condition <m:math><m:mfenced open="|" close="|" separators=""><m:mi>i</m:mi></m:mfenced><m:mo>&#8805;</m:mo><m:mn>100000000</m:mn></m:math>&#160;is satisfied.</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/e04ugf.xml#optparam_centraldifferenceinterval">Central Difference Interval</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mroot><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_functionprecision"><m:mi mathcolor="#800080;" mathvariant="bold">Function Precision</m:mi></m:maction><m:mn>3</m:mn></m:mroot></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04ugf.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>60</m:mn></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04ugf.xml#optparam_crashoption">Crash Option</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mn>0</m:mn><m:mtext>&#8203; or &#8203;</m:mtext><m:mn>3</m:mn></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04ugf.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.1</m:mn></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04ugf.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/e04ugf.xml#optparam_derivativelevel">Derivative Level</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mn>3</m:mn></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04ugf.xml#optparam_derivativelinesearch">Derivative Linesearch</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/e04ugf.xml#optparam_elasticweight">Elastic Weight</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mn>1.0</m:mn></m:math>&#160;or <m:math><m:mn>100.0</m:mn></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04ugf.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>10000</m:mn></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04ugf.xml#optparam_factoriz-frequency">Factorization 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:mtext>&#8203; or &#8203;</m:mtext><m:mn>100</m:mn></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04ugf.xml#optparam_feasibilitytolerance">Feasibility Tolerance</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/e04ugf.xml#optparam_feasibleexit">Feasible Exit</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/e04ugf.xml#optparam_feasiblepoint">Feasible Point</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/e04ugf.xml#optparam_forwarddifferenceinterval">Forward Difference Interval</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mtext/><m:mo>=</m:mo><m:msqrt><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_functionprecision"><m:mi mathcolor="#800080;" mathvariant="bold">Function Precision</m:mi></m:maction></m:msqrt></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04ugf.xml#optparam_functionprecision">Function Precision</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.8</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/e04ugf.xml#optparam_hessianfrequency">Hessian Frequency</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mn>99999999</m:mn></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04ugf.xml#optparam_hessianfullmemory">Hessian Full Memory</a></td>
<td class="libdoc" valign="top" align="left">Default when <m:math><m:mover><m:mi>n</m:mi><m:mo>-</m:mo></m:mover><m:mo>&lt;</m:mo><m:mn>75</m:mn></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04ugf.xml#optparam_hessianlimitedmemory">Hessian Limited Memory</a></td>
<td class="libdoc" valign="top" align="left">Default when <m:math><m:mover><m:mi>n</m:mi><m:mo>-</m:mo></m:mover><m:mo>&#8805;</m:mo><m:mn>75</m:mn></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04ugf.xml#optparam_hessianupdates">Hessian Updates</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mn>20</m:mn><m:mtext>&#8203; or &#8203;</m:mtext><m:mn>99999999</m:mn></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04ugf.xml#optparam_infeasibleexit">Infeasible Exit</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/e04ugf.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/e04ugf.xml#optparam_iterationlimit">Iteration Limit</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mn>10000</m:mn></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04ugf.xml#optparam_linesearchtolerance">Linesearch Tolerance</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mn>0.9</m:mn></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04ugf.xml#optparam_list">List</a></td>
<td class="libdoc" valign="top" align="left">Default for <m:math><m:mi mathvariant="normal">E04UGF</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/e04ugf.xml#optparam_ludensitytolerance">LU Density Tolerance</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mn>0.6</m:mn></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04ugf.xml#optparam_lufactortolerance">LU Factor Tolerance</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mn>5.0</m:mn></m:math>&#160;or <m:math><m:mn>100.0</m:mn></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04ugf.xml#optparam_lusingulartolerance">LU Singularity 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.67</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/e04ugf.xml#optparam_luupdatetolerance">LU Update Tolerance</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mn>5.0</m:mn></m:math>&#160;or <m:math><m:mn>10.0</m:mn></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04ugf.xml#optparam_majorfeasibilitytolerance">Major 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/e04ugf.xml#optparam_majoriterationlimit">Major Iteration Limit</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mn>1000</m:mn></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04ugf.xml#optparam_majoroptimalitytolerance">Major Optimality 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/e04ugf.xml#optparam_majorprintlevel">Major Print Level</a></td>
<td class="libdoc" valign="top" align="left">Default for E04UGF
<m:math><m:mtext/><m:mo>=</m:mo><m:mn>10</m:mn></m:math><br/>
Default for E04UGA
<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/e04ugf.xml#optparam_majorsteplimit">Major Step Limit</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mn>2.0</m:mn></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04ugf.xml#optparam_maximize">Maximize</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/e04ugf.xml#optparam_minimize">Minimize</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/e04ugf.xml#optparam_minorfeasibilitytolerance">Minor 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/e04ugf.xml#optparam_minoriterationlimit">Minor Iteration Limit</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mn>500</m:mn></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04ugf.xml#optparam_minoroptimalitytolerance">Minor Optimality 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/e04ugf.xml#optparam_minorprintlevel">Minor Print Level</a></td>
<td class="libdoc" valign="top" align="left">Default <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/e04ugf.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/e04ugf.xml#optparam_nolist">Nolist</a></td>
<td class="libdoc" valign="top" align="left">Default for <m:math><m:mi mathvariant="normal">E04UGA</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/e04ugf.xml#optparam_nonderivativelinesearch">Nonderivative Linesearch</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/e04ugf.xml#optparam_optimalitytolerance">Optimality Tolerance</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/e04ugf.xml#optparam_partialprice">Partial Price</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mn>1</m:mn><m:mtext>&#8203; or &#8203;</m:mtext><m:mn>10</m:mn></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04ugf.xml#optparam_pivottolerance">Pivot 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.67</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/e04ugf.xml#optparam_printlevel">Print Level</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/e04ugf.xml#optparam_scaleoption">Scale Option</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mn>1</m:mn><m:mtext>&#8203; or &#8203;</m:mtext><m:mn>2</m:mn></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04ugf.xml#optparam_scaletolerance">Scale Tolerance</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mn>0.9</m:mn></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04ugf.xml#optparam_start-con-check-col">Start Constraint Check At Column</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mn>1</m:mn></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04ugf.xml#optparam_start-obj-check-col">Start Objective Check At Column</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mn>1</m:mn></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04ugf.xml#optparam_stop-con-check-col">Stop Constraint Check At Column</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mtext/><m:mo>=</m:mo><m:msubsup><m:mi>n</m:mi><m:mn>1</m:mn><m:mrow><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo></m:mrow></m:msubsup></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04ugf.xml#optparam_stop-obj-check-col">Stop Objective Check At Column</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mtext/><m:mo>=</m:mo><m:msubsup><m:mi>n</m:mi><m:mn>1</m:mn><m:mo>&#8242;</m:mo></m:msubsup></m:math></td>
</tr><tr>
<td class="libdoc" valign="top" align="left" style="width:19.5em;"><a class="optparam" href="../E04/e04ugf.xml#optparam_superbasicslimit">Superbasics Limit</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mrow><m:mi>min</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mn>500</m:mn><m:mo>,</m:mo><m:mrow><m:mover><m:mi>n</m:mi><m:mo>-</m:mo></m:mover><m:mo>+</m:mo><m:mn>1</m:mn></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/e04ugf.xml#optparam_unboundedobjective">Unbounded Objective</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>15</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/e04ugf.xml#optparam_unboundedstepsize">Unbounded 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/e04ugf.xml#optparam_verifylevel">Verify Level</a></td>
<td class="libdoc" valign="top" align="left">Default <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/e04ugf.xml#optparam_violationlimit">Violation Limit</a></td>
<td class="libdoc" valign="top" align="left">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mn>10.0</m:mn></m:math></td>
</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_centraldifferenceinterval" id="centraldifferenceinterval"/><b><span class="u">Ce</span>ntral Difference Interval</b></td><td class="optparam-center"><i>r</i></td><td class="optparam-right">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mroot><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_functionprecision"><m:mi mathcolor="#800080;" mathvariant="bold">Function Precision</m:mi></m:maction><m:mn>3</m:mn></m:mroot></m:math></td></tr></table><div class="paramtext">Note that this option does not apply when <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_derivativelevel"><m:mi mathcolor="#800080;" mathvariant="bold">Derivative Level</m:mi></m:maction><m:mo>=</m:mo><m:mn>3</m:mn></m:math>.</div>
<div class="paramtext">The value of <m:math><m:mi>r</m:mi></m:math>&#160;is used near an optimal solution in order to obtain more accurate (but more expensive) estimates of gradients.  This requires twice as many function evaluations as compared to using forward differences (see optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_forwarddifferenceinterval"><m:mi mathcolor="#800080;" mathvariant="bold">Forward Difference Interval</m:mi></m:maction></m:math>).  The interval used for the <m:math><m:mi>j</m:mi></m:math>th variable is <m:math><m:msub><m:mi>h</m:mi><m:mi>j</m:mi></m:msub><m:mo>=</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:msub><m:mi>x</m:mi><m:mi>j</m:mi></m:msub></m:mfenced></m:mfenced></m:math>.  The resulting gradient estimates should be accurate to <m:math><m:mrow><m:mi mathvariant="italic">O</m:mi><m:mfenced separators=""><m:msup><m:mi>r</m:mi><m:mn>2</m:mn></m:msup></m:mfenced></m:mrow></m:math>, unless the functions are badly scaled.  The switch to central differences is indicated by <span class="mono">c</span> at the end of each line of intermediate printout produced by the major iterations (see <a class="sec" href="#fc-majorprintout">Section 8.1</a>).  See <a class="ref" href="#ref079">Gill <span class="italic">et al.</span> (1981)</a> for a discussion of the accuracy in finite difference approximations.</div>
<div class="paramtext">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_checkfrequency" id="checkfrequency"/><b><span class="u">Ch</span>eck 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>60</m:mn></m:math></td></tr></table><div class="paramtext">Every <m:math><m:mi>i</m:mi></m:math>th minor iteration after the most recent basis factorization, a numerical test is made to see if the current solution <m:math><m:mfenced separators=""><m:mi>x</m:mi><m:mo>,</m:mo><m:mi>s</m:mi></m:mfenced></m:math>&#160;satisfies the general linear constraints (including any linearized nonlinear constraints).  The constraints are of the form <m:math><m:mi>A</m:mi><m:mi>x</m:mi><m:mo>-</m:mo><m:mi>s</m:mi><m:mo>=</m:mo><m:mi>b</m:mi></m:math>, where <m:math><m:mi>s</m:mi></m:math>&#160;is the set of slack variables.  If the largest element of the residual vector <m:math><m:mi>r</m:mi><m:mo>=</m:mo><m:mi>b</m:mi><m:mo>-</m:mo><m:mi>A</m:mi><m:mi>x</m:mi><m:mo>+</m:mo><m:mi>s</m:mi></m:math>&#160;is judged to be too large, the current basis is refactorized and the basic variables recomputed to satisfy the general constraints more accurately.</div>
<div class="paramtext">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.  If <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>0</m:mn></m:math>, the value <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>99999999</m:mn></m:math>&#160;is used and effectively no checks are made.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_crashoption" id="crashoption"/><b><span class="u">Cr</span>ash <span class="u">O</span>ption</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>0</m:mn><m:mtext>&#8203; or &#8203;</m:mtext><m:mn>3</m:mn></m:math></td></tr></table><div class="paramtext">The default value of <m:math><m:mi>i</m:mi></m:math>&#160;is <m:math><m:mn>0</m:mn></m:math>&#160;if there are any nonlinear constraints and <m:math><m:mn>3</m:mn></m:math>&#160;otherwise.  Note that this option does not apply when <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#START"><m:mi mathcolor="#EE0000" mathvariant="bold">START</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'W'</m:mtext></m:math>&#160;(see <a class="sec" href="#parameters">Section 5</a>).</div>
<div class="paramtext">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#START"><m:mi mathcolor="#EE0000" mathvariant="bold">START</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'C'</m:mtext></m:math>, an internal Crash procedure is used to select an initial basis from various rows and columns of the constraint matrix <m:math><m:mfenced><m:mtable> <m:mtr> <m:mtd><m:mi>A</m:mi></m:mtd> <m:mtd><m:mo>-</m:mo><m:mi>I</m:mi></m:mtd> </m:mtr> </m:mtable></m:mfenced></m:math>.  The value of <m:math><m:mi>i</m:mi></m:math>&#160;determines which rows and columns of <m:math><m:mi>A</m:mi></m:math>&#160;are initially eligible for the basis and how many times the Crash procedure is called.  Columns of <m:math><m:mrow><m:mo>-</m:mo><m:mi>I</m:mi></m:mrow></m:math>&#160;are used to pad the basis where necessary.  The possible choices for <m:math><m:mi>i</m:mi></m:math>&#160;are the following.  
<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>Meaning</b></td> 
</tr><tr> 
<td class="libdoc" valign="top" align="center">0</td> 
<td class="libdoc" valign="top" align="left">The initial basis contains only slack variables: <m:math><m:mi>B</m:mi><m:mo>=</m:mo><m:mi>I</m:mi></m:math>.</td> 
</tr><tr> 
<td class="libdoc" valign="top" align="center">1</td> 
<td class="libdoc" valign="top" align="left">The Crash procedure is called once (looking for a triangular basis in all rows and columns of <m:math><m:mi>A</m:mi></m:math>).</td> 
</tr><tr> 
<td class="libdoc" valign="top" align="center">2</td> 
<td class="libdoc" valign="top" align="left">The Crash procedure is called twice (if there are any nonlinear constraints).  The first call looks for a triangular basis in linear rows and the iteration proceeds with simplex iterations until the linear constraints are satisfied.  The Jacobian is then evaluated for the first major iteration and the Crash procedure is called again to find a triangular basis in the nonlinear rows (whilst retaining the current basis for linear rows).</td> 
</tr><tr> 
<td class="libdoc" valign="top" align="center">3</td> 
<td class="libdoc" valign="top" align="left">The Crash procedure is called up to three times (if there are any nonlinear constraints).  The first two calls treat linear <span class="italic">equality</span> constraints and linear <span class="italic">inequality</span> constraints separately.  The Jacobian is then evaluated for the first major iteration and the Crash procedure is called again to find a triangular basis in the nonlinear rows (whilst retaining the current basis for linear rows).</td> 
</tr> 
</tbody> 
</table></div> 
</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:mn>3</m:mn></m:math>, the default value is used.</div>
<div class="paramtext">If <m:math><m:mi>i</m:mi><m:mo>&#8805;</m:mo><m:mn>1</m:mn></m:math>, certain slacks on inequality rows are selected for the basis first.  (If <m:math><m:mi>i</m:mi><m:mo>&#8805;</m:mo><m:mn>2</m:mn></m:math>, numerical values are used to exclude slacks that are close to a bound.) The Crash procedure then makes several passes through the columns of <m:math><m:mi>A</m:mi></m:math>, searching for a basis matrix that is essentially triangular.  A column is assigned to &#8216;pivot&#8217; on a particular row if the column contains a suitably large element in a row that has not yet been assigned.  (The pivot elements ultimately form the diagonals of the triangular basis.) For remaining unassigned rows, slack variables are inserted to complete the basis.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_crashtolerance" id="crashtolerance"/><b><span class="u">Cr</span>ash <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:mn>0.1</m:mn></m:math></td></tr></table><div class="paramtext">The value <m:math><m:mi>r</m:mi></m:math>&#160;(<m:math><m:mn>0</m:mn><m:mo>&#8804;</m:mo><m:mi>r</m:mi><m:mo>&lt;</m:mo><m:mn>1</m:mn></m:math>) allows the Crash procedure to ignore certain &#8216;small&#8217; nonzero elements in the columns of <m:math><m:mi>A</m:mi></m:math>&#160;while searching for a triangular basis.  If <m:math><m:msub><m:mi>a</m:mi><m:mi mathvariant="normal">max</m:mi></m:msub></m:math>&#160;is the largest element in the <m:math><m:mi>j</m:mi></m:math>th column, other nonzeros <m:math><m:msub><m:mi>a</m:mi><m:mrow><m:mi>i</m:mi><m:mi>j</m:mi></m:mrow></m:msub></m:math>&#160;in the column are ignored if <m:math><m:mfenced open="|" close="|" separators=""><m:msub><m:mi>a</m:mi><m:mrow><m:mi>i</m:mi><m:mi>j</m:mi></m:mrow></m:msub></m:mfenced><m:mo>&#8804;</m:mo><m:msub><m:mi>a</m:mi><m:mi mathvariant="normal">max</m:mi></m:msub><m:mo>&#215;</m:mo><m:mi>r</m:mi></m:math>.</div>
<div class="paramtext">When <m:math><m:mi>r</m:mi><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>, the basis obtained by the Crash procedure may not be strictly triangular, but it is likely to be nonsingular and almost triangular.  The intention is to obtain a starting basis containing more columns of <m:math><m:mi>A</m:mi></m:math>&#160;and fewer (arbitrary) slacks.  A feasible solution may be reached earlier on some problems.</div>
<div class="paramtext">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>&#8805;</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_derivativelevel" id="derivativelevel"/><b><span class="u">Der</span>ivative <span class="u">Le</span>vel</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>3</m:mn></m:math></td></tr></table><div class="paramtext">This parameter indicates which nonlinear function gradients are provided in user-supplied subroutines <a class="arg" href="#OBJFUN">OBJFUN</a> and <a class="arg" href="#CONFUN">CONFUN</a>.  The possible choices for <m:math><m:mi>i</m:mi></m:math>&#160;are the following.  
<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>Meaning</b></td> 
</tr><tr> 
<td class="libdoc" valign="top" align="center">3</td> 
<td class="libdoc" valign="top" align="left">All elements of the objective gradient and the constraint Jacobian are provided.</td> 
</tr><tr> 
<td class="libdoc" valign="top" align="center">2</td> 
<td class="libdoc" valign="top" align="left">All elements of the constraint Jacobian are provided, but some (or all) elements of the objective gradient are not specified.</td> 
</tr><tr> 
<td class="libdoc" valign="top" align="center">1</td> 
<td class="libdoc" valign="top" align="left">All elements of the objective gradient are provided, but some (or all) elements of the constraint Jacobian are not specified.</td> 
</tr><tr> 
<td class="libdoc" valign="top" align="center">0</td> 
<td class="libdoc" valign="top" align="left">Some (or all) elements of both the objective gradient and the constraint Jacobian are not specified.</td> 
</tr> 
</tbody> 
</table></div> 
</div>
<div class="paramtext">The default value <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>3</m:mn></m:math>&#160;should be used whenever possible.  It is the most reliable and will usually be the most efficient.</div>
<div class="paramtext">If <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>0</m:mn><m:mtext>&#8203; or &#8203;</m:mtext><m:mn>2</m:mn></m:math>, E04UGF/E04UGA will <span class="italic">estimate</span> the unspecified elements of the objective gradient, using finite differences.  This may simplify the coding of <a class="arg" href="#OBJFUN">OBJFUN</a>.  However, the computation of finite difference approximations usually increases the total run-time substantially (since a call to <a class="arg" href="#OBJFUN">OBJFUN</a> is required for each unspecified element) and there is less assurance that an acceptable solution will be found.</div>
<div class="paramtext">If <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>0</m:mn><m:mtext>&#8203; or &#8203;</m:mtext><m:mn>1</m:mn></m:math>, E04UGF/E04UGA will approximate unspecified elements of the constraint Jacobian.  For each column of the Jacobian, one call to <a class="arg" href="#CONFUN">CONFUN</a> is needed to estimate all unspecified elements in that column (if any).  For example, if the sparsity pattern of the Jacobian has the form 
<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block"><m:mfenced><m:mtable> <m:mtr> <m:mtd><m:mtext>*</m:mtext></m:mtd> <m:mtd><m:mtext>*</m:mtext></m:mtd> <m:mtd><m:mphantom><m:mo>*</m:mo></m:mphantom></m:mtd> <m:mtd><m:mtext>*</m:mtext></m:mtd> </m:mtr><m:mtr> <m:mtd><m:mphantom><m:mo>*</m:mo></m:mphantom></m:mtd> <m:mtd><m:mtext>?</m:mtext></m:mtd> <m:mtd><m:mtext>?</m:mtext></m:mtd> <m:mtd><m:mphantom><m:mo>*</m:mo></m:mphantom></m:mtd> </m:mtr><m:mtr> <m:mtd><m:mtext>*</m:mtext></m:mtd> <m:mtd><m:mphantom><m:mo>*</m:mo></m:mphantom></m:mtd> <m:mtd><m:mtext>?</m:mtext></m:mtd> <m:mtd><m:mphantom><m:mo>*</m:mo></m:mphantom></m:mtd> </m:mtr><m:mtr> <m:mtd><m:mphantom><m:mo>*</m:mo></m:mphantom></m:mtd> <m:mtd><m:mtext>*</m:mtext></m:mtd> <m:mtd><m:mphantom><m:mo>*</m:mo></m:mphantom></m:mtd> <m:mtd><m:mtext>*</m:mtext></m:mtd> </m:mtr> </m:mtable></m:mfenced></m:math></td><td class="formula2"/></tr></table></div>
 where &#8216;<m:math><m:mo>*</m:mo></m:math>&#8217; indicates an element provided by you and &#8216;?&#8217; indicates an unspecified element, E04UGF/E04UGA will call <a class="arg" href="#CONFUN">CONFUN</a> twice: once to estimate the missing element in column <m:math><m:mn>2</m:mn></m:math>&#160;and again to estimate the two missing elements in column <m:math><m:mn>3</m:mn></m:math>.  (Since columns <m:math><m:mn>1</m:mn></m:math>&#160;and <m:math><m:mn>4</m:mn></m:math>&#160;are known, they require no calls to <a class="arg" href="#CONFUN">CONFUN</a>.)</div>
<div class="paramtext">At times, central differences are used rather than forward differences, in which case twice as many calls to <a class="arg" href="#OBJFUN">OBJFUN</a> and <a class="arg" href="#CONFUN">CONFUN</a> are needed.  (The switch to central differences is not under your control.)</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:mn>3</m:mn></m:math>, the default value is used.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_derivativelinesearch" id="derivativelinesearch"/><b><span class="u">Der</span>ivative <span class="u">Lin</span>esearch</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_nonderivativelinesearch" id="nonderivativelinesearch"/><b><span class="u">Non</span>derivative Linesearch</b></td><td class="optparam-center"/><td class="optparam-right"/></tr></table><div class="paramtext">At each major iteration, a linesearch is used to improve the value of the Lagrangian merit function <a class="eqn" href="#eqnlmf">(6)</a>.  The default linesearch uses safeguarded cubic interpolation and requires both function and gradient values in order to compute estimates of the step <m:math><m:msub><m:mi>&#945;</m:mi><m:mi>k</m:mi></m:msub></m:math>.  If some analytic derivatives are not provided or optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_nonderivativelinesearch"><m:mi mathcolor="#800080;" mathvariant="bold">Nonderivative Linesearch</m:mi></m:maction></m:math>&#160;is specified, a linesearch based upon safeguarded quadratic interpolation (which does not require the evaluation or approximation of any gradients) is used instead.</div>
<div class="paramtext">A nonderivative linesearch can be slightly less robust on difficult problems and it is recommended that the default be used if the functions and their derivatives can be computed at approximately the same cost.  If the gradients are very expensive to compute relative to the functions however, a nonderivative linesearch may result in a significant decrease in the total run-time.</div>
<div class="paramtext">If optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_nonderivativelinesearch"><m:mi mathcolor="#800080;" mathvariant="bold">Nonderivative Linesearch</m:mi></m:maction></m:math>&#160;is selected, E04UGF/E04UGA signals the evaluation of the linesearch by calling <a class="arg" href="#OBJFUN">OBJFUN</a> and <a class="arg" href="#CONFUN">CONFUN</a> with <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#OBJFUN_MODE"><m:mi mathcolor="#EE0000" mathvariant="bold">MODE</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math>.  Once the linesearch is complete, the nonlinear functions are re-evaluated with <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#OBJFUN_MODE"><m:mi mathcolor="#EE0000" mathvariant="bold">MODE</m:mi></m:maction><m:mo>=</m:mo><m:mn>2</m:mn></m:math>.  If the potential savings offered by a nonderivative linesearch are to be fully realized, it is essential that <a class="arg" href="#OBJFUN">OBJFUN</a> and <a class="arg" href="#CONFUN">CONFUN</a> be coded so that no derivatives are computed when <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#OBJFUN_MODE"><m:mi mathcolor="#EE0000" mathvariant="bold">MODE</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math>.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_elasticweight" id="elasticweight"/><b><span class="u">El</span>astic Weight</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>1.0</m:mn></m:math>&#160;or <m:math><m:mn>100.0</m:mn></m:math></td></tr></table><div class="paramtext">The default value of <m:math><m:mi>r</m:mi></m:math>&#160;is <m:math><m:mn>100.0</m:mn></m:math>&#160;if there are any nonlinear constraints and <m:math><m:mn>1.0</m:mn></m:math>&#160;otherwise.</div>
<div class="paramtext">This option defines the initial weight <m:math><m:mi>&#947;</m:mi></m:math>&#160;associated with problem <a class="eqn" href="#elasticproblem">(8)</a>.</div>
<div class="paramtext">At any given major iteration <m:math><m:mi>k</m:mi></m:math>, elastic mode is entered if the QP subproblem is infeasible or the QP dual variables (Lagrange multipliers) are larger in magnitude than <m:math><m:mi>r</m:mi><m:mo>&#215;</m:mo><m:mfenced separators=""><m:mn>1</m:mn><m:mo>+</m:mo><m:msub><m:mfenced open="&#8214;" close="&#8214;" separators=""><m:mi>g</m:mi><m:mfenced separators=""><m:msub><m:mi>x</m:mi><m:mi>k</m:mi></m:msub></m:mfenced></m:mfenced><m:mn>2</m:mn></m:msub></m:mfenced></m:math>, where <m:math><m:mi>g</m:mi></m:math>&#160;is the objective gradient.  In either case, the QP subproblem is resolved in elastic mode with <m:math><m:mi>&#947;</m:mi><m:mo>=</m:mo><m:mi>r</m:mi><m:mo>&#215;</m:mo><m:mfenced separators=""><m:mn>1</m:mn><m:mo>+</m:mo><m:msub><m:mfenced open="&#8214;" close="&#8214;" separators=""><m:mi>g</m:mi><m:mfenced separators=""><m:msub><m:mi>x</m:mi><m:mi>k</m:mi></m:msub></m:mfenced></m:mfenced><m:mn>2</m:mn></m:msub></m:mfenced></m:math>.</div>
<div class="paramtext">Thereafter, <m:math><m:mi>&#947;</m:mi></m:math>&#160;is increased (subject to a maximum allowable value) at any point that is optimal for problem <a class="eqn" href="#elasticproblem">(8)</a>, but not feasible for problem <a class="eqn" href="#eqn1">(1)</a>.  After the <m:math><m:mi>p</m:mi></m:math>th increase, <m:math><m:mi>&#947;</m:mi><m:mo>=</m:mo><m:mi>r</m:mi><m:mo>&#215;</m:mo><m:msup><m:mn>10</m:mn><m:mi>p</m:mi></m:msup><m:mo>&#215;</m:mo><m:mfenced separators=""><m:mn>1</m:mn><m:mo>+</m:mo><m:msub><m:mfenced open="&#8214;" close="&#8214;" separators=""><m:mi>g</m:mi><m:mfenced separators=""><m:msub><m:mi>x</m:mi><m:msub><m:mi>k</m:mi><m:mn>1</m:mn></m:msub></m:msub></m:mfenced></m:mfenced><m:mn>2</m:mn></m:msub></m:mfenced></m:math>, where <m:math><m:msub><m:mi>x</m:mi><m:msub><m:mi>k</m:mi><m:mn>1</m:mn></m:msub></m:msub></m:math>&#160;is the iterate at which <m:math><m:mi>&#947;</m:mi></m:math>&#160;was first needed.</div>
<div class="paramtext">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_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>10000</m:mn></m:math></td></tr></table><div class="paramtext">This option is part of the EXPAND anti-cycling procedure due to <a class="ref" href="#ref490">Gill <span class="italic">et al.</span> (1989)</a>, which is designed to make progress even on highly degenerate problems.</div>
<div class="paramtext">For linear models, 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 optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_minorfeasibilitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Minor 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 E04UGF/E04UGA (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">For nonlinear models, the same procedure is used for iterations in which there is only one superbasic variable.  (Cycling can only occur when the current solution is at a vertex of the feasible region.) Thus, zero steps are allowed if there is more than one superbasic variable, but otherwise positive steps are enforced.</div>
<div class="paramtext">Increasing the value of <m:math><m:mi>i</m:mi></m:math>&#160;helps reduce the number of slightly infeasible nonbasic basic variables (most of which are eliminated during the resetting procedure).  However, it also diminishes the freedom to choose a large pivot element (see optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_pivottolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Pivot Tolerance</m:mi></m:maction></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>, the default value is used.  If <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>0</m:mn></m:math>, the value <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>99999999</m:mn></m:math>&#160;is used and effectively no anti-cycling procedure is invoked.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_factoriz-frequency" id="factoriz-frequency"/><b><span class="u">Fa</span>ctorization 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>50</m:mn><m:mtext>&#8203; or &#8203;</m:mtext><m:mn>100</m:mn></m:math></td></tr></table><div class="paramtext">The default value of <m:math><m:mi>i</m:mi></m:math>&#160;is <m:math><m:mn>50</m:mn></m:math>&#160;if there are any nonlinear constraints and <m:math><m:mn>100</m:mn></m:math>&#160;otherwise.</div>
<div class="paramtext">If <m:math><m:mi>i</m:mi><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>, at most <m:math><m:mi>i</m:mi></m:math>&#160;basis changes will occur between factorizations of the basis matrix.</div>
<div class="paramtext">For linear problems, the basis factors are usually updated at every iteration.  The default value <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>100</m:mn></m:math>&#160;is reasonable for typical problems, particularly those that are extremely sparse and well-scaled.</div>
<div class="paramtext">When the objective function is nonlinear, fewer basis updates will occur as the solution is approached.  The number of iterations between basis factorizations will therefore increase.  During these iterations a test is made regularly according to the value of optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_checkfrequency"><m:mi mathcolor="#800080;" mathvariant="bold">Check Frequency</m:mi></m:maction></m:math>&#160;to ensure that the general constraints are satisfied.  If necessary, the basis will be refactorized before the limit of <m:math><m:mi>i</m:mi></m:math>&#160;updates is reached.</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.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_infeasibleexit" id="infeasibleexit"/><b><span class="u">Infe</span>asible Exit</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_feasibleexit" id="feasibleexit"/><b><span class="u">Feasibl</span>e <span class="u">E</span>xit</b></td><td class="optparam-center"/><td class="optparam-right"/></tr></table><div class="paramtext">Note that this option is ignored if the value of optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_majoriterationlimit"><m:mi mathcolor="#800080;" mathvariant="bold">Major Iteration Limit</m:mi></m:maction></m:math>&#160;is exceeded, or the linear constraints are infeasible.</div>
<div class="paramtext">If termination is about to occur at a point that does not satisfy the nonlinear constraints and optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_feasibleexit"><m:mi mathcolor="#800080;" mathvariant="bold">Feasible Exit</m:mi></m:maction></m:math>&#160;is selected, this option requests that additional iterations be performed in order to find a feasible point (if any) for the nonlinear constraints.  This involves solving a feasible point problem in which the objective function is omitted.</div>
<div class="paramtext">Otherwise, this option requests no additional iterations be performed.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_minimize" id="minimize"/><b><span class="u">Mini</span>mize</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_maximize" id="maximize"/><b><span class="u">Max</span>imize</b></td><td class="optparam-center"/><td class="optparam-right"/></tr></table>
<table class="multi-optparam"><tr><td class="optparam-left"><a name="optparam_feasiblepoint" id="feasiblepoint"/><b><span class="u">Feasibl</span>e <span class="u">Po</span>int</b></td><td class="optparam-center"/><td class="optparam-right"/></tr></table><div class="paramtext">If optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_feasiblepoint"><m:mi mathcolor="#800080;" mathvariant="bold">Feasible Point</m:mi></m:maction></m:math>&#160;is selected, this option attempts to find a feasible point (if any) for the nonlinear constraints by omitting the objective function.  It can also be used to check whether the nonlinear constraints are feasible.</div>
<div class="paramtext">Otherwise, this option specifies the required direction of the optimization.  It applies to both linear and nonlinear terms (if any) in the objective function.  Note that if two problems are the same except that one minimizes <m:math><m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;and the other maximizes <m:math><m:mrow><m:mo>-</m:mo><m:mi>f</m:mi></m:mrow><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>, their solutions will be the same but the signs of the dual variables <m:math><m:msub><m:mi>&#960;</m:mi><m:mi>i</m:mi></m:msub></m:math>&#160;and the reduced gradients <m:math><m:msub><m:mi>d</m:mi><m:mi>j</m:mi></m:msub></m:math>&#160;will be reversed.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_forwarddifferenceinterval" id="forwarddifferenceinterval"/><b><span class="u">Fo</span>rward Difference Interval</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:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_functionprecision"><m:mi mathcolor="#800080;" mathvariant="bold">Function Precision</m:mi></m:maction></m:msqrt></m:math></td></tr></table><div class="paramtext">This option defines an interval used to estimate derivatives by forward differences in the following circumstances: <table class="standard-90"><tr>
<td style="width:2.1em;" valign="baseline">(a)</td>
<td valign="top">For verifying the objective and/or constraint gradients (see the description of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_verifylevel"><m:mi mathcolor="#800080;" mathvariant="bold">Verify Level</m:mi></m:maction></m:math>).</td>
</tr><tr>
<td style="width:2.1em;" valign="baseline">(b)</td>
<td valign="top">For estimating unspecified elements of the objective gradient and/or the constraint Jacobian.</td>
</tr></table> </div>
<div class="paramtext">A derivative with respect to <m:math><m:msub><m:mi>x</m:mi><m:mi>j</m:mi></m:msub></m:math>&#160;is estimated by perturbing that element of <m:math><m:mi>x</m:mi></m:math>&#160;to the value <m:math><m:msub><m:mi>x</m:mi><m:mi>j</m:mi></m:msub><m:mo>+</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:msub><m:mi>x</m:mi><m:mi>j</m:mi></m:msub></m:mfenced></m:mfenced></m:math>&#160;and then evaluating <m:math><m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;and/or <m:math><m:mi>F</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;(as appropriate) at the perturbed point.  The resulting gradient estimates should be accurate to <m:math><m:mrow><m:mi mathvariant="italic">O</m:mi><m:mfenced separators=""><m:mi>r</m:mi></m:mfenced></m:mrow></m:math>, unless the functions are badly scaled.  Judicious alteration of <m:math><m:mi>r</m:mi></m:math>&#160;may sometimes lead to greater accuracy.  See <a class="ref" href="#ref079">Gill <span class="italic">et al.</span> (1981)</a> for a discussion of the accuracy in finite difference approximations.</div>
<div class="paramtext">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_functionprecision" id="functionprecision"/><b><span class="u">Fu</span>nction Precision</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.8</m:mn></m:msup></m:math></td></tr></table><div class="paramtext">This parameter defines the <span class="italic">relative function precision</span> <m:math><m:msub><m:mi>&#949;</m:mi><m:mi>r</m:mi></m:msub></m:math>, which is intended to be a measure of the relative accuracy with which the nonlinear functions can be computed.  For example, if <m:math><m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;(or <m:math><m:msub><m:mi>F</m:mi><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>) is computed as <m:math><m:mn>1000.56789</m:mn></m:math>&#160;for some relevant <m:math><m:mi>x</m:mi></m:math>&#160;and the first <m:math><m:mn>6</m:mn></m:math>&#160;significant digits are known to be correct then the appropriate value for <m:math><m:msub><m:mi>&#949;</m:mi><m:mi>r</m:mi></m:msub></m:math>&#160;would be <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>.</div>
<div class="paramtext">Ideally the functions <m:math><m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;or <m:math><m:msub><m:mi>F</m:mi><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;should have magnitude of order <m:math><m:mn>1</m:mn></m:math>.  If all functions are substantially <span class="italic">less</span> than <m:math><m:mn>1</m:mn></m:math>&#160;in magnitude, <m:math><m:msub><m:mi>&#949;</m:mi><m:mi>r</m:mi></m:msub></m:math>&#160;should be the <span class="italic">absolute</span> precision.  For example, if <m:math><m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;(or <m:math><m:msub><m:mi>F</m:mi><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>) is computed as <m:math><m:mn>1.23456789</m:mn><m:mo>&#215;</m:mo><m:msup><m:mn>10</m:mn><m:mrow><m:mo>-</m:mo><m:mn>4</m:mn></m:mrow></m:msup></m:math>&#160;for some relevant <m:math><m:mi>x</m:mi></m:math>&#160;and the first <m:math><m:mn>6</m:mn></m:math>&#160;significant digits are known to be correct then the appropriate value for <m:math><m:msub><m:mi>&#949;</m:mi><m:mi>r</m:mi></m:msub></m:math>&#160;would be <m:math><m:msup><m:mn>10</m:mn><m:mrow><m:mo>-</m:mo><m:mn>10</m:mn></m:mrow></m:msup></m:math>.</div>
<div class="paramtext">The choice of <m:math><m:msub><m:mi>&#949;</m:mi><m:mi>r</m:mi></m:msub></m:math>&#160;can be quite complicated for badly scaled problems; see Chapter 8 of <a class="ref" href="#ref079">Gill <span class="italic">et al.</span> (1981)</a> for a discussion of scaling techniques.  The default value is appropriate for most simple functions that are computed with full accuracy.</div>
<div class="paramtext">In some cases the function values will be the result of extensive computation, possibly involving an iterative procedure that can provide few digits of precision at reasonable cost.  Specifying an appropriate value of <m:math><m:mi>r</m:mi></m:math>&#160;may therefore lead to savings, by allowing the linesearch procedure to terminate when the difference between function values along the search direction becomes as small as the absolute error in the values.</div>
<div class="paramtext">If <m:math><m:mi>r</m:mi><m:mo>&lt;</m:mo><m:mi>&#949;</m:mi></m:math>&#160;or <m:math><m:mi>r</m:mi><m:mo>&#8805;</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_hessianfrequency" id="hessianfrequency"/><b><span class="u">H</span>essian <span class="u">Fr</span>equency</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>99999999</m:mn></m:math></td></tr></table><div class="paramtext">This option forces the approximate Hessian formed from <m:math><m:mi>i</m:mi></m:math>&#160;BFGS updates to be reset to the identity matrix upon completion of a major iteration.  It is intended to be used in conjunction with optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_hessianfullmemory"><m:mi mathcolor="#800080;" mathvariant="bold">Hessian Full Memory</m:mi></m:maction></m:math>.</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 and effectively no resets occur.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_hessianfullmemory" id="hessianfullmemory"/><b><span class="u">H</span>essian <span class="u">Fu</span>ll Memory</b></td><td class="optparam-center"/><td class="optparam-right">Default when <m:math><m:mover><m:mi>n</m:mi><m:mo>-</m:mo></m:mover><m:mo>&lt;</m:mo><m:mn>75</m:mn></m:math></td></tr></table>
<table class="multi-optparam"><tr><td class="optparam-left"><a name="optparam_hessianlimitedmemory" id="hessianlimitedmemory"/><b><span class="u">H</span>essian <span class="u">Lim</span>ited Memory</b></td><td class="optparam-center"/><td class="optparam-right">Default when <m:math><m:mover><m:mi>n</m:mi><m:mo>-</m:mo></m:mover><m:mo>&#8805;</m:mo><m:mn>75</m:mn></m:math></td></tr></table><div class="paramtext">These options specify the method for storing and updating the quasi-Newton approximation to the Hessian of the Lagrangian function.</div>
<div class="paramtext">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_hessianfullmemory"><m:mi mathcolor="#800080;" mathvariant="bold">Hessian Full Memory</m:mi></m:maction></m:math>&#160;is specified, the approximate Hessian is treated as a dense matrix and BFGS quasi-Newton updates are applied explicitly.  This is most efficient when the total number of nonlinear variables is not too large (say, <m:math><m:mover><m:mi>n</m:mi><m:mo>-</m:mo></m:mover><m:mo>&lt;</m:mo><m:mn>75</m:mn></m:math>).  In this case, the storage requirement is fixed and you can expect <m:math><m:mn>1</m:mn></m:math>-step Q-superlinear convergence to the solution.</div>
<div class="paramtext"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_hessianlimitedmemory"><m:mi mathcolor="#800080;" mathvariant="bold">Hessian Limited Memory</m:mi></m:maction></m:math>&#160;should only be specified when <m:math><m:mover><m:mi>n</m:mi><m:mo>-</m:mo></m:mover></m:math>&#160;is very large.  In this case a limited memory procedure is used to update a diagonal Hessian approximation <m:math><m:msub><m:mi>H</m:mi><m:mi>r</m:mi></m:msub></m:math>&#160;a limited number of times.  (Updates are accumulated as a list of vector pairs.  They are discarded at regular intervals after <m:math><m:msub><m:mi>H</m:mi><m:mi>r</m:mi></m:msub></m:math>&#160;has been reset to their diagonal.)</div>
<div class="paramtext">Note that if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_hessianfrequency"><m:mi mathcolor="#800080;" mathvariant="bold">Hessian Frequency</m:mi></m:maction><m:mo>=</m:mo><m:mn>20</m:mn></m:math>&#160;is used in conjunction with <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_hessianfullmemory"><m:mi mathcolor="#800080;" mathvariant="bold">Hessian Full Memory</m:mi></m:maction></m:math>, the effect will be similar to using <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_hessianlimitedmemory"><m:mi mathcolor="#800080;" mathvariant="bold">Hessian Limited Memory</m:mi></m:maction></m:math>&#160;in conjunction with <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_hessianupdates"><m:mi mathcolor="#800080;" mathvariant="bold">Hessian Updates</m:mi></m:maction><m:mo>=</m:mo><m:mn>20</m:mn></m:math>, except that the latter will retain the current diagonal during resets.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_hessianupdates" id="hessianupdates"/><b><span class="u">H</span>essian <span class="u">U</span>pdates</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>20</m:mn><m:mtext>&#8203; or &#8203;</m:mtext><m:mn>99999999</m:mn></m:math></td></tr></table><div class="paramtext">The default value of <m:math><m:mi>i</m:mi></m:math>&#160;is <m:math><m:mn>20</m:mn></m:math>&#160;when <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_hessianlimitedmemory"><m:mi mathcolor="#800080;" mathvariant="bold">Hessian Limited Memory</m:mi></m:maction></m:math>&#160;is in effect and <m:math><m:mn>99999999</m:mn></m:math>&#160;when <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_hessianfullmemory"><m:mi mathcolor="#800080;" mathvariant="bold">Hessian Full Memory</m:mi></m:maction></m:math>&#160;is in effect, in which case no updates are performed.</div>
<div class="paramtext">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_hessianlimitedmemory"><m:mi mathcolor="#800080;" mathvariant="bold">Hessian Limited Memory</m:mi></m:maction></m:math>&#160;is selected, this option defines the maximum number of pairs of Hessian update vectors that are to be used to define the quasi-Newton approximate Hessian.  Once the limit of <m:math><m:mi>i</m:mi></m:math>&#160;updates is reached, all but the diagonal elements of the accumulated updates are discarded and the process starts again.  Broadly speaking, the more updates that are stored, the better the quality of the approximate Hessian.  On the other hand, the more vectors that are stored, the greater the cost of each QP iteration.</div>
<div class="paramtext">The default value of <m:math><m:mi>i</m:mi></m:math>&#160;is likely to give a robust algorithm without significant expense, but faster convergence may be obtained with far fewer updates (e.g., <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>5</m:mn></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>, the default value is used.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_infiniteboundsize" id="infiniteboundsize"/><b><span class="u">Infi</span>nite Bound 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">bigbnd</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">bigbnd</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">bigbnd</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>).</div>
<div class="paramtext">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:mn>10000</m:mn></m:math></td></tr></table><div class="paramtext">The value of <m:math><m:mi>i</m:mi></m:math>&#160;specifies the maximum number of minor iterations allowed (i.e., iterations of the simplex method or the QP algorithm), summed over all major iterations.  (See also the description of the optional parameters <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_majoriterationlimit"><m:mi mathcolor="#800080;" mathvariant="bold">Major Iteration Limit</m:mi></m:maction></m:math>&#160;and <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_minoriterationlimit"><m:mi mathcolor="#800080;" mathvariant="bold">Minor Iteration Limit</m:mi></m:maction></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>, the default value is used.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_linesearchtolerance" id="linesearchtolerance"/><b><span class="u">Lin</span>esearch 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.9</m:mn></m:math></td></tr></table><div class="paramtext">This option controls the accuracy with which a step length will be located along the direction of search at each iteration.  At the start of each linesearch a target directional derivative for the Lagrangian merit function is identified.  The value of <m:math><m:mi>r</m:mi></m:math>&#160;therefore determines the accuracy to which this target value is approximated.</div>
<div class="paramtext">The default value <m:math><m:mi>r</m:mi><m:mo>=</m:mo><m:mn>0.9</m:mn></m:math>&#160;requests an inaccurate search and is appropriate for most problems, particularly those with any nonlinear constraints.</div>
<div class="paramtext">If the nonlinear functions are cheap to evaluate, a more accurate search may be appropriate; try <m:math><m:mi>r</m:mi><m:mo>=</m:mo><m:mn>0.1</m:mn><m:mo>,</m:mo><m:mn>0.01</m:mn> <m:mtext>&#8203; or &#8203;</m:mtext> <m:mn>0.001</m:mn></m:math>.  The number of major iterations required to solve the problem might decrease.</div>
<div class="paramtext">If the nonlinear functions are expensive to evaluate, a less accurate search may be appropriate.  If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_derivativelevel"><m:mi mathcolor="#800080;" mathvariant="bold">Derivative Level</m:mi></m:maction><m:mo>=</m:mo><m:mn>3</m:mn></m:math>, try <m:math><m:mi>r</m:mi><m:mo>=</m:mo><m:mn>0.99</m:mn></m:math>.  (The number of major iterations required to solve the problem might increase, but the total number of function evaluations may decrease enough to compensate.)</div>
<div class="paramtext">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_derivativelevel"><m:mi mathcolor="#800080;" mathvariant="bold">Derivative Level</m:mi></m:maction><m:mo>&lt;</m:mo><m:mn>3</m:mn></m:math>, a moderately accurate search may be appropriate; try <m:math><m:mi>r</m:mi><m:mo>=</m:mo><m:mn>0.5</m:mn></m:math>.  Each search will (typically) require only <m:math><m:mn>1</m:mn><m:mo>-</m:mo><m:mn>5</m:mn></m:math>&#160;function values, but many function calls will then be needed to estimate the missing gradients for the next iteration.</div>
<div class="paramtext">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>&#8805;</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_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">E04UGF</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">E04UGA</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_ludensitytolerance" id="ludensitytolerance"/><b><span class="u">LU</span> <span class="u">De</span>nsity Tolerance</b></td><td class="optparam-center"><i>r</i><sub>1</sub></td><td class="optparam-right">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mn>0.6</m:mn></m:math></td></tr></table>
<table class="multi-optparam"><tr><td class="optparam-left"><a name="optparam_lusingulartolerance" id="lusingulartolerance"/><b><span class="u">LU</span> <span class="u">Si</span>ngularity Tolerance</b></td><td class="optparam-center"><i>r</i><sub>2</sub></td><td class="optparam-right">Default <m:math><m:mtext/><m:mo>=</m:mo><m:msup><m:mi>&#949;</m:mi><m:mn>0.67</m:mn></m:msup></m:math></td></tr></table><div class="paramtext">If <m:math><m:msub><m:mi>r</m:mi><m:mn>1</m:mn></m:msub><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>, <m:math><m:msub><m:mi>r</m:mi><m:mn>1</m:mn></m:msub></m:math>&#160;defines the density tolerance used during the <m:math><m:mi>L</m:mi><m:mi>U</m:mi></m:math>&#160;factorization of the basis matrix.  Columns of <m:math><m:mi>L</m:mi></m:math>&#160;and rows of <m:math><m:mi>U</m:mi></m:math>&#160;are formed one at a time and the remaining rows and columns of the basis are altered appropriately.  At any stage, if the density of the remaining matrix exceeds <m:math><m:msub><m:mi>r</m:mi><m:mn>1</m:mn></m:msub></m:math>, the Markowitz strategy for choosing pivots is terminated.  The remaining matrix is then factorized using a dense <m:math><m:mi>L</m:mi><m:mi>U</m:mi></m:math>&#160;procedure.  Increasing the value of <m:math><m:msub><m:mi>r</m:mi><m:mn>1</m:mn></m:msub></m:math>&#160;towards unity may give slightly sparser <m:math><m:mi>L</m:mi><m:mi>U</m:mi></m:math>&#160;factors, with a slight increase in factorization time.  If <m:math><m:msub><m:mi>r</m:mi><m:mn>1</m:mn></m:msub><m:mo>&#8804;</m:mo><m:mn>0</m:mn></m:math>, the default value is used.</div>
<div class="paramtext">If <m:math><m:msub><m:mi>r</m:mi><m:mn>2</m:mn></m:msub><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>, <m:math><m:msub><m:mi>r</m:mi><m:mn>2</m:mn></m:msub></m:math>&#160;defines the singularity tolerance used to guard against ill-conditioned basis matrices.  Whenever the basis is refactorized, the diagonal elements of <m:math><m:mi>U</m:mi></m:math>&#160;are tested as follows.  If <m:math><m:mfenced open="|" close="|" separators=""><m:msub><m:mi>u</m:mi><m:mrow><m:mi>j</m:mi><m:mi>j</m:mi></m:mrow></m:msub></m:mfenced><m:mo>&#8804;</m:mo><m:msub><m:mi>r</m:mi><m:mn>2</m:mn></m:msub></m:math>&#160;or <m:math><m:mfenced open="|" close="|" separators=""><m:msub><m:mi>u</m:mi><m:mrow><m:mi>j</m:mi><m:mi>j</m:mi></m:mrow></m:msub></m:mfenced><m:mo>&lt;</m:mo><m:msub><m:mi>r</m:mi><m:mn>2</m:mn></m:msub><m:mo>&#215;</m:mo><m:mstyle displaystyle="true"><m:munder><m:mi mathvariant="normal">max</m:mi><m:mi>i</m:mi></m:munder></m:mstyle><m:mspace width="0.25em"/><m:mfenced open="|" close="|" separators=""><m:msub><m:mi>u</m:mi><m:mrow><m:mi>i</m:mi><m:mi>j</m:mi></m:mrow></m:msub></m:mfenced></m:math>, the <m:math><m:mi>j</m:mi></m:math>th column of the basis is replaced by the corresponding slack variable.  This is most likely to occur when <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#START"><m:mi mathcolor="#EE0000" mathvariant="bold">START</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'W'</m:mtext></m:math>&#160;(see <a class="sec" href="#parameters">Section 5</a>), or at the start of a major iteration.  If <m:math><m:msub><m:mi>r</m:mi><m:mn>2</m:mn></m:msub><m:mo>&#8804;</m:mo><m:mn>0</m:mn></m:math>, the default value is used.</div>
<div class="paramtext">In some cases, the Jacobian matrix may converge to values that make the basis exactly singular (e.g., a whole row of the Jacobian matrix could be zero at an optimal solution).  Before exact singularity occurs, the basis could become very ill-conditioned and the optimization could progress very slowly (if at all).  Setting <m:math><m:msub><m:mi>r</m:mi><m:mn>2</m:mn></m:msub><m:mo>=</m:mo><m:mn>0.00001</m:mn></m:math>&#160;(say) may therefore help cause a judicious change of basis in such situations.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_lufactortolerance" id="lufactortolerance"/><b><span class="u">LU</span> <span class="u">Fa</span>ctor Tolerance</b></td><td class="optparam-center"><i>r</i><sub>1</sub></td><td class="optparam-right">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mn>5.0</m:mn></m:math>&#160;or <m:math><m:mn>100.0</m:mn></m:math></td></tr></table>
<table class="multi-optparam"><tr><td class="optparam-left"><a name="optparam_luupdatetolerance" id="luupdatetolerance"/><b><span class="u">LU</span> <span class="u">U</span>pdate Tolerance</b></td><td class="optparam-center"><i>r</i><sub>2</sub></td><td class="optparam-right">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mn>5.0</m:mn></m:math>&#160;or <m:math><m:mn>10.0</m:mn></m:math></td></tr></table><div class="paramtext">The default value of <m:math><m:msub><m:mi>r</m:mi><m:mn>1</m:mn></m:msub></m:math>&#160;is <m:math><m:mn>5.0</m:mn></m:math>&#160;if there are any nonlinear constraints and <m:math><m:mn>100.0</m:mn></m:math>&#160;otherwise.  The default value of <m:math><m:msub><m:mi>r</m:mi><m:mn>2</m:mn></m:msub></m:math>&#160;is <m:math><m:mn>5.0</m:mn></m:math>&#160;if there are any nonlinear constraints and <m:math><m:mn>10.0</m:mn></m:math>&#160;otherwise.</div>
<div class="paramtext">If <m:math><m:msub><m:mi>r</m:mi><m:mn>1</m:mn></m:msub><m:mo>&#8805;</m:mo><m:mn>1</m:mn></m:math>&#160;and <m:math><m:msub><m:mi>r</m:mi><m:mn>2</m:mn></m:msub><m:mo>&#8805;</m:mo><m:mn>1</m:mn></m:math>, the values of <m:math><m:msub><m:mi>r</m:mi><m:mn>1</m:mn></m:msub></m:math>&#160;and <m:math><m:msub><m:mi>r</m:mi><m:mn>2</m:mn></m:msub></m:math>&#160;affect the stability and sparsity of the basis factorization <m:math><m:mi>B</m:mi><m:mo>=</m:mo><m:mi>L</m:mi><m:mi>U</m:mi></m:math>, during refactorization and updating, respectively.  The lower triangular matrix <m:math><m:mi>L</m:mi></m:math>&#160;is a product of matrices of the form 
<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
 <m:mfenced><m:mtable> <m:mtr> <m:mtd><m:mn>1</m:mn></m:mtd> <m:mtd><m:mphantom><m:mn>0</m:mn></m:mphantom></m:mtd> </m:mtr><m:mtr> <m:mtd><m:mi>&#956;</m:mi></m:mtd> <m:mtd><m:mn>1</m:mn></m:mtd> </m:mtr> </m:mtable></m:mfenced>
<m:mtext>,</m:mtext> </m:math></td><td class="formula2"/></tr></table></div>
 where the multipliers <m:math><m:mi>&#956;</m:mi></m:math>&#160;satisfy <m:math><m:mfenced open="|" close="|" separators=""><m:mi>&#956;</m:mi></m:mfenced><m:mo>&#8804;</m:mo><m:msub><m:mi>r</m:mi><m:mi>i</m:mi></m:msub></m:math>.  Smaller values of <m:math><m:msub><m:mi>r</m:mi><m:mi>i</m:mi></m:msub></m:math>&#160;favour stability, while larger values favour sparsity.  The default values of <m:math><m:msub><m:mi>r</m:mi><m:mn>1</m:mn></m:msub></m:math>&#160;and <m:math><m:msub><m:mi>r</m:mi><m:mn>2</m:mn></m:msub></m:math>&#160;usually strike a good compromise.  For large and relatively dense problems, setting <m:math><m:msub><m:mi>r</m:mi><m:mn>1</m:mn></m:msub><m:mo>=</m:mo><m:mn>10.0</m:mn> <m:mtext>&#8203; or &#8203;</m:mtext> <m:mn>5.0</m:mn></m:math>&#160;(say) may give a marked improvement in sparsity without impairing stability to a serious degree.  Note that for problems involving band matrices, it may be necessary to reduce <m:math><m:msub><m:mi>r</m:mi><m:mn>1</m:mn></m:msub></m:math>&#160;and/or <m:math><m:msub><m:mi>r</m:mi><m:mn>2</m:mn></m:msub></m:math>&#160;in order to achieve stability.</div>
<div class="paramtext">If <m:math><m:msub><m:mi>r</m:mi><m:mn>1</m:mn></m:msub><m:mo>&lt;</m:mo><m:mn>1</m:mn></m:math>&#160;or <m:math><m:msub><m:mi>r</m:mi><m:mn>2</m:mn></m:msub><m:mo>&lt;</m:mo><m:mn>1</m:mn></m:math>, the appropriate default value is used.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_majorfeasibilitytolerance" id="majorfeasibilitytolerance"/><b><span class="u">Maj</span>or <span class="u">Fe</span>asibility 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:msqrt><m:mi>&#949;</m:mi></m:msqrt></m:math></td></tr></table><div class="paramtext">This option specifies how accurately the nonlinear constraints should be satisfied.  The default value is appropriate when the linear and nonlinear constraints contain data to approximately that accuracy.  A larger value may be appropriate if some of the problem functions are known to be of low accuracy.</div>
<div class="paramtext">Let <span class="italic">rowerr</span> be defined as the maximum nonlinear constraint violation normalized by the size of the solution.  It is required to satisfy 
<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block"> <m:mi mathvariant="italic">rowerr</m:mi><m:mo>=</m:mo><m:munder><m:mi mathvariant="normal">max</m:mi><m:mi>i</m:mi></m:munder><m:mspace width="0.25em"/><m:mfrac><m:msub><m:mi mathvariant="italic">viol</m:mi><m:mi>i</m:mi></m:msub><m:mfenced open="&#8214;" close="&#8214;" separators=""><m:mfenced separators=""><m:mi>x</m:mi><m:mo>,</m:mo><m:mi>s</m:mi></m:mfenced></m:mfenced>
 </m:mfrac><m:mo>&#8804;</m:mo><m:mi>r</m:mi><m:mtext>,</m:mtext> </m:math></td><td class="formula2"/></tr></table></div>
 where <m:math><m:msub><m:mi mathvariant="italic">viol</m:mi><m:mi>i</m:mi></m:msub></m:math>&#160;is the violation of the <m:math><m:mi>i</m:mi></m:math>th nonlinear constraint.</div>
<div class="paramtext">If <m:math><m:mi>r</m:mi><m:mo>&#8804;</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_majoriterationlimit" id="majoriterationlimit"/><b><span class="u">Maj</span>or <span class="u">I</span>teration 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:mn>1000</m:mn></m:math></td></tr></table><div class="paramtext">The value of <m:math><m:mi>i</m:mi></m:math>&#160;specifies the maximum number of major iterations allowed before termination.  It is intended to guard against an excessive number of linearizations of the nonlinear constraints.  Setting <m:math><m:mi>i</m:mi><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_majorprintlevel"><m:mi mathcolor="#800080;" mathvariant="bold">Major Print Level</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>&#160;means that the objective and constraint gradients will be checked if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_verifylevel"><m:mi mathcolor="#800080;" mathvariant="bold">Verify Level</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>&#160;and the workspace needed to start solving the problem will be computed and printed, but no iterations will be performed.</div>
<div class="paramtext">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><table class="optparam"><tr><td class="optparam-left"><a name="optparam_majoroptimalitytolerance" id="majoroptimalitytolerance"/><b><span class="u">Maj</span>or <span class="u">Optim</span>ality 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:msqrt><m:mi>&#949;</m:mi></m:msqrt></m:math></td></tr></table>
<table class="multi-optparam"><tr><td class="optparam-left"><a name="optparam_optimalitytolerance" id="optimalitytolerance"/><b><span class="u">O</span>ptimality Tolerance</b></td><td class="optparam-center"><i>r</i></td><td class="optparam-right"/></tr></table><div class="paramtext">This option specifies the final accuracy of the dual variables.  If E04UGF/E04UGA terminates 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>, a primal and dual solution (<m:math><m:mi>x</m:mi><m:mo>,</m:mo><m:mi>s</m:mi><m:mo>,</m:mo><m:mi>&#960;</m:mi></m:math>) will have been computed such that 

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block"> <m:mi mathvariant="italic">maxgap</m:mi><m:mo>=</m:mo><m:munder><m:mi mathvariant="normal">max</m:mi><m:mi>j</m:mi></m:munder><m:mspace width="0.25em"/><m:mfrac><m:msub><m:mi mathvariant="italic">gap</m:mi><m:mi>j</m:mi></m:msub><m:mfenced open="&#8214;" close="&#8214;" separators=""><m:mi>&#960;</m:mi></m:mfenced></m:mfrac><m:mo>&#8804;</m:mo><m:mi>r</m:mi><m:mtext>,</m:mtext> 
</m:math></td><td class="formula2"/></tr></table></div>
 
where <m:math><m:msub><m:mi mathvariant="italic">gap</m:mi><m:mi>j</m:mi></m:msub></m:math>&#160;is an estimate of the complementarity gap for the <m:math><m:mi>j</m:mi></m:math>th variable and <m:math><m:mfenced open="&#8214;" close="&#8214;" separators=""><m:mi>&#960;</m:mi></m:mfenced></m:math>&#160;is a measure of the size of the QP dual variables (or Lagrange multipliers) given by 

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block"> 
<m:mfenced open="&#8214;" close="&#8214;" separators=""><m:mi>&#960;</m:mi></m:mfenced><m:mo>=</m:mo><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mfrac><m:mi>&#963;</m:mi><m:msqrt><m:mi>m</m:mi></m:msqrt></m:mfrac><m:mo>,</m:mo><m:mn>1</m:mn></m:mfenced></m:mrow><m:mtext>, &#8195; where &#8195;</m:mtext><m:mi>&#963;</m:mi><m:mo>=</m:mo><m:munderover><m:mo>&#8721;</m:mo><m:mrow><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn></m:mrow><m:mi>m</m:mi></m:munderover><m:mfenced open="|" close="|" separators=""><m:msub><m:mi>&#960;</m:mi><m:mi>i</m:mi></m:msub></m:mfenced><m:mtext>.</m:mtext> 
</m:math></td><td class="formula2"/></tr></table></div>
 
It is included to make the tests independent of a scale factor on the objective function.  Specifically, <m:math><m:msub><m:mi mathvariant="italic">gap</m:mi><m:mi>j</m:mi></m:msub></m:math>&#160;is computed from the final QP solution using the reduced gradients <m:math><m:msub><m:mi>d</m:mi><m:mi>j</m:mi></m:msub><m:mo>=</m:mo><m:msub><m:mi>g</m:mi><m:mi>j</m:mi></m:msub><m:mo>-</m:mo><m:msup><m:mi>&#960;</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:msub><m:mi>a</m:mi><m:mi>j</m:mi></m:msub></m:math>, where <m:math><m:msub><m:mi>g</m:mi><m:mi>j</m:mi></m:msub></m:math>&#160;is the <m:math><m:mi>j</m:mi></m:math>th element of the objective gradient and <m:math><m:msub><m:mi>a</m:mi><m:mi>j</m:mi></m:msub></m:math>&#160;is the associated column of the constraint matrix <m:math><m:mfenced><m:mtable> <m:mtr> <m:mtd><m:mi>A</m:mi></m:mtd> <m:mtd><m:mo>-</m:mo><m:mi>I</m:mi></m:mtd> </m:mtr> </m:mtable></m:mfenced></m:math>: 

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block"> 
 <m:msub><m:mi mathvariant="italic">gap</m:mi><m:mi>j</m:mi></m:msub>
 <m:mo>=</m:mo>
 <m:mfenced open="{" close="" separators=""> 
  <m:mtable> 
   <m:mtr> 
    <m:mtd><m:mphantom><m:mo>-</m:mo></m:mphantom><m:msub><m:mi>d</m:mi><m:mi>j</m:mi></m:msub><m:mrow><m:mi>min</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mrow><m:msub><m:mi>x</m:mi><m:mi>j</m:mi></m:msub><m:mo>-</m:mo><m:msub><m:mi>l</m:mi><m:mi>j</m:mi></m:msub></m:mrow><m:mo>,</m:mo><m:mn>1</m:mn></m:mfenced></m:mrow></m:mtd> 
    <m:mtd><m:mtext>if &#8203;</m:mtext><m:msub><m:mi>d</m:mi><m:mi>j</m:mi></m:msub><m:mo>&#8805;</m:mo><m:mn>0</m:mn><m:mtext>;</m:mtext></m:mtd> 
   </m:mtr><m:mtr> 
    <m:mtd><m:mo>-</m:mo><m:msub><m:mi>d</m:mi><m:mi>j</m:mi></m:msub><m:mrow><m:mi>min</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mrow><m:msub><m:mi>u</m:mi><m:mi>j</m:mi></m:msub><m:mo>-</m:mo><m:msub><m:mi>x</m:mi><m:mi>j</m:mi></m:msub></m:mrow><m:mo>,</m:mo><m:mn>1</m:mn></m:mfenced></m:mrow></m:mtd> 
    <m:mtd><m:mtext>if &#8203;</m:mtext><m:msub><m:mi>d</m:mi><m:mi>j</m:mi></m:msub><m:mo>&lt;</m:mo><m:mn>0</m:mn><m:mtext>.</m:mtext></m:mtd> 
   </m:mtr> 
  </m:mtable> 
 </m:mfenced> 
</m:math></td><td class="formula2"/></tr></table></div>
 
</div>
<div class="paramtext">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_majorprintlevel" id="majorprintlevel"/><b><span class="u">Maj</span>or <span class="u">Pr</span>int Level</b></td><td class="optparam-center"><i>i</i></td><td class="optparam-right">Default for E04UGF
<m:math><m:mtext/><m:mo>=</m:mo><m:mn>10</m:mn></m:math><br/>
Default for E04UGA
<m:math><m:mtext/><m:mo>=</m:mo><m:mn>0</m:mn></m:math></td></tr></table>
<table class="multi-optparam"><tr><td class="optparam-left"><a name="optparam_printlevel" id="printlevel"/><b><span class="u">Pr</span>int Level</b></td><td class="optparam-center"/><td class="optparam-right"/></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 the major iterations of E04UGF/E04UGA, as indicated below.  A detailed description of the printed output is given in <a class="sec" href="#fc-majorprintout">Section 8.1</a> (summary output at each major iteration and the final solution) and <a class="sec" href="#monitoring">Section 12</a> (monitoring information at each major iteration).  (See also the description of <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_minorprintlevel"><m:mi mathcolor="#800080;" mathvariant="bold">Minor Print Level</m:mi></m:maction></m:math>.)</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-majorprintout">Section 8.1</a>) for each major 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 major 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: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 long line of output (<m:math><m:mtext/><m:mo>&lt;</m:mo><m:mn>120</m:mn></m:math>&#160;characters; see <a class="sec" href="#monitoring">Section 12</a>) for each major 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 long line of output for each major iteration.</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">The final solution, one long line of output for each major iteration, matrix statistics (initial status of rows and columns, number of elements, density, biggest and smallest elements, etc.), details of the scale factors resulting from the scaling procedure (if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_scaleoption"><m:mi mathcolor="#800080;" mathvariant="bold">Scale Option</m:mi></m:maction><m:mo>=</m:mo><m:mn>1</m:mn><m:mtext>&#8203; or &#8203;</m:mtext><m:mn>2</m:mn></m:math>), basis factorization statistics and details of the initial basis resulting from the Crash procedure (if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#START"><m:mi mathcolor="#EE0000" mathvariant="bold">START</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'C'</m:mtext></m:math>; see <a class="sec" href="#parameters">Section 5</a>).</td> 
</tr> 
</tbody> 
</table></div> 
</div>
<div class="paramtext">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_majorprintlevel"><m:mi mathcolor="#800080;" mathvariant="bold">Major 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 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>&#160;is the same as that defined by <a class="rout" href="../X04/x04abf.xml">X04ABF</a> then the summary output for each major iteration is suppressed.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_majorsteplimit" id="majorsteplimit"/><b><span class="u">Maj</span>or <span class="u">S</span>tep Limit</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>2.0</m:mn></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:mo>,</m:mo><m:mi>r</m:mi></m:math>&#160;limits the change in <m:math><m:mi>x</m:mi></m:math>&#160;during a linesearch.  It applies to all nonlinear problems once a &#8216;feasible solution&#8217; or &#8216;feasible subproblem&#8217; has been found.</div>
<div class="paramtext">A linesearch determines a step <m:math><m:mi>&#945;</m:mi></m:math>&#160;in the interval <m:math><m:mn>0</m:mn><m:mo>&lt;</m:mo><m:mi>&#945;</m:mi><m:mo>&#8804;</m:mo><m:mi>&#946;</m:mi></m:math>, where <m:math><m:mi>&#946;</m:mi><m:mo>=</m:mo><m:mn>1</m:mn></m:math>&#160;if there are any nonlinear constraints, or the step to the nearest upper or lower bound on <m:math><m:mi>x</m:mi></m:math>&#160;if all the constraints are linear.  Normally, the first step attempted is <m:math><m:msub><m:mi>&#945;</m:mi><m:mn>1</m:mn></m:msub><m:mo>=</m:mo><m:mrow><m:mi>min</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mn>1</m:mn><m:mo>,</m:mo><m:mi>&#946;</m:mi></m:mfenced></m:mrow></m:math>.</div>
<div class="paramtext">In some cases, such as <m:math><m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced><m:mo>=</m:mo><m:mi>a</m:mi><m:msup><m:mi>e</m:mi><m:mrow><m:mi>b</m:mi><m:mi>x</m:mi></m:mrow></m:msup></m:math>&#160;or <m:math><m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced><m:mo>=</m:mo><m:mi>a</m:mi><m:msup><m:mi>x</m:mi><m:mi>b</m:mi></m:msup></m:math>, even a moderate change in the elements of <m:math><m:mi>x</m:mi></m:math>&#160;can lead to floating-point overflow.  The parameter <m:math><m:mi>r</m:mi></m:math>&#160;is therefore used to define a step limit <m:math><m:mover><m:mi>&#946;</m:mi><m:mo>-</m:mo></m:mover></m:math>&#160;given by 
<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block"> <m:mover><m:mi>&#946;</m:mi><m:mo>-</m:mo></m:mover><m:mo>=</m:mo><m:mfrac><m:mrow><m:mi>r</m:mi><m:mfenced separators=""><m:mn>1</m:mn><m:mo>+</m:mo><m:msub><m:mfenced open="&#8214;" close="&#8214;" separators=""><m:mi>x</m:mi></m:mfenced><m:mn>2</m:mn></m:msub></m:mfenced></m:mrow>
  <m:msub><m:mfenced open="&#8214;" close="&#8214;" separators=""><m:mi>p</m:mi></m:mfenced><m:mn>2</m:mn></m:msub>
 </m:mfrac><m:mtext>,</m:mtext> </m:math></td><td class="formula2"/></tr></table></div>
 where <m:math><m:mi>p</m:mi></m:math>&#160;is the search direction and the first evaluation of <m:math><m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;is made at the (potentially) smaller step length <m:math><m:msub><m:mi>&#945;</m:mi><m:mn>1</m:mn></m:msub><m:mo>=</m:mo><m:mrow><m:mi>min</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mn>1</m:mn><m:mo>,</m:mo><m:mover><m:mi>&#946;</m:mi><m:mo>-</m:mo></m:mover><m:mo>,</m:mo><m:mi>&#946;</m:mi></m:mfenced></m:mrow></m:math>.</div>
<div class="paramtext">Wherever possible, upper and lower bounds on <m:math><m:mi>x</m:mi></m:math>&#160;should be used to prevent evaluation of nonlinear functions at meaningless points.  The default value <m:math><m:mi>r</m:mi><m:mo>=</m:mo><m:mn>2.0</m:mn></m:math>&#160;should not affect progress on well-behaved functions, but values such as <m:math><m:mi>r</m:mi><m:mo>=</m:mo><m:mn>0.1</m:mn> <m:mtext>&#8203; or &#8203;</m:mtext> <m:mn>0.01</m:mn></m:math>&#160;may be helpful when rapidly varying functions are present.  If a small value of <m:math><m:mi>r</m:mi></m:math>&#160;is selected, a &#8216;good&#8217; starting point may be required.  An important application is to the class of nonlinear least-squares problems.</div>
<div class="paramtext">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_minorfeasibilitytolerance" id="minorfeasibilitytolerance"/><b><span class="u">Mino</span>r <span class="u">Fe</span>asibility 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:msqrt><m:mi>&#949;</m:mi></m:msqrt></m:math></td></tr></table>
<table class="multi-optparam"><tr><td class="optparam-left"><a name="optparam_feasibilitytolerance" id="feasibilitytolerance"/><b><span class="u">Feasibi</span>lity <span class="u">T</span>olerance</b></td><td class="optparam-center"><i>r</i></td><td class="optparam-right"/></tr></table><div class="paramtext">This option attempts to ensure that all variables eventually satisfy their upper and lower bounds to within the tolerance <m:math><m:mi>r</m:mi></m:math>.  Since this includes slack variables, general linear constraints should also be satisfied to within <m:math><m:mi>r</m:mi></m:math>.  Note that feasibility with respect to nonlinear constraints is judged by the value of optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_majorfeasibilitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Major Feasibility Tolerance</m:mi></m:maction></m:math>&#160;and not by <m:math><m:mi>r</m:mi></m:math>.</div>
<div class="paramtext">If the bounds and linear constraints cannot be satisfied to within <m:math><m:mi>r</m:mi></m:math>, the problem is declared <span class="italic">infeasible</span>.  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">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_scaleoption"><m:mi mathcolor="#800080;" mathvariant="bold">Scale Option</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>1</m:mn></m:math>, feasibility is defined in terms of the <span class="italic">scaled</span> problem (since it is more likely to be meaningful).</div>
<div class="paramtext">Nonlinear functions will only be evaluated at points that satisfy the bounds and linear constraints.  If there are regions where a function is undefined, every effort should be made to eliminate these regions from the problem.  For example, if <m:math><m:mi>f</m:mi><m:mfenced separators=""><m:msub><m:mi>x</m:mi><m:mn>1</m:mn></m:msub><m:mo>,</m:mo><m:msub><m:mi>x</m:mi><m:mn>2</m:mn></m:msub></m:mfenced><m:mo>=</m:mo><m:msqrt><m:msub><m:mi>x</m:mi><m:mn>1</m:mn></m:msub></m:msqrt><m:mo>+</m:mo><m:mrow><m:mi>log</m:mi><m:mfenced separators=""><m:msub><m:mi>x</m:mi><m:mn>2</m:mn></m:msub></m:mfenced></m:mrow></m:math>, it is essential to place lower bounds on both <m:math><m:msub><m:mi>x</m:mi><m:mn>1</m:mn></m:msub></m:math>&#160;and <m:math><m:msub><m:mi>x</m:mi><m:mn>2</m:mn></m:msub></m:math>.  If the value <m:math><m:mi>r</m:mi><m:mo>=</m:mo><m:msup><m:mn>10</m:mn><m:mrow><m:mo>-</m:mo><m:mn>6</m:mn></m:mrow></m:msup></m:math>&#160;is used, the bounds <m:math><m:msub><m:mi>x</m:mi><m:mn>1</m:mn></m:msub><m:mo>&#8805;</m:mo><m:msup><m:mn>10</m:mn><m:mrow><m:mo>-</m:mo><m:mn>5</m:mn></m:mrow></m:msup></m:math>&#160;and <m:math><m:msub><m:mi>x</m:mi><m:mn>2</m:mn></m:msub><m:mo>&#8805;</m:mo><m:msup><m:mn>10</m:mn><m:mrow><m:mo>-</m:mo><m:mn>4</m:mn></m:mrow></m:msup></m:math>&#160;might be appropriate.  (The log singularity is more serious; in general, you should attempt to keep <m:math><m:mi>x</m:mi></m:math>&#160;as far away from singularities as possible.)</div>
<div class="paramtext">In reality, <m:math><m:mi>r</m:mi></m:math>&#160;is used as a feasibility tolerance for satisfying the bounds on <m:math><m:mi>x</m:mi></m:math>&#160;and <m:math><m:mi>s</m:mi></m:math>&#160;in each QP subproblem.  If the sum of infeasibilities cannot be reduced to zero, the QP subproblem is declared infeasible and the routine is then in <span class="italic">elastic mode</span> thereafter (with only the linearized nonlinear constraints defined to be elastic).  (See also the description of <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_elasticweight"><m:mi mathcolor="#800080;" mathvariant="bold">Elastic Weight</m:mi></m:maction></m:math>.)</div>
<div class="paramtext">If <m:math><m:mi>r</m:mi><m:mo>&#8804;</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_minoriterationlimit" id="minoriterationlimit"/><b><span class="u">Mino</span>r <span class="u">I</span>teration 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:mn>500</m:mn></m:math></td></tr></table><div class="paramtext">The value of <m:math><m:mi>i</m:mi></m:math>&#160;specifies the maximum number of iterations allowed between successive linearizations of the nonlinear constraints.  A value in the range <m:math><m:mn>10</m:mn><m:mo>&#8804;</m:mo><m:mi>i</m:mi><m:mo>&#8804;</m:mo><m:mn>50</m:mn></m:math>&#160;prevents excessive effort being expended on early major iterations, but allows later QP subproblems to be solved to completion.  Note that an extra <m:math><m:mi>m</m:mi></m:math>&#160;minor iterations are allowed if the first QP subproblem to be solved starts with the all-slack basis <m:math><m:mi>B</m:mi><m:mo>=</m:mo><m:mi>I</m:mi></m:math>.  (See the description of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_crashoption"><m:mi mathcolor="#800080;" mathvariant="bold">Crash Option</m:mi></m:maction></m:math>.)</div>
<div class="paramtext">In general, it is unsafe to specify values as small as <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mtext>&#8203; or &#8203;</m:mtext><m:mn>2</m:mn></m:math>&#160;(because even when an optimal solution has been reached, a few minor iterations may be needed for the corresponding QP subproblem to be recognized as optimal).</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.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_minoroptimalitytolerance" id="minoroptimalitytolerance"/><b><span class="u">Mino</span>r <span class="u">Optim</span>ality 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:msqrt><m:mi>&#949;</m:mi></m:msqrt></m:math></td></tr></table><div class="paramtext">This option is used to judge optimality for each QP subproblem.  Let the QP reduced gradients be <m:math><m:msub><m:mi>d</m:mi><m:mi>j</m:mi></m:msub><m:mo>=</m:mo><m:msub><m:mi>g</m:mi><m:mi>j</m:mi></m:msub><m:mo>-</m:mo><m:msup><m:mi>&#960;</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:msub><m:mi>a</m:mi><m:mi>j</m:mi></m:msub></m:math>, where <m:math><m:msub><m:mi>g</m:mi><m:mi>j</m:mi></m:msub></m:math>&#160;is the <m:math><m:mi>j</m:mi></m:math>th element of the QP gradient, <m:math><m:msub><m:mi>a</m:mi><m:mi>j</m:mi></m:msub></m:math>&#160;is the associated column of the QP constraint matrix and <m:math><m:mi>&#960;</m:mi></m:math>&#160;is the set of QP dual variables.</div>
<div class="paramtext">By construction, the reduced gradients for basic variables are always zero.  The QP subproblem will be declared optimal if the reduced gradients for nonbasic variables at their upper or lower bounds satisfy 
<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block"> <m:mfrac><m:msub><m:mi>d</m:mi><m:mi>j</m:mi></m:msub><m:mfenced open="&#8214;" close="&#8214;" separators=""><m:mi>&#960;</m:mi></m:mfenced></m:mfrac><m:mo>&#8805;</m:mo><m:mo>-</m:mo><m:mi>r</m:mi><m:mtext>&#8195; or &#8195;</m:mtext><m:mfrac><m:msub><m:mi>d</m:mi><m:mi>j</m:mi></m:msub><m:mfenced open="&#8214;" close="&#8214;" separators=""><m:mi>&#960;</m:mi></m:mfenced></m:mfrac><m:mo>&#8804;</m:mo><m:mi>r</m:mi> </m:math></td><td class="formula2"/></tr></table></div>
 respectively, and if <m:math>
 <m:mfrac other="display">
  <m:mfenced open="|" close="|" separators=""><m:msub><m:mi>d</m:mi><m:mi>j</m:mi></m:msub></m:mfenced><m:mfenced open="&#8214;" close="&#8214;" separators=""><m:mi>&#960;</m:mi></m:mfenced></m:mfrac><m:mo>&#8804;</m:mo><m:mi>r</m:mi></m:math>&#160;for superbasic variables.</div>
<div class="paramtext">Note that <m:math><m:mfenced open="&#8214;" close="&#8214;" separators=""><m:mi>&#960;</m:mi></m:mfenced></m:math>&#160;is a measure of the size of the dual variables.  It is included to make the tests independent of a scale factor on the objective function.  (The value of <m:math><m:mfenced open="&#8214;" close="&#8214;" separators=""><m:mi>&#960;</m:mi></m:mfenced></m:math>&#160;actually used is defined in the description for optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_majoroptimalitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Major Optimality Tolerance</m:mi></m:maction></m:math>.)</div>
<div class="paramtext">If the objective is scaled down to be very <span class="italic">small</span>, the optimality test reduces to comparing <m:math><m:msub><m:mi>d</m:mi><m:mi>j</m:mi></m:msub></m:math>&#160;against <m:math><m:mi>r</m:mi></m:math>.</div>
<div class="paramtext">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_minorprintlevel" id="minorprintlevel"/><b><span class="u">Mino</span>r <span class="u">Pr</span>int Level</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>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 the minor iterations of E04UGF/E04UGA (i.e., the iterations of the quadratic programming algorithm), as indicated below.  A detailed description of the printed output is given in <a class="sec" href="#fc-minorprintout">Section 8.2</a> (summary output at each minor iteration) and <a class="sec" href="#monitoring">Section 12</a> (monitoring information at each minor iteration). (See also the description of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_majorprintlevel"><m:mi mathcolor="#800080;" mathvariant="bold">Major Print Level</m:mi></m:maction></m:math>.)</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: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:mtext/><m:mo>&#8805;</m:mo><m:mn>1</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-minorprintout">Section 8.2</a>) for each minor 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:mphantom><m:mo>&#8805;</m:mo></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:mtext/><m:mo>&#8805;</m:mo><m:mn>1</m:mn></m:math></td> 
<td class="libdoc" valign="top" align="left">One long line of output (<m:math><m:mtext/><m:mo>&lt;</m:mo><m:mn>120</m:mn></m:math>&#160;characters; see <a class="sec" href="#monitoring">Section 12</a>) for each minor iteration.</td> 
</tr> 
</tbody> 
</table></div> 
</div>
<div class="paramtext">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_minorprintlevel"><m:mi mathcolor="#800080;" mathvariant="bold">Minor Print Level</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>1</m:mn></m:math>&#160;and the 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>&#160;is the same as that defined by <a class="rout" href="../X04/x04abf.xml">X04ABF</a> then the summary output for each minor iteration is suppressed.</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_majorprintlevel"><m:mi mathcolor="#800080;" mathvariant="bold">Major Print Level</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>5</m:mn></m:math>&#160;or <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_minorprintlevel"><m:mi mathcolor="#800080;" mathvariant="bold">Minor Print Level</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>1</m:mn></m:math>&#160;then monitoring information is produced by E04UGF/E04UGA at every iteration is sent to a file with logical unit number <m:math><m:mi>i</m:mi></m:math>.  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_majorprintlevel"><m:mi mathcolor="#800080;" mathvariant="bold">Major Print Level</m:mi></m:maction><m:mo>&lt;</m:mo><m:mn>5</m:mn></m:math>&#160;and <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_minorprintlevel"><m:mi mathcolor="#800080;" mathvariant="bold">Minor Print Level</m:mi></m:maction><m:mo>&lt;</m:mo><m:mn>1</m:mn></m:math>&#160;then no monitoring information is produced.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_partialprice" id="partialprice"/><b><span class="u">Pa</span>rtial Price</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>1</m:mn><m:mtext>&#8203; or &#8203;</m:mtext><m:mn>10</m:mn></m:math></td></tr></table><div class="paramtext">The default value of <m:math><m:mi>i</m:mi></m:math>&#160;is <m:math><m:mn>1</m:mn></m:math>&#160;if there are any nonlinear constraints and <m:math><m:mn>10</m:mn></m:math>&#160;otherwise.</div>
<div class="paramtext">This option is recommended for large problems that have significantly more variables than constraints (i.e., <m:math><m:mi>n</m:mi><m:mo>&#8811;</m:mo><m:mi>m</m:mi></m:math>).  It reduces the work required for each &#8216;pricing&#8217; operation (i.e., when a nonbasic variable is selected to become superbasic).  The possible choices for <m:math><m:mi>i</m:mi></m:math>&#160;are the following.  
<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>Meaning</b></td> 
</tr><tr> 
<td class="libdoc" valign="top" align="center"><m:math><m:mphantom><m:mo>&#8805;</m:mo></m:mphantom><m:mn>1</m:mn></m:math></td> 
<td class="libdoc" valign="top" align="left">All columns of the constraint matrix <m:math><m:mfenced><m:mtable> <m:mtr> <m:mtd><m:mi>A</m:mi></m:mtd> <m:mtd><m:mo>-</m:mo><m:mi>I</m:mi></m:mtd> </m:mtr> </m:mtable></m:mfenced></m:math>&#160;are searched.</td> 
</tr><tr> 
<td class="libdoc" valign="top" align="center"><m:math><m:mtext/><m:mo>&#8805;</m:mo><m:mn>2</m:mn></m:math></td> 
<td class="libdoc" valign="top" align="left">Both <m:math><m:mi>A</m:mi></m:math>&#160;and <m:math><m:mi>I</m:mi></m:math>&#160;are partitioned to give <m:math><m:mi>i</m:mi></m:math>&#160;roughly equal segments <m:math><m:msub><m:mi>A</m:mi><m:mi>j</m:mi></m:msub><m:mo>,</m:mo><m:msub><m:mi>I</m:mi><m:mi>j</m:mi></m:msub></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>p</m:mi></m:math>&#160;(modulo <m:math><m:mi>p</m:mi></m:math>).  If the previous pricing search was successful on <m:math><m:msub><m:mi>A</m:mi><m:mi>j</m:mi></m:msub><m:mo>,</m:mo><m:msub><m:mi>I</m:mi><m:mi>j</m:mi></m:msub></m:math>, the next search begins on the segments <m:math><m:msub><m:mi>A</m:mi><m:mrow><m:mi>j</m:mi><m:mo>+</m:mo><m:mn>1</m:mn></m:mrow></m:msub><m:mo>,</m:mo><m:msub><m:mi>I</m:mi><m:mrow><m:mi>j</m:mi><m:mo>+</m:mo><m:mn>1</m:mn></m:mrow></m:msub></m:math>.  If a reduced gradient is found that is larger than some dynamic tolerance, the variable with the largest such reduced gradient (of appropriate sign) is selected to enter the basis.  If nothing is found, the search continues on the next segments <m:math><m:msub><m:mi>A</m:mi><m:mrow><m:mi>j</m:mi><m:mo>+</m:mo><m:mn>2</m:mn></m:mrow></m:msub><m:mo>,</m:mo><m:msub><m:mi>I</m:mi><m:mrow><m:mi>j</m:mi><m:mo>+</m:mo><m:mn>2</m:mn></m:mrow></m:msub></m:math>&#160;and so on.</td> 
</tr> 
</tbody> 
</table></div> 
</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.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_pivottolerance" id="pivottolerance"/><b><span class="u">Pi</span>vot 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:msup><m:mi>&#949;</m:mi><m:mn>0.67</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;is used during the solution of QP subproblems to prevent columns entering the basis if they would cause the basis to become almost singular.</div>
<div class="paramtext">When <m:math><m:mi>x</m:mi></m:math>&#160;changes to <m:math><m:mi>x</m:mi><m:mo>+</m:mo><m:mi>&#945;</m:mi><m:mi>p</m:mi></m:math>&#160;for some specified search direction <m:math><m:mi>p</m:mi></m:math>, a &#8216;ratio test&#8217; is used to determine which element of <m:math><m:mi>x</m:mi></m:math>&#160;reaches an upper or lower bound first.  The corresponding element of <m:math><m:mi>p</m:mi></m:math>&#160;is called the <span class="italic">pivot element</span>.  Elements of <m:math><m:mi>p</m:mi></m:math>&#160;are ignored (and therefore cannot be pivot elements) if they are smaller than <m:math><m:mi>r</m:mi></m:math>.</div>
<div class="paramtext">It is common in practice for two (or more) variables to reach a bound at essentially the same time.  In such cases, the <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_minorfeasibilitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Minor Feasibility Tolerance</m:mi></m:maction></m:math>&#160;provides some freedom to maximize the pivot element and thereby improve numerical stability.  Excessively <span class="italic">small</span> values of <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_minorfeasibilitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Minor Feasibility Tolerance</m:mi></m:maction></m:math>&#160;should therefore not be specified.  To a lesser extent, the <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_expandfrequency"><m:mi mathcolor="#800080;" mathvariant="bold">Expand Frequency</m:mi></m:maction></m:math>&#160;also provides some freedom to maximize the pivot element.  Excessively <span class="italic">large</span> values of <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_expandfrequency"><m:mi mathcolor="#800080;" mathvariant="bold">Expand Frequency</m:mi></m:maction></m:math>&#160;should therefore not be specified.</div>
<div class="paramtext">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_scaleoption" id="scaleoption"/><b><span class="u">Sc</span>ale <span class="u">Optio</span>n</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>1</m:mn><m:mtext>&#8203; or &#8203;</m:mtext><m:mn>2</m:mn></m:math></td></tr></table><div class="paramtext">The default value of <m:math><m:mi>i</m:mi></m:math>&#160;is <m:math><m:mn>1</m:mn></m:math>&#160;if there are any nonlinear constraints and <m:math><m:mn>2</m:mn></m:math>&#160;otherwise.</div>
<div class="paramtext">This option enables you to scale the variables and constraints using an iterative procedure due to <a class="ref" href="#ref662">Fourer (1982)</a>, which attempts to compute row scales <m:math><m:msub><m:mi>r</m:mi><m:mi>i</m:mi></m:msub></m:math>&#160;and column scales <m:math><m:msub><m:mi>c</m:mi><m:mi>j</m:mi></m:msub></m:math>&#160;such that the scaled matrix coefficients <m:math><m:msub><m:mover><m:mi>a</m:mi><m:mo>-</m:mo></m:mover><m:mrow><m:mi>i</m:mi><m:mi>j</m:mi></m:mrow></m:msub><m:mo>=</m:mo><m:msub><m:mi>a</m:mi><m:mrow><m:mi>i</m:mi><m:mi>j</m:mi></m:mrow></m:msub><m:mo>&#215;</m:mo><m:mfenced separators=""><m:msub><m:mi>c</m:mi><m:mi>j</m:mi></m:msub><m:mo>/</m:mo><m:msub><m:mi>r</m:mi><m:mi>i</m:mi></m:msub></m:mfenced></m:math>&#160;are as close as possible to unity.  (The lower and upper bounds on the variables and slacks for the scaled problem are redefined as <m:math><m:msub><m:mover><m:mi>l</m:mi><m:mo>-</m:mo></m:mover><m:mi>j</m:mi></m:msub><m:mo>=</m:mo><m:msub><m:mi>l</m:mi><m:mi>j</m:mi></m:msub><m:mo>/</m:mo><m:msub><m:mi>c</m:mi><m:mi>j</m:mi></m:msub></m:math>&#160;and <m:math><m:msub><m:mover><m:mi>u</m:mi><m:mo>-</m:mo></m:mover><m:mi>j</m:mi></m:msub><m:mo>=</m:mo><m:msub><m:mi>u</m:mi><m:mi>j</m:mi></m:msub><m:mo>/</m:mo><m:msub><m:mi>c</m:mi><m:mi>j</m:mi></m:msub></m:math>&#160;respectively, where <m:math><m:msub><m:mi>c</m:mi><m:mi>j</m:mi></m:msub><m:mo>&#8801;</m:mo><m:msub><m:mi>r</m:mi><m:mrow><m:mi>j</m:mi><m:mo>-</m:mo><m:mi>n</m:mi></m:mrow></m:msub></m:math>&#160;if <m:math><m:mi>j</m:mi><m:mo>&gt;</m:mo><m:mi>n</m:mi></m:math>.) The possible choices for <m:math><m:mi>i</m:mi></m:math>&#160;are the following.  
<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>Meaning</b></td> 
</tr><tr> 
<td class="libdoc" valign="top" align="center">0</td> 
<td class="libdoc" valign="top" align="left">No scaling is performed.  This is recommended if it is known that the elements of <m:math><m:mi>x</m:mi></m:math>&#160;and the constraint matrix <m:math><m:mi>A</m:mi></m:math>&#160;(along with its Jacobian) never become large (say, <m:math><m:mtext/><m:mo>&gt;</m:mo><m:mn>1000</m:mn></m:math>).</td> 
</tr><tr> 
<td class="libdoc" valign="top" align="center">1</td> 
<td class="libdoc" valign="top" align="left">All linear constraints and variables are scaled.  This may improve the overall efficiency of the routine on some problems.</td> 
</tr><tr> 
<td class="libdoc" valign="top" align="center">2</td> 
<td class="libdoc" valign="top" align="left">All constraints and variables are scaled.  Also, an additional scaling is performed that takes into account columns of <m:math> <m:mfenced><m:mtable> <m:mtr> <m:mtd><m:mi>A</m:mi></m:mtd> <m:mtd><m:mo>-</m:mo><m:mi>I</m:mi></m:mtd> </m:mtr> </m:mtable></m:mfenced></m:math>&#160;that are fixed or have positive lower bounds or negative upper bounds.</td> 
</tr> 
</tbody> 
</table></div> 
</div>
<div class="paramtext">If there are any nonlinear constraints present, the scale factors depend on the Jacobian at the first point that satisfies the linear constraints and the upper and lower bounds.  The setting <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>2</m:mn></m:math>&#160;should therefore be used only if a &#8216;good&#8217; starting point is available and the problem is not highly nonlinear.</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:mn>2</m:mn></m:math>, the default value is used.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_scaletolerance" id="scaletolerance"/><b><span class="u">Sc</span>ale <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:mn>0.9</m:mn></m:math></td></tr></table><div class="paramtext">Note that this option does not apply when <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_scaleoption"><m:mi mathcolor="#800080;" mathvariant="bold">Scale Option</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math>.</div>
<div class="paramtext">The value <m:math><m:mi>r</m:mi></m:math>&#160;(<m:math><m:mn>0</m:mn><m:mo>&lt;</m:mo><m:mi>r</m:mi><m:mo>&lt;</m:mo><m:mn>1</m:mn></m:math>) is used to control the number of scaling passes to be made through the constraint matrix <m:math><m:mi>A</m:mi></m:math>.  At least <m:math><m:mn>3</m:mn></m:math>&#160;(and at most <m:math><m:mn>10</m:mn></m:math>) passes will be made.  More precisely, let <m:math><m:msub><m:mi>a</m:mi><m:mi>p</m:mi></m:msub></m:math>&#160;denote the largest column ratio (i.e., <m:math><m:mfrac><m:mrow><m:mtext>'biggest'</m:mtext><m:mtext>&#8203; element</m:mtext></m:mrow>
  <m:mrow><m:mtext>'smallest'</m:mtext><m:mtext>&#8203; element</m:mtext></m:mrow>
 </m:mfrac>
</m:math>&#160;in some sense) after the <m:math><m:mi>p</m:mi></m:math>th scaling pass through <m:math><m:mi>A</m:mi></m:math>.  The scaling procedure is terminated if <m:math><m:msub><m:mi>a</m:mi><m:mi>p</m:mi></m:msub><m:mo>&#8805;</m:mo><m:msub><m:mi>a</m:mi><m:mrow><m:mi>p</m:mi><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow></m:msub><m:mo>&#215;</m:mo><m:mi>r</m:mi></m:math>&#160;for some <m:math><m:mi>p</m:mi><m:mo>&#8805;</m:mo><m:mn>3</m:mn></m:math>.  Thus, increasing the value of <m:math><m:mi>r</m:mi></m:math>&#160;from <m:math><m:mn>0.9</m:mn></m:math>&#160;to <m:math><m:mn>0.99</m:mn></m:math>&#160;(say) will probably increase the number of passes through <m:math><m:mi>A</m:mi></m:math>.</div>
<div class="paramtext">If <m:math><m:mi>r</m:mi><m:mo>&#8804;</m:mo><m:mn>0</m:mn></m:math>&#160;or <m:math><m:mi>r</m:mi><m:mo>&#8805;</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_start-obj-check-col" id="start-obj-check-col"/><b><span class="u">Sta</span>rt <span class="u">Ob</span>jective Check At Column</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:mn>1</m:mn></m:math></td></tr></table>
<table class="multi-optparam"><tr><td class="optparam-left"><a name="optparam_stop-obj-check-col" id="stop-obj-check-col"/><b><span class="u">Sto</span>p <span class="u">Ob</span>jective Check At Column</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:msubsup><m:mi>n</m:mi><m:mn>1</m:mn><m:mo>&#8242;</m:mo></m:msubsup></m:math></td></tr></table>
<table class="multi-optparam"><tr><td class="optparam-left"><a name="optparam_start-con-check-col" id="start-con-check-col"/><b><span class="u">Sta</span>rt <span class="u">C</span>onstraint Check At Column</b></td><td class="optparam-center"><i>i</i><sub>3</sub></td><td class="optparam-right">Default <m:math><m:mtext/><m:mo>=</m:mo><m:mn>1</m:mn></m:math></td></tr></table>
<table class="multi-optparam"><tr><td class="optparam-left"><a name="optparam_stop-con-check-col" id="stop-con-check-col"/><b><span class="u">Sto</span>p <span class="u">C</span>onstraint Check At Column</b></td><td class="optparam-center"><i>i</i><sub>4</sub></td><td class="optparam-right">Default <m:math><m:mtext/><m:mo>=</m:mo><m:msubsup><m:mi>n</m:mi><m:mn>1</m:mn><m:mrow><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo></m:mrow></m:msubsup></m:math></td></tr></table><div class="paramtext">These keywords take effect only if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_verifylevel"><m:mi mathcolor="#800080;" mathvariant="bold">Verify Level</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>.  They may be used to control the verification of gradient elements computed by <a class="arg" href="#OBJFUN">OBJFUN</a> and/or Jacobian elements computed by <a class="arg" href="#CONFUN">CONFUN</a>.  For example, if the first <m:math><m:mn>30</m:mn></m:math>&#160;elements of the objective gradient appeared to be correct in an earlier run, so that only element <m:math><m:mn>31</m:mn></m:math>&#160;remains questionable then it is reasonable to specify <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_start-obj-check-col"><m:mi mathcolor="#800080;" mathvariant="bold">Start Objective Check At Column</m:mi></m:maction><m:mo>=</m:mo><m:mn>31</m:mn></m:math>.  Similarly for columns of the Jacobian.  If the first <m:math><m:mn>30</m:mn></m:math>&#160;variables occur nonlinearly in the constraints but the remaining variables are nonlinear only in the objective, then <a class="arg" href="#OBJFUN">OBJFUN</a> must set the first <m:math><m:mn>30</m:mn></m:math>&#160;elements of the array <a class="arg" href="../E04/e04ugf.xml#OBJFUN_OBJGRD">OBJGRD</a> to zero, but these hardly need to be verified.  Again it is reasonable to specify <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_start-obj-check-col"><m:mi mathcolor="#800080;" mathvariant="bold">Start Objective Check At Column</m:mi></m:maction><m:mo>=</m:mo><m:mn>31</m:mn></m:math>.</div>
<div class="paramtext">If <m:math><m:msub><m:mi>i</m:mi><m:mn>2</m:mn></m:msub><m:mo>&#8804;</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>&gt;</m:mo><m:msubsup><m:mi>n</m:mi><m:mn>1</m:mn><m:mo>&#8242;</m:mo></m:msubsup></m:math>, the default value is used.</div>
<div class="paramtext">If <m:math><m:msub><m:mi>i</m:mi><m:mn>1</m:mn></m:msub><m:mo>&#8804;</m:mo><m:mn>0</m:mn></m:math>&#160;or <m:math><m:msub><m:mi>i</m:mi><m:mn>1</m:mn></m:msub><m:mo>&gt;</m:mo><m:mrow><m:mi>min</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:msubsup><m:mi>n</m:mi><m:mn>1</m:mn><m:mo>&#8242;</m:mo></m:msubsup><m:mo>,</m:mo><m:msub><m:mi>i</m:mi><m:mn>2</m:mn></m:msub></m:mfenced></m:mrow></m:math>, the default value is used.</div>
<div class="paramtext">If <m:math><m:msub><m:mi>i</m:mi><m:mn>4</m:mn></m:msub><m:mo>&#8804;</m:mo><m:mn>0</m:mn></m:math>&#160;or <m:math><m:msub><m:mi>i</m:mi><m:mn>4</m:mn></m:msub><m:mo>&gt;</m:mo><m:msubsup><m:mi>n</m:mi><m:mn>1</m:mn><m:mrow><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo></m:mrow></m:msubsup></m:math>, the default value is used.</div>
<div class="paramtext">If <m:math><m:msub><m:mi>i</m:mi><m:mn>3</m:mn></m:msub><m:mo>&#8804;</m:mo><m:mn>0</m:mn></m:math>&#160;or <m:math><m:msub><m:mi>i</m:mi><m:mn>3</m:mn></m:msub><m:mo>&gt;</m:mo><m:mrow><m:mi>min</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:msubsup><m:mi>n</m:mi><m:mn>1</m:mn><m:mrow><m:mo>&#8242;</m:mo><m:mo>&#8242;</m:mo></m:mrow></m:msubsup><m:mo>,</m:mo><m:msub><m:mi>i</m:mi><m:mn>4</m:mn></m:msub></m:mfenced></m:mrow></m:math>, the default value is used.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_superbasicslimit" id="superbasicslimit"/><b><span class="u">Su</span>perbasics 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>min</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mn>500</m:mn><m:mo>,</m:mo><m:mrow><m:mover><m:mi>n</m:mi><m:mo>-</m:mo></m:mover><m:mo>+</m:mo><m:mn>1</m:mn></m:mrow></m:mfenced></m:mrow></m:math></td></tr></table><div class="paramtext">Note that this option does not apply to linear problems.</div>
<div class="paramtext">It places a limit on the storage allocated for superbasic variables.  Ideally, the value of <m:math><m:mi>i</m:mi></m:math>&#160;should be set slightly larger than the &#8216;number of degrees of freedom&#8217; expected at the solution.</div>
<div class="paramtext">For nonlinear problems, the number of degrees of freedom is often called the &#8216;number of independent variables&#8217;.  Normally, the value of <m:math><m:mi>i</m:mi></m:math>&#160;need not be greater than <m:math><m:mover><m:mi>n</m:mi><m:mo>-</m:mo></m:mover><m:mo>+</m:mo><m:mn>1</m:mn></m:math>, but for many problems it may be considerably smaller.  (This will save storage if <m:math><m:mover><m:mi>n</m:mi><m:mo>-</m:mo></m:mover></m:math>&#160;is very large.)</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.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_unboundedobjective" id="unboundedobjective"/><b><span class="u">U</span>nbounded <span class="u">Ob</span>jective</b></td><td class="optparam-center"><i>r</i><sub>1</sub></td><td class="optparam-right">Default <m:math><m:mtext/><m:mo>=</m:mo><m:msup><m:mn>10</m:mn><m:mn>15</m:mn></m:msup></m:math></td></tr></table>
<table class="multi-optparam"><tr><td class="optparam-left"><a name="optparam_unboundedstepsize" id="unboundedstepsize"/><b><span class="u">U</span>nbounded <span class="u">St</span>ep Size</b></td><td class="optparam-center"><i>r</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: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">These options are intended to detect unboundedness in nonlinear problems.  During the linesearch, the objective function <m:math><m:mi>f</m:mi></m:math>&#160;is evaluated at points 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>, where <m:math><m:mi>x</m:mi></m:math>&#160;and <m:math><m:mi>p</m:mi></m:math>&#160;are fixed and <m:math><m:mi>&#945;</m:mi></m:math>&#160;varies.  If <m:math><m:mfenced open="|" close="|" separators=""><m:mi>f</m:mi></m:mfenced></m:math>&#160;exceeds <m:math><m:msub><m:mi>r</m:mi><m:mn>1</m:mn></m:msub></m:math>&#160;or <m:math><m:mi>&#945;</m:mi></m:math>&#160;exceeds <m:math><m:msub><m:mi>r</m:mi><m:mn>2</m:mn></m:msub></m:math>, the iterations are terminated and the routine 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="#IFeq3"><m:mn mathcolor="#003399" mathvariant="bold">3</m:mn></m:maction></m:math>.</div>
<div class="paramtext">If singularities are present, unboundedness in <m:math><m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;may manifest itself by a floating-point overflow during the evaluation of <m:math><m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi><m:mo>+</m:mo><m:mi>&#945;</m:mi><m:mi>p</m:mi></m:mfenced></m:math>, before the test against <m:math><m:msub><m:mi>r</m:mi><m:mn>1</m:mn></m:msub></m:math>&#160;can be made.</div>
<div class="paramtext">Unboundedness in <m:math><m:mi>x</m:mi></m:math>&#160;is best avoided by placing finite upper and lower bounds on the variables.</div>
<div class="paramtext">If <m:math><m:msub><m:mi>r</m:mi><m:mn>1</m:mn></m:msub><m:mo>&#8804;</m:mo><m:mn>0</m:mn></m:math>&#160;or <m:math><m:msub><m:mi>r</m:mi><m:mn>2</m:mn></m:msub><m:mo>&#8804;</m:mo><m:mn>0</m:mn></m:math>, the appropriate default value is used.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_verifylevel" id="verifylevel"/><b><span class="u">Ve</span>rify Level</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>0</m:mn></m:math></td></tr></table><div class="paramtext">This option refers to finite difference checks on the gradient elements computed by <a class="arg" href="#OBJFUN">OBJFUN</a> and <a class="arg" href="#CONFUN">CONFUN</a>.  Gradients are verified at the first point that satisfies the linear constraints and the upper and lower bounds.  Unspecified gradient elements are not checked and hence they result in no overhead.  The possible choices for <m:math><m:mi>i</m:mi></m:math>&#160;are the following.  
<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>Meaning</b></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">No checks are performed.</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">Only a &#8216;cheap&#8217; test will be performed, requiring three calls to <a class="arg" href="#OBJFUN">OBJFUN</a> and two calls to <a class="arg" href="#CONFUN">CONFUN</a>.  Note that no checks are carried out if every column of the constraint gradients (Jacobian) contains a missing element.</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">Individual objective gradient elements will be checked using a reliable (but more expensive) test.  If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_majorprintlevel"><m:mi mathcolor="#800080;" mathvariant="bold">Major Print Level</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>, a key of the form <span class="mono">OK</span> or <span class="mono">BAD?</span> indicates whether or not each element appears to be correct.</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">Individual columns of the constraint gradients (Jacobian) will be checked using a reliable (but more expensive) test.  If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_majorprintlevel"><m:mi mathcolor="#800080;" mathvariant="bold">Major Print Level</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>, a key of the form <span class="mono">OK</span> or <span class="mono">BAD?</span> indicates whether or not each element appears to be correct.</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">Check both constraint and objective gradients (in that order) as described above for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>2</m:mn></m:math>&#160;and <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn></m:math>&#160;respectively.</td> 
</tr> 
</tbody> 
</table></div> 
</div>
<div class="paramtext">The value <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>3</m:mn></m:math>&#160;should be used whenever a new function routine is being developed.  The <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_start-obj-check-col"><m:mi mathcolor="#800080;" mathvariant="bold">Start Objective Check At Column</m:mi></m:maction></m:math>&#160;and <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_stop-obj-check-col"><m:mi mathcolor="#800080;" mathvariant="bold">Stop Objective Check At Column</m:mi></m:maction></m:math>&#160;keywords may be used to limit the number of nonlinear variables to be checked.</div>
<div class="paramtext">If <m:math><m:mi>i</m:mi><m:mo>&lt;</m:mo><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow></m:math>&#160;or <m:math><m:mi>i</m:mi><m:mo>&gt;</m:mo><m:mn>3</m:mn></m:math>, the default value is used.</div><table class="optparam"><tr><td class="optparam-left"><a name="optparam_violationlimit" id="violationlimit"/><b><span class="u">Vi</span>olation Limit</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>10.0</m:mn></m:math></td></tr></table><div class="paramtext">This option defines an absolute limit on the magnitude of the maximum constraint violation after the linesearch.  Upon completion of the linesearch, the new iterate <m:math><m:msub><m:mi>x</m:mi><m:mrow><m:mi>k</m:mi><m:mo>+</m:mo><m:mn>1</m:mn></m:mrow></m:msub></m:math>&#160;satisfies the condition 
<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block"> <m:msub><m:mi>v</m:mi><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:msub><m:mi>x</m:mi><m:mrow><m:mi>k</m:mi><m:mo>+</m:mo><m:mn>1</m:mn></m:mrow></m:msub></m:mfenced><m:mo>&#8804;</m:mo><m:mi>r</m:mi><m:mo>&#215;</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:mrow><m:msub><m:mi>v</m:mi><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:msub><m:mi>x</m:mi><m:mn>0</m:mn></m:msub></m:mfenced></m:mrow></m:mfenced></m:mrow><m:mtext>,</m:mtext> </m:math></td><td class="formula2"/></tr></table></div>
 where <m:math><m:msub><m:mi>x</m:mi><m:mn>0</m:mn></m:msub></m:math>&#160;is the point at which the nonlinear constraints are first evaluated and <m:math><m:msub><m:mi>v</m:mi><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;is the <m:math><m:mi>i</m:mi></m:math>th nonlinear constraint violation <m:math><m:msub><m:mi>v</m:mi><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced><m:mo>=</m:mo>
<m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mn>0</m:mn><m:mo>,</m:mo><m:mrow><m:msub><m:mi>l</m:mi><m:mi>i</m:mi></m:msub><m:mo>-</m:mo><m:msub><m:mi>F</m:mi><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:mrow><m:mo>,</m:mo><m:mrow><m:msub><m:mi>F</m:mi><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced><m:mo>-</m:mo><m:msub><m:mi>u</m:mi><m:mi>i</m:mi></m:msub></m:mrow></m:mfenced></m:mrow></m:math>.</div>
<div class="paramtext">The effect of the violation limit is to restrict the iterates to lie in an <span class="italic">expanded</span> feasible region whose size depends on the magnitude of <m:math><m:mi>r</m:mi></m:math>.  This makes it possible to keep the iterates within a region where the objective function is expected to be well-defined and bounded below (or above in the case of maximization).  If the objective function is bounded below (or above in the case of maximization) for all values of the variables, then <m:math><m:mi>r</m:mi></m:math>&#160;may be any large positive value.</div>
<div class="paramtext">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 intermediate printout and final printout which constitutes the monitoring information produced by E04UGF/E04UGA.  (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>, <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_majorprintlevel"><m:mi mathcolor="#800080;" mathvariant="bold">Major Print Level</m:mi></m:maction></m:math>&#160;and <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_minorprintlevel"><m:mi mathcolor="#800080;" mathvariant="bold">Minor Print Level</m:mi></m:maction></m:math>.)  You can control the level of printed output.</div><div class="paramtext">When <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_majorprintlevel"><m:mi mathcolor="#800080;" mathvariant="bold">Major Print Level</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>20</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 intermediate printout (<m:math><m:mtext/><m:mo>&lt;</m:mo><m:mn>120</m:mn></m:math>&#160;characters) is produced at every major iteration on the unit number specified by 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>.  Unless stated otherwise, 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:10.2em;" valign="baseline"><span class="mono">Major</span></td>
<td valign="top">
is the major iteration count.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Minor</span></td>
<td valign="top">
is the number of minor iterations required by the feasibility and optimality phases of the QP subproblem.  Generally, <span class="mono">Minor</span> will be <m:math><m:mn>1</m:mn></m:math>&#160;in the later iterations, since theoretical analysis predicts that the correct active set will be identified near the solution (see <a class="sec" href="#algdetails">Section 10</a>).
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Step</span></td>
<td valign="top">
is the step <m:math><m:msub><m:mi>&#945;</m:mi><m:mi>k</m:mi></m:msub></m:math>&#160;taken along the computed search direction.  On reasonably well-behaved problems, the unit step (i.e., <m:math><m:msub><m:mi>&#945;</m:mi><m:mi>k</m:mi></m:msub><m:mo>=</m:mo><m:mn>1</m:mn></m:math>) will be taken as the solution is approached.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">nObj</span></td>
<td valign="top">
is the number of times <a class="arg" href="#OBJFUN">OBJFUN</a> has been called to evaluate the nonlinear part of the objective function.  Evaluations needed for the estimation of the gradients by finite differences are not included.  <span class="mono">nObj</span> is printed as a guide to the amount of work required for the linesearch.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">nCon</span></td>
<td valign="top">
is the number of times <a class="arg" href="#CONFUN">CONFUN</a> has been called to evaluate the nonlinear constraint functions (not printed if <a class="arg" href="#NCNLN">NCNLN</a> is zero).
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Merit</span></td>
<td valign="top">
is the value of the augmented Lagrangian merit function <a class="eqn" href="#eqnlmf">(6)</a> at the current iterate.  This function will decrease at each iteration unless it was necessary to increase the penalty parameters (see <a class="sec" href="#fc-majorprintout">Section 8.1</a>).  As the solution is approached, <span class="mono">Merit</span> will converge to the value of the objective function at the solution.<div class="paramtext">In elastic mode (see <a class="sec" href="#ad-treatment">Section 10.2</a>), the merit function is a composite function involving the constraint violations weighted by the value of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_elasticweight"><m:mi mathcolor="#800080;" mathvariant="bold">Elastic Weight</m:mi></m:maction></m:math>.</div><div class="paramtext">If there are no nonlinear constraints present, this entry contains <span class="mono">Objective</span>, the value of the objective function <m:math><m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>.  In this case, <m:math><m:mi>f</m:mi><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;will decrease monotonically to its optimal value.</div>
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Feasibl</span></td>
<td valign="top">
is the value of <span class="italic">rowerr</span>, the largest element of the scaled nonlinear constraint residual vector defined in the description of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_majorfeasibilitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Major Feasibility Tolerance</m:mi></m:maction></m:math>.  The solution is regarded as &#8216;feasible&#8217; if <span class="mono">Feasibl</span> is less than (or equal to) the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_majorfeasibilitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Major Feasibility Tolerance</m:mi></m:maction></m:math>.  <span class="mono">Feasibl</span> will be approximately zero in the neighbourhood of a solution.<div class="paramtext">If there are no nonlinear constraints present, all iterates are feasible and this entry is not printed.</div>
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Optimal</span></td>
<td valign="top">
is the value of <span class="italic">maxgap</span>, the largest element of the maximum complementarity gap vector defined in the description of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_majoroptimalitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Major Optimality Tolerance</m:mi></m:maction></m:math>.  The Lagrange multipliers are regarded as &#8216;optimal&#8217; if <span class="mono">Optimal</span> is less than (or equal to) the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_majoroptimalitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Major Optimality Tolerance</m:mi></m:maction></m:math>.  <span class="mono">Optimal</span> will be approximately zero in the neighbourhood of a solution.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">nS</span></td>
<td valign="top">
is the current number of superbasic variables.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Penalty</span></td>
<td valign="top">
is the Euclidean norm of the vector of penalty parameters used in the augmented Lagrangian merit function (not printed if <a class="arg" href="#NCNLN">NCNLN</a> is zero).
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">LU</span></td>
<td valign="top">
is the number of nonzeros representing the basis factors <m:math><m:mi>L</m:mi></m:math>&#160;and <m:math><m:mi>U</m:mi></m:math>&#160;on completion of the QP subproblem.<div class="paramtext">If there are nonlinear constraints present, the basis factorization <m:math><m:mi>B</m:mi><m:mo>=</m:mo><m:mi>L</m:mi><m:mi>U</m:mi></m:math>&#160;is computed at the start of the first minor iteration.  At this stage, <m:math><m:mi mathvariant="monospace">LU</m:mi><m:mo>=</m:mo><m:mi mathvariant="monospace">lenL</m:mi><m:mo>+</m:mo><m:mi mathvariant="monospace">lenU</m:mi></m:math>, where <span class="mono">lenL</span> is the number of subdiagonal elements in the columns of a lower triangular matrix and <span class="mono">lenU</span> is the number of diagonal and superdiagonal elements in the rows of an upper triangular matrix.  As columns of <m:math><m:mi>B</m:mi></m:math>&#160;are replaced during the minor iterations, the value of <span class="mono">LU</span> may fluctuate up or down (but in general will tend to increase).  As the solution is approached and the number of minor iterations required to solve each QP subproblem decreases towards zero, <span class="mono">LU</span> will reflect the number of nonzeros in the <m:math><m:mi>L</m:mi><m:mi>U</m:mi></m:math>&#160;factors at the start of each QP subproblem.</div><div class="paramtext">If there are no nonlinear constraints present, refactorization is subject only to the value of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_factoriz-frequency"><m:mi mathcolor="#800080;" mathvariant="bold">Factorization Frequency</m:mi></m:maction></m:math>&#160;and hence <span class="mono">LU</span> will tend to increase between factorizations.</div>
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Swp</span></td>
<td valign="top">
is the number of columns of the basis matrix <m:math><m:mi>B</m:mi></m:math>&#160;that were swapped with columns of <m:math><m:mi>S</m:mi></m:math>&#160;in order to improve the condition number of <m:math><m:mi>B</m:mi></m:math>&#160;(not printed if <a class="arg" href="#NCNLN">NCNLN</a> is zero).  The swaps are determined by an <m:math><m:mi>L</m:mi><m:mi>U</m:mi></m:math>&#160;factorization of the rectangular matrix <m:math>
 <m:msub><m:mi>B</m:mi><m:mi>S</m:mi></m:msub>
 <m:mo>=</m:mo>
 <m:msup><m:mfenced><m:mtable>
   <m:mtr>
    <m:mtd><m:mi>B</m:mi></m:mtd>
    <m:mtd><m:mi>S</m:mi></m:mtd>
   </m:mtr>
  </m:mtable></m:mfenced><m:mi mathvariant="normal">T</m:mi></m:msup>
</m:math>, with stability being favoured more than sparsity.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Cond Hz</span></td>
<td valign="top">
is an estimate of the condition number of the reduced Hessian of the Lagrangian (not printed if <a class="arg" href="#NCNLN">NCNLN</a> and <a class="arg" href="#NONLN">NONLN</a> are both zero).  It is the square of the ratio between the largest and smallest diagonal elements of the upper triangular matrix <m:math><m:mi>R</m:mi></m:math>.  This constitutes a lower bound on the condition number of the matrix <m:math><m:msup><m:mi>R</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>R</m:mi></m:math>&#160;that approximates the reduced Hessian.  The larger this number, the more difficult the problem.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">PD</span></td>
<td valign="top">
is a two-letter indication of the status of the convergence tests involving the feasibility and optimality of the iterates defined in the descriptions of the optional parameters <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_majorfeasibilitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Major Feasibility Tolerance</m:mi></m:maction></m:math>&#160;and <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_majoroptimalitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Major Optimality Tolerance</m:mi></m:maction></m:math>.  Each letter is <span class="mono">T</span> if the test is satisfied and <span class="mono">F</span> otherwise.  The tests indicate whether the values of <span class="mono">Feasibl</span> and <span class="mono">Optimal</span> are sufficiently small.  For example, <span class="mono">TF</span> or <span class="mono">TT</span> is printed if there are no nonlinear constraints present (since all iterates are feasible).  If either indicator is <span class="mono">F</span> when E04UGF/E04UGA terminates 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>, you should check the solution carefully.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">M</span></td>
<td valign="top">
is printed if an extra evaluation of user-supplied subroutines <a class="arg" href="#OBJFUN">OBJFUN</a> and <a class="arg" href="#CONFUN">CONFUN</a> was needed in order to define an acceptable positive-definite quasi-Newton update to the Hessian of the Lagrangian.  This modification is only performed when there are nonlinear constraints present.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">m</span></td>
<td valign="top">
is printed if, in addition, it was also necessary to modify the update to include an augmented Lagrangian term.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">s</span></td>
<td valign="top">
is printed if a self-scaled BFGS (Broyden&#8211;Fletcher&#8211;Goldfarb&#8211;Shanno) update was performed.  This update is always used when the Hessian approximation is diagonal and hence always follows a Hessian reset.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">S</span></td>
<td valign="top">
is printed if, in addition, it was also necessary to modify the self-scaled update in order to maintain positive-definiteness.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">n</span></td>
<td valign="top">
is printed if no positive-definite BFGS update could be found, in which case the approximate Hessian is unchanged from the previous iteration.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">r</span></td>
<td valign="top">
is printed if the approximate Hessian was reset after <m:math><m:mn>10</m:mn></m:math>&#160;consecutive major iterations in which no BFGS update could be made.  The diagonal elements of the approximate Hessian are retained if at least one update has been performed since the last reset.  Otherwise, the approximate Hessian is reset to the identity matrix.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">R</span></td>
<td valign="top">
is printed if the approximate Hessian has been reset by discarding all but its diagonal elements.  This reset will be forced periodically by the values of the optional parameters <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_hessianfrequency"><m:mi mathcolor="#800080;" mathvariant="bold">Hessian Frequency</m:mi></m:maction></m:math>&#160;and <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_hessianupdates"><m:mi mathcolor="#800080;" mathvariant="bold">Hessian Updates</m:mi></m:maction></m:math>.  However, it may also be necessary to reset an ill-conditioned Hessian from time to time.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">l</span></td>
<td valign="top">
is printed if the change in the norm of the variables was greater than the value defined by the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_majorsteplimit"><m:mi mathcolor="#800080;" mathvariant="bold">Major Step Limit</m:mi></m:maction></m:math>.  If this output occurs frequently during later iterations, it may be worthwhile increasing the value of <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_majorsteplimit"><m:mi mathcolor="#800080;" mathvariant="bold">Major Step Limit</m:mi></m:maction></m:math>.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">c</span></td>
<td valign="top">
is printed if central differences have been used to compute the unknown elements of the objective and constraint gradients.  A switch to central differences is made if either the linesearch gives a small step, or <m:math><m:mi>x</m:mi></m:math>&#160;is close to being optimal.  In some cases, it may be necessary to re-solve the QP subproblem with the central difference gradient and Jacobian.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">u</span></td>
<td valign="top">
is printed if the QP subproblem was unbounded.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">t</span></td>
<td valign="top">
is printed if the minor iterations were terminated after the number of iterations specified by the value of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_minoriterationlimit"><m:mi mathcolor="#800080;" mathvariant="bold">Minor Iteration Limit</m:mi></m:maction></m:math>&#160;was reached.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">i</span></td>
<td valign="top">
is printed if the QP subproblem was infeasible when the routine was not in elastic mode.  This event triggers the start of nonlinear elastic mode, which remains in effect for all subsequent iterations.  Once in elastic mode, the QP subproblems are associated with the elastic problem <a class="eqn" href="#elasticproblem">(8)</a> (see <a class="sec" href="#ad-treatment">Section 10.2</a>).  It is also printed if the minimizer of the elastic subproblem does not satisfy the linearized constraints when the routine is already in elastic mode.  (In this case, a feasible point for the usual QP subproblem may or may not exist.)
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">w</span></td>
<td valign="top">
is printed if a weak solution of the QP subproblem was found.
</td>
</tr></table>
</div><div class="paramtext">When <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_minorprintlevel"><m:mi mathcolor="#800080;" mathvariant="bold">Minor Print Level</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>1</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 intermediate printout (<m:math><m:mtext/><m:mo>&lt;</m:mo><m:mn>120</m:mn></m:math>&#160;characters) is produced at every minor iteration on the unit number specified by 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>.  Unless stated otherwise, the values of the quantities printed are those in effect <span class="italic">on completion</span> of the given iteration.</div><div class="paramtext">In the description below, a &#8216;pricing&#8217; operation is defined to be the process by which a nonbasic variable is selected to become superbasic (in addition to those already in the superbasic set).  If the problem is purely linear, the variable selected will usually become basic immediately (unless it happens to reach its opposite bound and return to the nonbasic set).
<table class="standard-100"><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Itn</span></td>
<td valign="top">
is the iteration count.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">pp</span></td>
<td valign="top">
is the partial price indicator.  The variable selected by the last pricing operation came from the <span class="mono">pp</span>th partition of <m:math><m:mi>A</m:mi></m:math>&#160;and <m:math><m:mrow><m:mo>-</m:mo><m:mi>I</m:mi></m:mrow></m:math>.  Note that <span class="mono">pp</span> is reset to zero whenever the basis is refactorized.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">dj</span></td>
<td valign="top">
is the value of the reduced gradient (or reduced cost) for the variable selected by the pricing operation at the start of the current iteration.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">+SBS</span></td>
<td valign="top">
is the variable selected by the pricing operation to be added to the superbasic set.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">-SBS</span></td>
<td valign="top">
is the variable chosen to leave the superbasic set.  It has become basic if the entry under <span class="mono">-B</span> is nonzero; otherwise it has become nonbasic.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">-BS</span></td>
<td valign="top">
is the variable removed from the basis (if any) to become nonbasic.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">-B</span></td>
<td valign="top">
is the variable removed from the basis (if any) to swap with a slack variable made superbasic by the latest pricing operation.  The swap is done to ensure that there are no superbasic slacks.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Step</span></td>
<td valign="top">
is the value of the step length <m:math><m:mi>&#945;</m:mi></m:math>&#160;taken along the current search direction <m:math><m:mi>p</m:mi></m:math>.  The variables <m:math><m:mi>x</m:mi></m:math>&#160;have just been changed to <m:math><m:mi>x</m:mi><m:mo>+</m:mo><m:mi>&#945;</m:mi><m:mi>p</m:mi></m:math>.  If a variable is made superbasic during the current iteration (i.e., <span class="mono">+SBS</span> is positive), <span class="mono">Step</span> will be the step to the nearest bound.  During the optimality phase, the step can be greater than unity only if the reduced Hessian is not positive-definite.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Pivot</span></td>
<td valign="top">
is the <m:math><m:mi>r</m:mi></m:math>th element of a vector <m:math><m:mi>y</m:mi></m:math>&#160;satisfying <m:math><m:mi>B</m:mi><m:mi>y</m:mi><m:mo>=</m:mo><m:msub><m:mi>a</m:mi><m:mi>q</m:mi></m:msub></m:math>&#160;whenever <m:math><m:msub><m:mi>a</m:mi><m:mi>q</m:mi></m:msub></m:math>&#160;(the <m:math><m:mi>q</m:mi></m:math>th column of the constraint matrix <m:math>
 <m:mfenced><m:mtable>
 <m:mtr><m:mtd><m:mi>A</m:mi></m:mtd><m:mtd><m:mo>-</m:mo><m:mi>I</m:mi></m:mtd></m:mtr></m:mtable></m:mfenced>
</m:math>) replaces the <m:math><m:mi>r</m:mi></m:math>th column of the basis matrix <m:math><m:mi>B</m:mi></m:math>.  Wherever possible, <span class="mono">Step</span> is chosen so as to avoid extremely small values of <span class="mono">Pivot</span> (since they may cause the basis to be nearly singular).  In extreme cases, it may be necessary to increase the value of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_pivottolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Pivot Tolerance</m:mi></m:maction></m:math>&#160;to exclude very small elements of <m:math><m:mi>y</m:mi></m:math>&#160;from consideration during the computation of <span class="mono">Step</span>.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Ninf</span></td>
<td valign="top">
is the number of infeasibilities.  This will not increase unless the iterations are in elastic mode.  <span class="mono">Ninf</span> will be zero during the optimality phase.
</td>
</tr><tr>
<td style="width:10.2em;" 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 infeasible, <span class="mono">Sinf</span> gives the value of the sum of infeasibilities at the start of the current iteration.  It will usually decrease at each nonzero value of <span class="mono">Step</span>, but may occasionally increase if the value of <span class="mono">Ninf</span> decreases by a factor of <m:math><m:mn>2</m:mn></m:math>&#160;or more.  However, in elastic mode this entry gives the value of the composite objective function <a class="eqn" href="#comp-objective-func">(9)</a>, which will decrease monotonically at each iteration.  If <m:math><m:mi>x</m:mi></m:math>&#160;is feasible, <span class="mono">Objective</span> is the value of the current QP objective function.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">L</span></td>
<td valign="top">
is the number of nonzeros in the basis factor <m:math><m:mi>L</m:mi></m:math>.  Immediately after a basis factorization <m:math><m:mi>B</m:mi><m:mo>=</m:mo><m:mi>L</m:mi><m:mi>U</m:mi></m:math>, this entry contains <span class="mono">lenL</span>.  Further nonzeros are added to <span class="mono">L</span> when various columns of <m:math><m:mi>B</m:mi></m:math>&#160;are later replaced.  (Thus, <span class="mono">L</span> increases monotonically.)
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">U</span></td>
<td valign="top">
is the number of nonzeros in the basis factor <m:math><m:mi>U</m:mi></m:math>.  Immediately after a basis factorization <m:math><m:mi>B</m:mi><m:mo>=</m:mo><m:mi>L</m:mi><m:mi>U</m:mi></m:math>, this entry contains <span class="mono">lenU</span>.  As columns of <m:math><m:mi>B</m:mi></m:math>&#160;are replaced, the matrix <m:math><m:mi>U</m:mi></m:math>&#160;is maintained explicitly (in sparse form).  The value of <span class="mono">U</span> may fluctuate up or down; in general, it will tend to increase.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Ncp</span></td>
<td valign="top">
is the number of compressions required to recover workspace in the data structure for <m:math><m:mi>U</m:mi></m:math>.  This includes the number of compressions needed during the previous basis factorization.  Normally, <span class="mono">Ncp</span> should increase very slowly.  If it does not, increase <a class="arg" href="#LENIZ">LENIZ</a> and <a class="arg" href="#LENZ">LENZ</a> by at least <m:math><m:mi mathvariant="monospace">L</m:mi><m:mo>+</m:mo><m:mi mathvariant="monospace">U</m:mi></m:math>&#160;and rerun E04UGF/E04UGA (possibly using <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#START"><m:mi mathcolor="#EE0000" mathvariant="bold">START</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'W'</m:mtext></m:math>; see <a class="sec" href="#parameters">Section 5</a>).
</td>
</tr></table>
</div><div class="paramtext">The following items are printed only if the problem is nonlinear or the superbasic set is non-empty (i.e., if the current solution is nonbasic).
<table class="standard-100"><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Norm rg</span></td>
<td valign="top">
is the Euclidean norm of the reduced gradient of the QP objective function.  During the optimality phase, this norm will be approximately zero after a unit step.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">nS</span></td>
<td valign="top">
is the current number of superbasic variables.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Cond Hz</span></td>
<td valign="top">
is an estimate of the condition number of the reduced Hessian of the Lagrangian (not printed if <a class="arg" href="#NCNLN">NCNLN</a> and <a class="arg" href="#NONLN">NONLN</a> are both zero).  It is the square of the ratio between the largest and smallest diagonal elements of the upper triangular matrix <m:math><m:mi>R</m:mi></m:math>.  This constitutes a lower bound on the condition number of the matrix <m:math><m:msup><m:mi>R</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>R</m:mi></m:math>&#160;that approximates the reduced Hessian.  The larger this number, the more difficult the problem.
</td>
</tr></table>
</div><div class="paramtext">When <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_majorprintlevel"><m:mi mathcolor="#800080;" mathvariant="bold">Major Print Level</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>20</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 lines of intermediate printout (<m:math><m:mtext/><m:mo>&lt;</m:mo><m:mn>120</m:mn></m:math>&#160;characters) are produced on the unit number specified by 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>&#160;whenever the matrix <m:math><m:mi>B</m:mi></m:math>&#160;or <m:math><m:msub><m:mi>B</m:mi><m:mi>S</m:mi></m:msub><m:mo>=</m:mo><m:msup><m:mfenced separators=""><m:mi>B</m:mi><m:mtext>&#8195;</m:mtext><m:mi>S</m:mi></m:mfenced><m:mi mathvariant="normal">T</m:mi></m:msup></m:math>&#160;is factorized before solving the next QP subproblem.  Gaussian elimination is used to compute a sparse <m:math><m:mi>L</m:mi><m:mi>U</m:mi></m:math>&#160;factorization of <m:math><m:mi>B</m:mi></m:math>&#160;or <m:math><m:msub><m:mi>B</m:mi><m:mi>S</m:mi></m:msub></m:math>, where <m:math><m:mi>P</m:mi><m:mi>L</m:mi><m:msup><m:mi>P</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup></m:math>&#160;is a lower triangular matrix and <m:math><m:mi>P</m:mi><m:mi>U</m:mi><m:mi>Q</m:mi></m:math>&#160;is an upper triangular matrix for some permutation matrices <m:math><m:mi>P</m:mi></m:math>&#160;and <m:math><m:mi>Q</m:mi></m:math>.  The factorization is stabilized in the manner described under the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_lufactortolerance"><m:mi mathcolor="#800080;" mathvariant="bold">LU Factor Tolerance</m:mi></m:maction></m:math>&#160;(<m:math><m:mtext>default value</m:mtext><m:mo>=</m:mo><m:mn>5.0</m:mn></m:math>&#160;or <m:math><m:mn>100.0</m:mn></m:math>).</div><div class="paramtext">Note that <m:math><m:msub><m:mi>B</m:mi><m:mi>S</m:mi></m:msub></m:math>&#160;may be factorized at the beginning of just some of the major iterations.  It is immediately followed by a factorization of <m:math><m:mi>B</m:mi></m:math>&#160;itself.
<table class="standard-100"><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Factorize</span></td>
<td valign="top">
is the factorization count.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Iteration</span></td>
<td valign="top">
is the iteration count.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Nonlinear</span></td>
<td valign="top">
is the number of nonlinear variables in the current basis <m:math><m:mi>B</m:mi></m:math>&#160;(not printed if <m:math><m:msub><m:mi>B</m:mi><m:mi>S</m:mi></m:msub></m:math>&#160;is factorized).
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Linear</span></td>
<td valign="top">
is the number of linear variables in <m:math><m:mi>B</m:mi></m:math>&#160;(not printed if <m:math><m:msub><m:mi>B</m:mi><m:mi>S</m:mi></m:msub></m:math>&#160;is factorized).
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Slacks</span></td>
<td valign="top">
is the number of slack variables in <m:math><m:mi>B</m:mi></m:math>&#160;(not printed if <m:math><m:msub><m:mi>B</m:mi><m:mi>S</m:mi></m:msub></m:math>&#160;is factorized).
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Elems</span></td>
<td valign="top">
is the number of nonzeros in <m:math><m:mi>B</m:mi></m:math>&#160;(not printed if <m:math><m:msub><m:mi>B</m:mi><m:mi>S</m:mi></m:msub></m:math>&#160;is factorized).
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Density</span></td>
<td valign="top">
is the percentage nonzero density of <m:math><m:mi>B</m:mi></m:math>&#160;(not printed if <m:math><m:msub><m:mi>B</m:mi><m:mi>S</m:mi></m:msub></m:math>&#160;is factorized).  More precisely, <m:math><m:mi mathvariant="monospace">Density</m:mi><m:mo>=</m:mo><m:mn>100</m:mn><m:mo>&#215;</m:mo><m:mi mathvariant="monospace">Elems</m:mi><m:mo>/</m:mo><m:msup><m:mfenced separators=""><m:mi mathvariant="monospace">Nonlinear</m:mi><m:mo>+</m:mo><m:mi mathvariant="monospace">Linear</m:mi><m:mo>+</m:mo><m:mi mathvariant="monospace">Slacks</m:mi></m:mfenced><m:mn>2</m:mn></m:msup></m:math>.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Compressns</span></td>
<td valign="top">
is the number of times the data structure holding the partially factorized matrix needed to be compressed, in order to recover unused workspace.  Ideally, it should be zero.  If it is more than <m:math><m:mn>3</m:mn></m:math>&#160;or <m:math><m:mn>4</m:mn></m:math>, increase <a class="arg" href="#LENIZ">LENIZ</a> and <a class="arg" href="#LENZ">LENZ</a> and rerun E04UGF/E04UGA (possibly using <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#START"><m:mi mathcolor="#EE0000" mathvariant="bold">START</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'W'</m:mtext></m:math>; see <a class="sec" href="#parameters">Section 5</a>).
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Merit</span></td>
<td valign="top">
is the average Markowitz merit count for the elements chosen to be the diagonals of <m:math><m:mi>P</m:mi><m:mi>U</m:mi><m:mi>Q</m:mi></m:math>.  Each merit count is defined to be <m:math><m:mfenced separators=""><m:mi>c</m:mi><m:mo>-</m:mo><m:mn>1</m:mn></m:mfenced><m:mfenced separators=""><m:mi>r</m:mi><m:mo>-</m:mo><m:mn>1</m:mn></m:mfenced></m:math>, where <m:math><m:mi>c</m:mi></m:math>&#160;and <m:math><m:mi>r</m:mi></m:math>&#160;are the number of nonzeros in the column and row containing the element at the time it is selected to be the next diagonal.  <span class="mono">Merit</span> is the average of <span class="mono">m</span> such quantities.  It gives an indication of how much work was required to preserve sparsity during the factorization.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">lenL</span></td>
<td valign="top">
is the number of nonzeros in <m:math><m:mi>L</m:mi></m:math>.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">lenU</span></td>
<td valign="top">
is the number of nonzeros in <m:math><m:mi>U</m:mi></m:math>.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Increase</span></td>
<td valign="top">
is the percentage increase in the number of nonzeros in <m:math><m:mi>L</m:mi></m:math>&#160;and <m:math><m:mi>U</m:mi></m:math>&#160;relative to the number of nonzeros in <m:math><m:mi>B</m:mi></m:math>.  More precisely, <m:math><m:mi mathvariant="monospace">Increase</m:mi><m:mo>=</m:mo><m:mn>100</m:mn><m:mo>&#215;</m:mo><m:mfenced separators=""><m:mi mathvariant="monospace">lenL</m:mi><m:mo>+</m:mo><m:mi mathvariant="monospace">lenU</m:mi><m:mo>-</m:mo><m:mspace linebreak="newline"/><m:mi mathvariant="monospace">Elems</m:mi></m:mfenced><m:mo>/</m:mo><m:mi mathvariant="monospace">Elems</m:mi></m:math>.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">m</span></td>
<td valign="top">
is the number of rows in the problem.  Note that <m:math><m:mi mathvariant="monospace">m</m:mi><m:mo>=</m:mo><m:mi mathvariant="monospace">Ut</m:mi><m:mo>+</m:mo><m:mi mathvariant="monospace">Lt</m:mi><m:mo>+</m:mo><m:mi mathvariant="monospace">bp</m:mi></m:math>.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Ut</span></td>
<td valign="top">
is the number of triangular rows of <m:math><m:mi>B</m:mi></m:math>&#160;at the top of <m:math><m:mi>U</m:mi></m:math>.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">d1</span></td>
<td valign="top">
is the number of columns remaining when the density of the basis matrix being factorized reached <m:math><m:mn>0.3</m:mn></m:math>.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Lmax</span></td>
<td valign="top">
is the maximum subdiagonal element in the columns of <m:math><m:mi>L</m:mi></m:math>.  This will not exceed the value of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_lufactortolerance"><m:mi mathcolor="#800080;" mathvariant="bold">LU Factor Tolerance</m:mi></m:maction></m:math>.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Bmax</span></td>
<td valign="top">
is the maximum nonzero element in <m:math><m:mi>B</m:mi></m:math>&#160;(not printed if <m:math><m:msub><m:mi>B</m:mi><m:mi>S</m:mi></m:msub></m:math>&#160;is factorized).
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">BSmax</span></td>
<td valign="top">
is the maximum nonzero element in <m:math><m:msub><m:mi>B</m:mi><m:mi>S</m:mi></m:msub></m:math>&#160;(not printed if <m:math><m:mi>B</m:mi></m:math>&#160;is factorized).
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Umax</span></td>
<td valign="top">
is the maximum nonzero element in <m:math><m:mi>U</m:mi></m:math>, excluding elements of <m:math><m:mi>B</m:mi></m:math>&#160;that remain in <m:math><m:mi>U</m:mi></m:math>&#160;unchanged.  (For example, if a slack variable is in the basis, the corresponding row of <m:math><m:mi>B</m:mi></m:math>&#160;will become a row of <m:math><m:mi>U</m:mi></m:math>&#160;without modification.  Elements in such rows will not contribute to <span class="mono">Umax</span>.  If the basis is strictly triangular then <span class="italic">none</span> of the elements of <m:math><m:mi>B</m:mi></m:math>&#160;will contribute and <span class="mono">Umax</span> will be zero.)<div class="paramtext">Ideally, <span class="mono">Umax</span> should not be significantly larger than <span class="mono">Bmax</span>.  If it is several orders of magnitude larger, it may be advisable to reset the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_lufactortolerance"><m:mi mathcolor="#800080;" mathvariant="bold">LU Factor Tolerance</m:mi></m:maction></m:math>&#160;to some value nearer unity.</div><div class="paramtext"><span class="mono">Umax</span> is not printed if <m:math><m:msub><m:mi>B</m:mi><m:mi>S</m:mi></m:msub></m:math>&#160;is factorized.</div>
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Umin</span></td>
<td valign="top">
is the magnitude of the smallest diagonal element of <m:math><m:mi>P</m:mi><m:mi>U</m:mi><m:mi>Q</m:mi></m:math>.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Growth</span></td>
<td valign="top">
is the value of the ratio <span class="mono">Umax</span>/<span class="mono">Bmax</span>, which should not be too large.<div class="paramtext">Providing <span class="mono">Lmax</span> is not large (say, <m:math><m:mtext/><m:mo>&lt;</m:mo><m:mn>10.0</m:mn></m:math>), the ratio <m:math><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mi mathvariant="monospace">Bmax</m:mi><m:mo>,</m:mo><m:mi mathvariant="monospace">Umax</m:mi></m:mfenced></m:mrow><m:mo>/</m:mo><m:mi mathvariant="monospace">Umin</m:mi></m:math>&#160;is an estimate of the condition number of <m:math><m:mi>B</m:mi></m:math>.  If this number is extremely large, the basis is nearly singular and some numerical difficulties might occur.  (However, an effort is made to avoid near-singularity by using slacks to replace columns of <m:math><m:mi>B</m:mi></m:math>&#160;that would have made <span class="mono">Umin</span> extremely small and the modified basis is refactorized.)</div>
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Lt</span></td>
<td valign="top">
is the number of triangular columns of <m:math><m:mi>B</m:mi></m:math>&#160;at the left of <m:math><m:mi>L</m:mi></m:math>.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">bp</span></td>
<td valign="top">
is the size of the &#8216;bump&#8217; or block to be factorized nontrivially after the triangular rows and columns of <m:math><m:mi>B</m:mi></m:math>&#160;have been removed.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">d2</span></td>
<td valign="top">
is the number of columns remaining when the density of the basis matrix being factorized has reached <m:math><m:mn>0.6</m:mn></m:math>.
</td>
</tr></table>
</div><div class="paramtext">When <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_majorprintlevel"><m:mi mathcolor="#800080;" mathvariant="bold">Major Print Level</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>20</m:mn></m:math>, <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>&#160;and <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_crashoption"><m:mi mathcolor="#800080;" mathvariant="bold">Crash Option</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>&#160;(<m:math><m:mtext>default value</m:mtext><m:mo>=</m:mo><m:mn>0</m:mn><m:mtext>&#8203; or &#8203;</m:mtext><m:mn>3</m:mn></m:math>), the following lines of intermediate printout (<m:math><m:mtext/><m:mo>&lt;</m:mo><m:mn>80</m:mn></m:math>&#160;characters) are produced on the unit number specified by 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>&#160;whenever <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#START"><m:mi mathcolor="#EE0000" mathvariant="bold">START</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'C'</m:mtext></m:math>&#160;(see <a class="sec" href="#parameters">Section 5</a>).  They refer to the number of columns selected by the Crash procedure during each of several passes through <m:math><m:mi>A</m:mi></m:math>&#160;while searching for a triangular basis matrix.
<table class="standard-100"><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Slacks</span></td>
<td valign="top">
is the number of slacks selected initially.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Free cols</span></td>
<td valign="top">
is the number of free columns in the basis, including those whose bounds are rather far apart.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Preferred</span></td>
<td valign="top">
is the number of &#8216;preferred&#8217; columns in the basis (i.e., <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>3</m:mn></m:math>&#160;for some <m:math><m:mi>j</m:mi><m:mo>&#8804;</m:mo><m:mi>n</m:mi></m:math>).  It will be a subset of the columns for which <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>3</m:mn></m:math>&#160;was specified.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Unit</span></td>
<td valign="top">
is the number of unit columns in the basis.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Double</span></td>
<td valign="top">
is the number of columns in the basis containing two nonzeros.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Triangle</span></td>
<td valign="top">
is the number of triangular columns in the basis with three (or more) nonzeros.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Pad</span></td>
<td valign="top">
is the number of slacks used to pad the basis (to make it a nonsingular triangle).
</td>
</tr></table>
</div><div class="paramtext">When <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_majorprintlevel"><m:mi mathcolor="#800080;" mathvariant="bold">Major Print Level</m:mi></m:maction><m:mo>=</m:mo><m:mn>1</m:mn></m:math>&#160;or <m:math><m:mtext/><m:mo>&#8805;</m:mo><m:mn>10</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 lines of final printout (<m:math><m:mtext/><m:mo>&lt;</m:mo><m:mn>120</m:mn></m:math>&#160;characters) are produced on the unit number specified by 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><div class="paramtext">Let <m:math><m:msub><m:mi>x</m:mi><m:mi>j</m:mi></m:msub></m:math>&#160;denote the <m:math><m:mi>j</m:mi></m:math>th &#8216;column variable&#8217;, 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>.  We assume that a typical variable <m:math><m:msub><m:mi>x</m:mi><m:mi>j</m:mi></m:msub></m:math>&#160;has bounds <m:math><m:mi>&#945;</m:mi><m:mo>&#8804;</m:mo><m:msub><m:mi>x</m:mi><m:mi>j</m:mi></m:msub><m:mo>&#8804;</m:mo><m:mi>&#946;</m:mi></m:math>.</div><div class="paramtext">The following describes the printout for each column (or variable).  A full stop (.)  is printed for any numerical value that is zero.
<table class="standard-100"><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Number</span></td>
<td valign="top">
is the column number <m:math><m:mi>j</m:mi></m:math>.  (This is used internally to refer to <m:math><m:msub><m:mi>x</m:mi><m:mi>j</m:mi></m:msub></m:math>&#160;in the intermediate output.)
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Column</span></td>
<td valign="top">
gives the name of <m:math><m:msub><m:mi>x</m:mi><m:mi>j</m:mi></m:msub></m:math>.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">State</span></td>
<td valign="top">
gives the state of <m:math><m:msub><m:mi>x</m:mi><m:mi>j</m:mi></m:msub></m:math>&#160;relative to the bounds <m:math><m:mi>&#945;</m:mi></m:math>&#160;and <m:math><m:mi>&#946;</m:mi></m:math>.

 <div class="paramtext">The various possible states are as follows:
 <table class="standard-100"><tr>
<td style="width:3.0em;" valign="baseline"><span class="mono">LL</span></td>
<td valign="top">
<m:math><m:msub><m:mi>x</m:mi><m:mi>j</m:mi></m:msub></m:math>&#160;is nonbasic at its lower limit, <m:math><m:mi>&#945;</m:mi></m:math>.
</td>
</tr><tr>
<td style="width:3.0em;" valign="baseline"><span class="mono">UL</span></td>
<td valign="top">
<m:math><m:msub><m:mi>x</m:mi><m:mi>j</m:mi></m:msub></m:math>&#160;is nonbasic at its upper limit, <m:math><m:mi>&#946;</m:mi></m:math>.
</td>
</tr><tr>
<td style="width:3.0em;" valign="baseline"><span class="mono">EQ</span></td>
<td valign="top">
<m:math><m:msub><m:mi>x</m:mi><m:mi>j</m:mi></m:msub></m:math>&#160;is nonbasic and fixed at the value <m:math><m:mi>&#945;</m:mi><m:mo>=</m:mo><m:mi>&#946;</m:mi></m:math>.
</td>
</tr><tr>
<td style="width:3.0em;" valign="baseline"><span class="mono">FR</span></td>
<td valign="top">
<m:math><m:msub><m:mi>x</m:mi><m:mi>j</m:mi></m:msub></m:math>&#160;is nonbasic at some value strictly between its bounds: <m:math><m:mi>&#945;</m:mi><m:mo>&lt;</m:mo><m:msub><m:mi>x</m:mi><m:mi>j</m:mi></m:msub><m:mo>&lt;</m:mo><m:mi>&#946;</m:mi></m:math>.
</td>
</tr><tr>
<td style="width:3.0em;" valign="baseline"><span class="mono">BS</span></td>
<td valign="top">
<m:math><m:msub><m:mi>x</m:mi><m:mi>j</m:mi></m:msub></m:math>&#160;is basic.  Usually <m:math><m:mi>&#945;</m:mi><m:mo>&lt;</m:mo><m:msub><m:mi>x</m:mi><m:mi>j</m:mi></m:msub><m:mo>&lt;</m:mo><m:mi>&#946;</m:mi></m:math>.
</td>
</tr></table>
 </div>
 <div class="paramtext">

A key is sometimes printed before <span class="mono">State</span>.
 Note that unless the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_scaleoption"><m:mi mathcolor="#800080;" mathvariant="bold">Scale Option</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math>&#160;is specified, the tests for assigning a key are applied to the variables of the scaled problem.

 <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 nonbasic, but its reduced gradient is essentially zero.  This means that if the variable were allowed to start moving away from its current value, there would be no change in the value of the objective function.  The values of the basic and superbasic variables <span class="italic">might</span> change, giving a genuine alternative solution.  The values of the Lagrange multipliers <span class="italic">might</span> 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 basic, 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 basic and is currently violating one of its bounds by more than the value of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_minorfeasibilitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Minor Feasibility Tolerance</m:mi></m:maction></m:math>.
</td>
</tr><tr>
<td style="width:3.0em;" valign="baseline"><span class="mono">N</span></td>
<td valign="top">
<span class="italic">Not precisely optimal</span>.  The variable is nonbasic.  Its reduced gradient is larger than the value of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_majorfeasibilitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Major Feasibility Tolerance</m:mi></m:maction></m:math>.
</td>
</tr></table>
 </div></td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Activity</span></td>
<td valign="top">
is the value of <m:math><m:msub><m:mi>x</m:mi><m:mi>j</m:mi></m:msub></m:math>&#160;at the final iterate.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Obj Gradient</span></td>
<td valign="top">
is the value of <m:math><m:msub><m:mi>g</m:mi><m:mi>j</m:mi></m:msub></m:math>&#160;at the final iterate.  (If any <m:math><m:msub><m:mi>x</m:mi><m:mi>j</m:mi></m:msub></m:math>&#160;is infeasible, <m:math><m:msub><m:mi>g</m:mi><m:mi>j</m:mi></m:msub></m:math>&#160;is the gradient of the sum of infeasibilities.)
</td>
</tr><tr>
<td style="width:10.2em;" 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:10.2em;" 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:10.2em;" valign="baseline"><span class="mono">Reduced Gradnt</span></td>
<td valign="top">
is the value of <m:math><m:msub><m:mi>d</m:mi><m:mi>j</m:mi></m:msub></m:math>&#160;at the final iterate.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">m + j</span></td>
<td valign="top">
is the value of <m:math><m:mi>m</m:mi><m:mo>+</m:mo><m:mi>j</m:mi></m:math>.
</td>
</tr></table>
</div><div class="paramtext">General linear constraints take the form <m:math><m:mi>l</m:mi><m:mo>&#8804;</m:mo><m:mi>A</m:mi><m:mi>x</m:mi><m:mo>&#8804;</m:mo><m:mi>u</m:mi></m:math>.  The <m:math><m:mi>i</m:mi></m:math>th constraint is therefore of the form <m:math><m:mi>&#945;</m:mi><m:mo>&#8804;</m:mo><m:msubsup><m:mi>a</m:mi><m:mi>i</m:mi><m:mi mathvariant="normal">T</m:mi></m:msubsup><m:mi>x</m:mi><m:mo>&#8804;</m:mo><m:mi>&#946;</m:mi></m:math>&#160;and the value of <m:math><m:msubsup><m:mi>a</m:mi><m:mi>i</m:mi><m:mi mathvariant="normal">T</m:mi></m:msubsup><m:mi>x</m:mi></m:math>&#160;is called the <span class="italic">row activity</span>.  Internally, the linear constraints take the form <m:math><m:mi>A</m:mi><m:mi>x</m:mi><m:mo>-</m:mo><m:mi>s</m:mi><m:mo>=</m:mo><m:mn>0</m:mn></m:math>, where the slack variables <m:math><m:mi>s</m:mi></m:math>&#160;should satisfy the bounds <m:math><m:mi>l</m:mi><m:mo>&#8804;</m:mo><m:mi>s</m:mi><m:mo>&#8804;</m:mo><m:mi>u</m:mi></m:math>.  For the <m:math><m:mi>i</m:mi></m:math>th &#8216;row&#8217;, it is the slack variable <m:math><m:msub><m:mi>s</m:mi><m:mi>i</m:mi></m:msub></m:math>&#160;that is directly available and it is sometimes convenient to refer to its state.  Slacks may be basic or nonbasic (but not superbasic).</div><div class="paramtext">Nonlinear constraints <m:math><m:mi>&#945;</m:mi><m:mo>&#8804;</m:mo><m:msub><m:mi>F</m:mi><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced><m:mo>+</m:mo><m:msubsup><m:mi>a</m:mi><m:mi>i</m:mi><m:mi mathvariant="normal">T</m:mi></m:msubsup><m:mi>x</m:mi><m:mo>&#8804;</m:mo><m:mi>&#946;</m:mi></m:math>&#160;are treated similarly, except that the row activity and degree of infeasibility are computed directly from <m:math><m:msub><m:mi>F</m:mi><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced><m:mo>+</m:mo><m:msubsup><m:mi>a</m:mi><m:mi>i</m:mi><m:mi mathvariant="normal">T</m:mi></m:msubsup><m:mi>x</m:mi></m:math>&#160;rather than from <m:math><m:msub><m:mi>s</m:mi><m:mi>i</m:mi></m:msub></m:math>.</div><div class="paramtext">The following describes the printout for each row (or constraint).  A full stop (.)  is printed for any numerical value that is zero.
<table class="standard-100"><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Number</span></td>
<td valign="top">
is the value of <m:math><m:mi>n</m:mi><m:mo>+</m:mo><m:mi>i</m:mi></m:math>.  (This is used internally to refer to <m:math><m:msub><m:mi>s</m:mi><m:mi>i</m:mi></m:msub></m:math>&#160;in the intermediate output.)
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Row</span></td>
<td valign="top">
gives the name of the <m:math><m:mi>i</m:mi></m:math>th row.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">State</span></td>
<td valign="top">
gives the state of the <m:math><m:mi>i</m:mi></m:math>th row relative to the bounds <m:math><m:mi>&#945;</m:mi></m:math>&#160;and <m:math><m:mi>&#946;</m:mi></m:math>.

 <div class="paramtext">The various possible states are as follows:
 <table class="standard-100"><tr>
<td style="width:3.0em;" valign="baseline"><span class="mono">LL</span></td>
<td valign="top">
The row is at its lower limit, <m:math><m:mi>&#945;</m:mi></m:math>.
</td>
</tr><tr>
<td style="width:3.0em;" valign="baseline"><span class="mono">UL</span></td>
<td valign="top">
The row is at its upper limit, <m:math><m:mi>&#946;</m:mi></m:math>.
</td>
</tr><tr>
<td style="width:3.0em;" valign="baseline"><span class="mono">EQ</span></td>
<td valign="top">
The limits are the same <m:math><m:mfenced separators=""><m:mi>&#945;</m:mi><m:mo>=</m:mo><m:mi>&#946;</m:mi></m:mfenced></m:math>.
</td>
</tr><tr>
<td style="width:3.0em;" valign="baseline"><span class="mono">BS</span></td>
<td valign="top">
The constraint is not binding.  <m:math><m:msub><m:mi>s</m:mi><m:mi>i</m:mi></m:msub></m:math>&#160;is basic.
</td>
</tr></table>
 </div>
 <div class="paramtext">

A key is sometimes printed before <span class="mono">State</span>.
 Note that unless the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_scaleoption"><m:mi mathcolor="#800080;" mathvariant="bold">Scale Option</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math>&#160;is specified, the tests for assigning a key are applied to the variables of the scaled problem.

 <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 nonbasic, but its reduced gradient is essentially zero.  This means that if the variable were allowed to start moving away from its current value, there would be no change in the value of the objective function.  The values of the basic and superbasic variables <span class="italic">might</span> change, giving a genuine alternative solution.  The values of the Lagrange multipliers <span class="italic">might</span> 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 basic, 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 basic and is currently violating one of its bounds by more than the value of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_minorfeasibilitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Minor Feasibility Tolerance</m:mi></m:maction></m:math>.
</td>
</tr><tr>
<td style="width:3.0em;" valign="baseline"><span class="mono">N</span></td>
<td valign="top">
<span class="italic">Not precisely optimal</span>.  The variable is nonbasic.  Its reduced gradient is larger than the value of the optional parameter <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#optparam_majorfeasibilitytolerance"><m:mi mathcolor="#800080;" mathvariant="bold">Major Feasibility Tolerance</m:mi></m:maction></m:math>.
</td>
</tr></table>
 </div></td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Activity</span></td>
<td valign="top">
is the value of <m:math><m:msubsup><m:mi>a</m:mi><m:mi>i</m:mi><m:mi mathvariant="normal">T</m:mi></m:msubsup><m:mi>x</m:mi></m:math>&#160;(or <m:math><m:msub><m:mi>F</m:mi><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced><m:mo>+</m:mo><m:msubsup><m:mi>a</m:mi><m:mi>i</m:mi><m:mi mathvariant="normal">T</m:mi></m:msubsup><m:mi>x</m:mi></m:math>&#160;for nonlinear rows) at the final iterate.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Slack Activity</span></td>
<td valign="top">
is the value by which the row differs from its nearest bound.  (For the free row (if any), it is set to <span class="mono">Activity</span>.)
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Lower Bound</span></td>
<td valign="top">
is <m:math><m:mi>&#945;</m:mi></m:math>, the lower bound specified for the <m:math><m:mi>i</m:mi></m:math>th row.  <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:mrow><m:mi>n</m:mi><m:mo>+</m:mo><m:mi>i</m:mi></m:mrow></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:10.2em;" valign="baseline"><span class="mono">Upper Bound</span></td>
<td valign="top">
is <m:math><m:mi>&#946;</m:mi></m:math>, the upper bound specified for the <m:math><m:mi>i</m:mi></m:math>th row.  <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:mrow><m:mi>n</m:mi><m:mo>+</m:mo><m:mi>i</m:mi></m:mrow></m:mfenced></m:mrow><m:mo>&#8805;</m:mo><m:mi mathvariant="italic">bigbnd</m:mi></m:math>.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">Dual Activity</span></td>
<td valign="top">
is the value of the dual variable <m:math><m:msub><m:mi>&#960;</m:mi><m:mi>i</m:mi></m:msub></m:math>.
</td>
</tr><tr>
<td style="width:10.2em;" valign="baseline"><span class="mono">i</span></td>
<td valign="top">
gives the index <m:math><m:mi>i</m:mi></m:math>&#160;of the <m:math><m:mi>i</m:mi></m:math>th row.
</td>
</tr></table>
</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>
<hr/><div><a class="rout" href="../../pdf/E04/e04ugf.pdf">E04UGF/E04UGA (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>
