Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > df736a3bc446df5b16150bebb7296274 > files > 252

DSDP-devel-5.8-2.fc14.i686.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>DSDP: Linear Programming</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.4 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">DSDP</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Linear Programming</div>  </div>
</div>
<div class="contents">
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__LPRoutines.html#ga0d29bfae7b375bfb3bc8ccab769a4003">DSDPCreateLPCone</a> (<a class="el" href="structDSDP__C.html">DSDP</a> dsdp, <a class="el" href="dsdp5_8h.html#ab974b47d582ebca94a1486e5bb0cdd18">LPCone</a> *dspcone)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new object for linear programs and scalar inequalities.  <a href="#ga0d29bfae7b375bfb3bc8ccab769a4003"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__LPRoutines.html#gae8b986e2ffe6accd28f82f8fd7571287">LPConeCopyS</a> (<a class="el" href="dsdp5_8h.html#ab974b47d582ebca94a1486e5bb0cdd18">LPCone</a> lpcone, double s[], int n)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy the variables s into the spedified array.  <a href="#gae8b986e2ffe6accd28f82f8fd7571287"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__LPRoutines.html#gaf67de731657b5f9eedb51ba2de2d0eb6">LPConeGetDimension</a> (<a class="el" href="dsdp5_8h.html#ab974b47d582ebca94a1486e5bb0cdd18">LPCone</a> lpcone, int *n)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the dimension is the number of variables x, which equals the number of slack variables s.  <a href="#gaf67de731657b5f9eedb51ba2de2d0eb6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__LPRoutines.html#ga397a75ac119afb25a2aea1b583de789d">LPConeGetXArray</a> (<a class="el" href="dsdp5_8h.html#ab974b47d582ebca94a1486e5bb0cdd18">LPCone</a> lpcone, double *x[], int *n)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the array used to store the x variables.  <a href="#ga397a75ac119afb25a2aea1b583de789d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__LPRoutines.html#gad0de1037f6c6d599c94d9b3c54a5b890">LPConeSetData</a> (<a class="el" href="dsdp5_8h.html#ab974b47d582ebca94a1486e5bb0cdd18">LPCone</a> lpcone, int n, const int ik[], const int cols[], const double vals[])</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set data into the LP cone.  <a href="#gad0de1037f6c6d599c94d9b3c54a5b890"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__LPRoutines.html#gafe6d7646a6508238ee9d956c4693efd3">LPConeSetData2</a> (<a class="el" href="dsdp5_8h.html#ab974b47d582ebca94a1486e5bb0cdd18">LPCone</a> lpcone, int n, const int ik[], const int cols[], const double vals[])</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set data A and into the LP cone.  <a href="#gafe6d7646a6508238ee9d956c4693efd3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__LPRoutines.html#ga9eff46728f001c00a0fb6ef11a5f7813">LPConeView</a> (<a class="el" href="dsdp5_8h.html#ab974b47d582ebca94a1486e5bb0cdd18">LPCone</a> lpcone)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Print the data in the LP cone to the screen.  <a href="#ga9eff46728f001c00a0fb6ef11a5f7813"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__LPRoutines.html#ga68f95f33e6eea33133c5d4f31e85187c">LPConeView2</a> (<a class="el" href="dsdp5_8h.html#ab974b47d582ebca94a1486e5bb0cdd18">LPCone</a> lpcone)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Print the data in the LP cone to the screen.  <a href="#ga68f95f33e6eea33133c5d4f31e85187c"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<p>Routines that create the LP cone object for linear inequalites, set the data, and provide access to the solutions.</p>
<div class="fragment"><pre class="fragment"><span class="preprocessor">#include dsdp5.h </span>
</pre></div><p>In <a class="el" href="PDForm.html">DSDP Standard Form</a> a pure linear program is given by the following pair of problems. </p>
<p class="formulaDsp">
<img class="formulaDsp" alt="\[ \begin{array}{lllllllll} \mbox{Maximize} &amp; b^T y &amp; &amp; \mbox{such that} &amp; A^T y &amp; \leq c \\ \mbox{Minimize} &amp; c^T x &amp; &amp; \mbox{such that} &amp; A x &amp; = b, &amp; x \geq 0 \\ \end{array} \]" src="form_59.png"/>
</p>
<p>Slack variables <img class="formulaInl" alt="$ s:= c - A^Ty $" src="form_60.png"/> must be positive. Variables <img class="formulaInl" alt="$ x,s \in \Re^n$" src="form_61.png"/>.</p>
<p>LP data may be used in conjuction with semidefinite data.</p>
<dl><dt><b>Return values:</b></dt><dd>
  <table class="retval">
    <tr><td class="paramname">0</td><td>if successful </td></tr>
  </table>
  </dd>
