<?xml version="1.0" encoding="ISO-8859-1"?><refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="plq_min"><info><pubdate>22-Aug-2008</pubdate></info><refnamediv><refname>plq_min</refname><refpurpose>Piecewise linear quadratic (plq), Minimum function</refpurpose></refnamediv>
  
   
  
   
  
   
  
   
  
   

  
   <refsynopsisdiv><title>Calling Sequence</title><synopsis>[plqm, minf] = plq_min(plqf, plqg)</synopsis></refsynopsisdiv>

  
   <refsection><title>Parameters</title>
    
      <variablelist>
      
         <varlistentry>
        
            <term>plqf</term>
        
            <listitem>
          
               <para>matrix. One of the plq functions to compute the minimum of.
          </para>
        
            </listitem>
      
         </varlistentry>
      
         <varlistentry>
        
            <term>plqg</term>
        
            <listitem>
          
               <para>matrix. The other plq function to compte the minimum of.
          </para>
        
            </listitem>
      
         </varlistentry>
      
         <varlistentry>
        
            <term>plqm</term>
        
            <listitem>
          
               <para>matrix. A plq function equal to the minimum of plqf and plqg.
          </para>
        
            </listitem>
      
         </varlistentry>
      
         <varlistentry>
        
            <term>minf</term>
        
            <listitem>
          
               <para>matrix. Specifies the intervals over which each function was the minimum.
          </para>
        
            </listitem>
      
         </varlistentry>
    
      </variablelist>
  
   </refsection>

  
   <refsection><title>Description</title>
      
         <para>
        Creates a plq function representing the minimum of plqf and plqg for all x values.  This function runs in O(m+n) time and returns a plq function containing O(m+n) pieces, where m and n are the number of pieces in plqf and plqg, respectively.
      </para>
     
   </refsection>

  
   <refsection><title>Examples</title><programlisting role="example"><![CDATA[
plqf = [-1,0,-1,-1;%inf,0,1,1];
plqg = [1,0,-1,1;%inf,0,1,-1];
plqm = plq_min(plqf, plqg),
clf(); plq_plotMultiple(-4, 4, plqf, plqg, plqm);

plqf = [%inf,1,0,0];
plqg = [0,0,-3,-1;%inf,0,3,-1];
plqm = plq_min(plqf, plqg),
clf(); plq_plotMultiple(-4, 4, plqf, plqg, plqm);
  ]]></programlisting></refsection>

  
   <refsection><title>See Also</title><simplelist type="inline">
    
      <member>
         <link linkend="plq_function">plq_function</link>
      </member>
  
   </simplelist></refsection>

  
   <refsection><title>Authors</title><para>
    
      <literal>Bryan Gardiner</literal>, University of British Columbia, BC, Canada
  </para></refsection>

</refentry>
