<p>The function takes three variables. The first is a polyhedron <em>poly</em>, the second <em>str</em> should be "max" or "min" and the third <em>obj</em> is the objective function.</p>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ Cdd_SolveLinearProgram</code>( <var class="Arg">lp</var> )</td><td class="tdright">( operation )</td></tr></table></div>
<p>Returns: a list if the program is optimal, otherwise returns the value 0</p>
<p>The function takes a linear program. If the program is optimal, the function returns a list of two entries, the solution vector and the optimal value of the objective, otherwise it returns <varclass="Arg">fail</var>.</p>
<p>To illustrate the using of these functions, let us solve the linear program given by:</p>
<p>So the optimal solution for <span class="SimpleMath">\(\texttt{lp1}\)</span> is <span class="SimpleMath">\((x=100,y=170)\)</span> with optimal value <span class="SimpleMath">\(p=1-2(100)+5(170)=651\)</span> and for <span class="SimpleMath">\(\texttt{lp2}\)</span> is <span class="SimpleMath">\((x=200,y=80)\)</span> with optimal value <span class="SimpleMath">\(p=1-2(200)+5(80)=1\)</span>.</p>
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.14Bemerkung:
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.