</dl>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="ga0d29bfae7b375bfb3bc8ccab769a4003"></a><!-- doxytag: member="dsdplp.c::DSDPCreateLPCone" ref="ga0d29bfae7b375bfb3bc8ccab769a4003" args="(DSDP dsdp, LPCone *dspcone)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int DSDPCreateLPCone </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structDSDP__C.html">DSDP</a>&#160;</td>
          <td class="paramname"><em>dsdp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="dsdp5_8h.html#ab974b47d582ebca94a1486e5bb0cdd18">LPCone</a> *&#160;</td>
          <td class="paramname"><em>dspcone</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a new object for linear programs and scalar inequalities. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">dsdp</td><td>the solver </td></tr>
    <tr><td class="paramname">*dspcone</td><td>new LP Cone object</td></tr>
  </table>
  </dd>
</dl>
<dl class="note"><dt><b>Note:</b></dt><dd>LP data can be specified using one or more LPCone objects. Although the use multiple cones is allowed, efficiency is best when all LP data is set in the same cone.</dd></dl>
<div class="fragment"><pre class="fragment"><a class="code" href="structDSDP__C.html" title="Internal structures for the DSDP solver.">DSDP</a> dsdp;
<a class="code" href="dsdp5_8h.html#ab974b47d582ebca94a1486e5bb0cdd18" title="The LPCone object points to blocks of data that specify linear scalar inequality constraints.">LPCone</a> lpcone;
<a class="code" href="group__DSDPBasic.html#gaa32509ded8359326d02782adb91c745a" title="Create a DSDP solver. FIRST DSDP routine!">DSDPCreate</a>(3,&amp;dsdp);
<a class="code" href="group__LPRoutines.html#ga0d29bfae7b375bfb3bc8ccab769a4003" title="Create a new object for linear programs and scalar inequalities.">DSDPCreateLPCone</a>(dsdp,&amp;lpcone);
</pre></div><dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="group__DSDPBasic.html#gaa32509ded8359326d02782adb91c745a" title="Create a DSDP solver. FIRST DSDP routine!">DSDPCreate()</a> </dd></dl>

<p>Definition at line <a class="el" href="dsdplp_8c_source.html#l00509">509</a> of file <a class="el" href="dsdplp_8c_source.html">dsdplp.c</a>.</p>

<p>Referenced by <a class="el" href="dsdp_8c_source.html#l00035">mexFunction()</a>, and <a class="el" href="readsdpa_8c_source.html#l00080">ReadSDPAFile()</a>.</p>

</div>
</div>
<a class="anchor" id="gae8b986e2ffe6accd28f82f8fd7571287"></a><!-- doxytag: member="dsdplp.c::LPConeCopyS" ref="gae8b986e2ffe6accd28f82f8fd7571287" args="(LPCone lpcone, double s[], int n)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int LPConeCopyS </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="dsdp5_8h.html#ab974b47d582ebca94a1486e5bb0cdd18">LPCone</a>&#160;</td>
          <td class="paramname"><em>lpcone</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>s</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Copy the variables s into the spedified array. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">lpcone</td><td>LP Cone </td></tr>
    <tr><td class="paramname">s</td><td>array </td></tr>
    <tr><td class="paramname">n</td><td>the conic dimension and length of the array </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="group__LPRoutines.html#ga0d29bfae7b375bfb3bc8ccab769a4003" title="Create a new object for linear programs and scalar inequalities.">DSDPCreateLPCone()</a> </dd>
