<?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_conv_on_interval"><info><pubdate>05-May-2008</pubdate></info><refnamediv><refname>_plq_conv_on_interval</refname><refpurpose>Piecewise linear quadratic (plq), two-piece convexity on interval</refpurpose></refnamediv>
  
   
  
   
  
   
  
   
  
   

  
   <refsynopsisdiv><title>Calling Sequence</title><synopsis>plqco = _plq_conv_on_interval(f1,f2,x1,x3,x5)</synopsis></refsynopsisdiv>

  
   <refsection><title>Parameters</title>
	  
      <variablelist>
		  
         <varlistentry>
			  
            <term>f1</term>
			  
            <listitem>
				  
               <para>One row of a plq function, on the interval (x1,x3].
				  </para>
			  
            </listitem>
		  
         </varlistentry>
		  
         <varlistentry>
			  
            <term>f2</term>
			  
            <listitem>
				  
               <para>The next row of the plq function, on the interval (x3,x5].
				  </para>
			  
            </listitem>
		  
         </varlistentry>
		  
         <varlistentry>
			  
            <term>x1</term>
			  
            <listitem>
				  
               <para>The open lower bound of f1.
				  </para>
			  
            </listitem>
		  
         </varlistentry>
		  
         <varlistentry>
			  
            <term>x3</term>
			  
            <listitem>
				  
               <para>The closed lower bound of f1, and the open upper bound of f2.
				  </para>
			  
            </listitem>
		  
         </varlistentry>
		  
         <varlistentry>
			  
            <term>x5</term>
			  
            <listitem>
				  
               <para>The closed upper bound of f2.
				  </para>
			  
            </listitem>
		  
         </varlistentry>
		  
         <varlistentry>
			  
            <term>plqco</term>
			  
            <listitem>
				  
               <para>A plq function that is the convex hull of f1 and f2 on (x1,x5].
				  </para>
			  
            </listitem>
		  
         </varlistentry>
	  
      </variablelist>
  
   </refsection>
 
  
   <refsection><title>Description</title>
     
         <para>
	     Takes two adjacent pieces of a plq function, and the intervals over which they are defined, and returns a plq function that is defined over the domain of both of the pieces, and is the convex hull of both of the pieces.
    </para>
 	
   </refsection>

  
   <refsection><title>Examples</title><programlisting role="example"><![CDATA[
plqf = [1,1,0,0; 4,0,0,1]; 
f1 = plqf(1,:);
f2 = plqf(2,:);
x1=-2.5;
x3=f1(1,1);
x5=f2(1,1);
result = _plq_conv_on_interval(f1,f2,x1,x3,x5); // [0.1270167,1,0,0; 4,0,0.2540333,-0.0161332]
plq_plot(plqf, result, -2.5, 4);
  ]]></programlisting></refsection>


   <refsection><title>See Also</title><simplelist type="inline">
    
      <member>
         <link linkend="plq_coDirect">plq_coDirect</link>
      </member>
    
      <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>