<dd>
<a class="el" href="group__LPRoutines.html#gaf67de731657b5f9eedb51ba2de2d0eb6" title="Get the dimension is the number of variables x, which equals the number of slack variables s...">LPConeGetDimension()</a> </dd></dl>

<p>Definition at line <a class="el" href="dsdplp_8c_source.html#l00595">595</a> of file <a class="el" href="dsdplp_8c_source.html">dsdplp.c</a>.</p>

<p>Referenced by <a class="el" href="printsdpa_8c_source.html#l00094">DSDPPrintSolution()</a>.</p>

</div>
</div>
<a class="anchor" id="gaf67de731657b5f9eedb51ba2de2d0eb6"></a><!-- doxytag: member="dsdplp.c::LPConeGetDimension" ref="gaf67de731657b5f9eedb51ba2de2d0eb6" args="(LPCone lpcone, int *n)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int LPConeGetDimension </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="dsdp5_8h.html#ab974b47d582ebca94a1486e5bb0cdd18">LPCone</a>&#160;</td>
          <td class="paramname"><em>lpcone</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>n</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the dimension is the number of variables x, which equals the number of slack variables s. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">lpcone</td><td>LP Cone </td></tr>
    <tr><td class="paramname">n</td><td>dimension </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="dsdplp_8c_source.html#l00616">616</a> of file <a class="el" href="dsdplp_8c_source.html">dsdplp.c</a>.</p>

<p>Referenced by <a class="el" href="printsdpa_8c_source.html#l00164">DSDPPrintData()</a>.</p>

</div>
</div>
<a class="anchor" id="ga397a75ac119afb25a2aea1b583de789d"></a><!-- doxytag: member="dsdplp.c::LPConeGetXArray" ref="ga397a75ac119afb25a2aea1b583de789d" args="(LPCone lpcone, double *x[], int *n)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int LPConeGetXArray </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="dsdp5_8h.html#ab974b47d582ebca94a1486e5bb0cdd18">LPCone</a>&#160;</td>
          <td class="paramname"><em>lpcone</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double *&#160;</td>
          <td class="paramname"><em>x</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>n</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the array used to store the x variables. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">lpcone</td><td>LP Cone </td></tr>
    <tr><td class="paramname">x</td><td>array of variables </td></tr>
    <tr><td class="paramname">n</td><td>the dimension of the cone and length of the array </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="group__LPRoutines.html#ga0d29bfae7b375bfb3bc8ccab769a4003" title="Create a new object for linear programs and scalar inequalities.">DSDPCreateLPCone()</a></dd></dl>
<p>For example, after calling <a class="el" href="group__DSDPBasic.html#gacd271769549030ce365597101946220b" title="Compute the X variables.">DSDPComputeX()</a>, </p>
<div class="fragment"><pre class="fragment"><span class="keywordtype">int</span> i,n;
<span class="keywordtype">double</span> *x;
<a class="code" href="group__LPRoutines.html#ga397a75ac119afb25a2aea1b583de789d" title="Get the array used to store the x variables.">LPConeGetXArray</a>(lpcone,&amp;x,&amp;n);
<span class="keywordflow">for</span> (i=0;i&lt;n,i++) printf(<span class="stringliteral">&quot;x[%d] = %16.8f\n&quot;</span>,x[i]);
</pre></div> 
<p>Definition at line <a class="el" href="dsdplp_8c_source.html#l00556">556</a> of file <a class="el" href="dsdplp_8c_source.html">dsdplp.c</a>.</p>

<p>Referenced by <a class="el" href="printsdpa_8c_source.html#l00094">DSDPPrintSolution()</a>.</p>

</div>
</div>
<a class="anchor" id="gad0de1037f6c6d599c94d9b3c54a5b890"></a><!-- doxytag: member="dsdplp.c::LPConeSetData" ref="gad0de1037f6c6d599c94d9b3c54a5b890" args="(LPCone lpcone, int n, const int ik[], const int cols[], const double vals[])" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LPConeSetData </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="dsdp5_8h.html#ab974b47d582ebca94a1486e5bb0cdd18">LPCone</a>&#160;</td>
          <td class="paramname"><em>lpcone</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>ik</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>cols</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const double&#160;</td>
          <td class="paramname"><em>vals</em>[]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set data into the LP cone. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">lpcone</td><td>the LP cone </td></tr>
    <tr><td class="paramname">n</td><td>the number of inequalities </td></tr>
    <tr><td class="paramname">ik</td><td>the number of nonzeros in each column of the matrix </td></tr>
    <tr><td class="paramname">cols</td><td>array of column numbers </td></tr>
    <tr><td class="paramname">vals</td><td>array of LP data</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="group__DSDPBasic.html#ga7e1b78dc7d7407fcf84e05b9c42fc72c" title="Set the objective vector b in (D).">DSDPSetDualObjective()</a></dd></dl>
<p>For example, consider the following problem in the form of (D): </p>
<p class="formulaDsp">
<img class="formulaDsp" alt="\[ \begin{array}{llllll} \mbox{Maximize} &amp; &amp; y_1 &amp; + &amp; y_2 \\ \mbox{Subject to} &amp; &amp; 4 y_1 &amp; + &amp; 2 y_2 &amp; \leq 6 \\ &amp; &amp; 3 y_1 &amp; + &amp; 7 y_2 &amp; \leq 10 \\ &amp; &amp; &amp; &amp; - y_2 &amp; \leq 12 \\ \end{array} \]" src="form_0.png"/>
</p>
<p> In this example, there three inequalities, so the dimension of the x vector would be 3 and n=3. The input arrays would be as follows: </p>
<div class="fragment"><pre class="fragment"><span class="keywordtype">int</span> ik[]={0,3,5,7};
<span class="keywordtype">int</span> row[]={0,1,2,0,1,0,1,2};
<span class="keywordtype">double</span> vals[]={6.0,10.0,12.0,4.0,3.0,1.0,7.0,-1.0};
<a class="code" href="group__LPRoutines.html#gad0de1037f6c6d599c94d9b3c54a5b890" title="Set data into the LP cone.">LPConeSetData</a>(lpcone,3,ik,row,vals);
<a class="code" href="group__DSDPBasic.html#ga7e1b78dc7d7407fcf84e05b9c42fc72c" title="Set the objective vector b in (D).">DSDPSetDualObjective</a>(dsdp,1,1);
<a class="code" href="group__DSDPBasic.html#ga7e1b78dc7d7407fcf84e05b9c42fc72c" title="Set the objective vector b in (D).">DSDPSetDualObjective</a>(dsdp,2,1);
</pre></div> 
<p>Definition at line <a class="el" href="dsdplp_8c_source.html#l00666">666</a> of file <a class="el" href="dsdplp_8c_source.html">dsdplp.c</a>.</p>

<p>Referenced by <a class="el" href="readsdpa_8c_source.html#l00080">ReadSDPAFile()</a>.</p>

</div>
</div>
<a class="anchor" id="gafe6d7646a6508238ee9d956c4693efd3"></a><!-- doxytag: member="dsdplp.c::LPConeSetData2" ref="gafe6d7646a6508238ee9d956c4693efd3" args="(LPCone lpcone, int n, const int ik[], const int cols[], const double vals[])" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LPConeSetData2 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="dsdp5_8h.html#ab974b47d582ebca94a1486e5bb0cdd18">LPCone</a>&#160;</td>
          <td class="paramname"><em>lpcone</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>ik</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>cols</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const double&#160;</td>
          <td class="paramname"><em>vals</em>[]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set data A and into the LP cone. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">lpcone</td><td>the LP cone </td></tr>
    <tr><td class="paramname">n</td><td>the number of inequalities </td></tr>
    <tr><td class="paramname">ik</td><td>the number of nonzeros in each column of the matrix <img class="formulaInl" alt="$A^T$" src="form_1.png"/> </td></tr>
    <tr><td class="paramname">cols</td><td>array of column numbers in A </td></tr>
    <tr><td class="paramname">vals</td><td>array of nonzeros in A and c</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="group__DSDPBasic.html#ga7e1b78dc7d7407fcf84e05b9c42fc72c" title="Set the objective vector b in (D).">DSDPSetDualObjective()</a></dd></dl>
<p>For example, consider the following problem in the form of (D): </p>
<p class="formulaDsp">
<img class="formulaDsp" alt="\[ \begin{array}{llllll} \mbox{Maximize} &amp; &amp; y_1 &amp; + &amp; y_2 \\ \mbox{Subject to} &amp; &amp; 4 y_1 &amp; + &amp; 2 y_2 &amp; \leq 6 \\ &amp; &amp; 3 y_1 &amp; + &amp; 7 y_2 &amp; \leq 10 \\ &amp; &amp; &amp; &amp; - y_2 &amp; \leq 12 \\ \end{array} \]" src="form_0.png"/>
</p>
<div class="fragment"><pre class="fragment"><span class="keywordtype">int</span> ik[]={0,2,5,7};
<span class="keywordtype">int</span> row[]={0,1,0,1,2,0,1,2};
<span class="keywordtype">double</span> vals[]={4.0,3.0,2.0,7.0,-1.0,6.0,10.0,12.0};
<a class="code" href="group__LPRoutines.html#gafe6d7646a6508238ee9d956c4693efd3" title="Set data A and into the LP cone.">LPConeSetData2</a>(lpcone,3,ik,row,vals);
<a class="code" href="group__DSDPBasic.html#ga7e1b78dc7d7407fcf84e05b9c42fc72c" title="Set the objective vector b in (D).">DSDPSetDualObjective</a>(dsdp,1,1);
<a class="code" href="group__DSDPBasic.html#ga7e1b78dc7d7407fcf84e05b9c42fc72c" title="Set the objective vector b in (D).">DSDPSetDualObjective</a>(dsdp,2,1);
</pre></div> 
<p>Definition at line <a class="el" href="dsdplp_8c_source.html#l00717">717</a> of file <a class="el" href="dsdplp_8c_source.html">dsdplp.c</a>.</p>

<p>Referenced by <a class="el" href="dsdp_8c_source.html#l00035">mexFunction()</a>.</p>

</div>
</div>
<a class="anchor" id="ga9eff46728f001c00a0fb6ef11a5f7813"></a><!-- doxytag: member="dsdplp.c::LPConeView" ref="ga9eff46728f001c00a0fb6ef11a5f7813" args="(LPCone lpcone)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LPConeView </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="dsdp5_8h.html#ab974b47d582ebca94a1486e5bb0cdd18">LPCone</a>&#160;</td>
          <td class="paramname"><em>lpcone</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Print the data in the LP cone to the screen. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">lpcone</td><td>the LP cone </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="dsdplp_8c_source.html#l01078">1078</a> of file <a class="el" href="dsdplp_8c_source.html">dsdplp.c</a>.</p>

<p>Referenced by <a class="el" href="readsdpa_8c_source.html#l00080">ReadSDPAFile()</a>.</p>

</div>
</div>
<a class="anchor" id="ga68f95f33e6eea33133c5d4f31e85187c"></a><!-- doxytag: member="dsdplp.c::LPConeView2" ref="ga68f95f33e6eea33133c5d4f31e85187c" args="(LPCone lpcone)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LPConeView2 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="dsdp5_8h.html#ab974b47d582ebca94a1486e5bb0cdd18">LPCone</a>&#160;</td>
          <td class="paramname"><em>lpcone</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Print the data in the LP cone to the screen. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">lpcone</td><td>the LP cone </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="dsdplp_8c_source.html#l00744">744</a> of file <a class="el" href="dsdplp_8c_source.html">dsdplp.c</a>.</p>

<p>Referenced by <a class="el" href="readsdpa_8c_source.html#l00080">ReadSDPAFile()</a>.</p>

</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Wed Jun 8 2011 for DSDP by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>