Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 54cac1c2268db633d66eeff1b4faa585 > files > 388

frepple-doc-0.8.1-3.fc15.noarch.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>C++ API frePPLe: module_lp_solver::LPSolver Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="../styles.css" rel="stylesheet"  type="text/css">
</head>
<body>
<div id="container">

<div id="menubar"> 
<div id="logo" align="center">
<br/><img src='../frepple.bmp' alt="frepple" /><br/>
<a href='http://www.frepple.com/'>
<strong>a Free<br/>Production Planning<br/>Library</strong>
</a>
</div>
<div id="menu">
<br/>
<h3><a href='../Main/HomePage.html'>Main</a></h3>
<h3><a href='../UI/Main.html'>User Manual</a></h3>
<h3><a href='../Tutorial/Main.html'>Tutorial</a></h3>
<h3><a href='../Frepple/Main.html'>Reference Manual</a></h3>
<h3><a href='../Main/FAQ.html'>FAQ</a></h3>
<h3><a href='index.html'>C++ API</a></h3>
<br/>
</div>  
</div>

<div id="content">
<br/>
<!-- Generated by Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</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 class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="a00259.html">module_lp_solver</a>::<a class="el" href="a00112.html">LPSolver</a>
  </div>
</div>
<div class="contents">
<h1>module_lp_solver::LPSolver Class Reference</h1><!-- doxytag: class="module_lp_solver::LPSolver" --><!-- doxytag: inherits="frepple::Solver" -->
<p>This class is a prototype of an Linear Programming (LP) Solver for the planning problem or a subset of it.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00216_source.html">lpsolver.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for module_lp_solver::LPSolver:</div>
<div class="dynsection">
<div class="center"><img src="a00685.png" border="0" usemap="#module__lp__solver_1_1_l_p_solver_inherit__map" alt="Inheritance graph"/></div>
<map name="module__lp__solver_1_1_l_p_solver_inherit__map" id="module__lp__solver_1_1_l_p_solver_inherit__map">
<area shape="rect" id="node2" href="a00171.html" title="This class is an implementation of the &quot;visitor&quot; design pattern. It is..." alt="" coords="248,238,349,266"/>
<area shape="rect" id="node4" href="a00085.html" title="frepple::utils::HasName\&lt; Solver \&gt;" alt="" coords="191,161,407,189"/>
<area shape="rect" id="node6" href="a00119.html" title="Class NonCopyable is a base class. Derive your own class from it when you want to..." alt="" coords="5,83,181,111"/>
<area shape="rect" id="node8" href="a00182.html" title="This class represents a node in the tree." alt="" coords="205,83,392,111"/>
<area shape="rect" id="node10" href="a00120.html" title="Object is the abstract base class for the main entities." alt="" coords="416,83,552,111"/>
<area shape="rect" id="node12" href="a00151.html" title="This is a base class for all Python extension types." alt="" coords="371,6,597,34"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="a00686.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00112.html#a48fc88567e5e4ce858dd72ddfb0f9aed">addObjective</a> (const string &amp;c)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00112.html#a1efedc96cb52751b3b3efca56401fd30">endElement</a> (<a class="el" href="a00186.html">XMLInput</a> &amp;pIn, const <a class="el" href="a00002.html">Attribute</a> &amp;pAttr, const <a class="el" href="a00047.html">DataElement</a> &amp;pElement)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual PyObject *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00112.html#a05c791c87438080ee3dccf793d1d7e51">getattro</a> (const <a class="el" href="a00002.html">Attribute</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00112.html#aa06224f89b9a520d833f04e329d69b0f">getDataFile</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00112.html#a644e361a095800c4db61a532cfb13ff9">getMinimum</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00112.html#a05fb54b8f285cd3f6843c9febde8864d">getModelFile</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const list&lt; string &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00112.html#ae57e697cc8bcc4dcacfbf2c64e203f5e">getObjectives</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual size_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00112.html#ab57d0c62de3123a51ac9c147f10a7ad4">getSize</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00112.html#a8adb53e496e6355e86909fef0df5729b">getSolutionFile</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="a00115.html">MetaClass</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00112.html#a59e80bd6c085f2b987c9382d7e78354d">getType</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00112.html#a7ae2a4192cdcb2a06a1d43ef995269d3">LPSolver</a> (const string &amp;n)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00112.html#a4717526cb4db2ca217646e8af799de8b">setattro</a> (const <a class="el" href="a00002.html">Attribute</a> &amp;, const <a class="el" href="a00154.html">PythonObject</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00112.html#af708b6aa075482fc0a15156101cf764a">setDataFile</a> (const string &amp;c)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00112.html#a6401173b7600ee08b35322dd8078bc53">setMinimum</a> (bool m)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00112.html#ac225e17c08274edccba96f31b18f22c3">setModelFile</a> (const string &amp;c)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00112.html#a14bae3e7e9bf5a5dc57e3f7e75bdb868">setSolutionFile</a> (const string &amp;c)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00112.html#ae17238aac24456062ecf2939201e5b74">solve</a> (void *=NULL)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00112.html#a85c8ba00f73569c997bb002970764aab">writeElement</a> (<a class="el" href="a00189.html">XMLOutput</a> *, const <a class="el" href="a00096.html">Keyword</a> &amp;, <a class="el" href="a00257.html#a20c2c7e4c6b668e71c154ae3eb18f398">mode</a>=DEFAULT) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00112.html#a5438100a3aa05ad1f4171d466beb6bca">~LPSolver</a> ()</td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00112.html#a5b351b4d36fa31bd2ef24c6691b16e13">initialize</a> ()</td></tr>
<tr><td colspan="2"><h2>Static Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="a00115.html">MetaClass</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00112.html#a06fe14f0a32d32564b39e14933b8dcc1">metadata</a></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>This class is a prototype of an Linear Programming (LP) Solver for the planning problem or a subset of it. </p>
<p>The solver is intended primarly for prototyping purposes. Cleaner and more performant alternatives are recommended for real production use. </p>

<p>Definition at line <a class="el" href="a00216_source.html#l00108">108</a> of file <a class="el" href="a00216_source.html">lpsolver.h</a>.</p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a7ae2a4192cdcb2a06a1d43ef995269d3"></a><!-- doxytag: member="module_lp_solver::LPSolver::LPSolver" ref="a7ae2a4192cdcb2a06a1d43ef995269d3" args="(const string &amp;n)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">module_lp_solver::LPSolver::LPSolver </td>
          <td>(</td>
          <td class="paramtype">const string &amp;&nbsp;</td>
          <td class="paramname"> <em>n</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Constructor. </p>

<p>Definition at line <a class="el" href="a00216_source.html#l00158">158</a> of file <a class="el" href="a00216_source.html">lpsolver.h</a>.</p>

</div>
</div>
<a class="anchor" id="a5438100a3aa05ad1f4171d466beb6bca"></a><!-- doxytag: member="module_lp_solver::LPSolver::~LPSolver" ref="a5438100a3aa05ad1f4171d466beb6bca" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">module_lp_solver::LPSolver::~LPSolver </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Destructor. </p>

<p>Definition at line <a class="el" href="a00216_source.html#l00161">161</a> of file <a class="el" href="a00216_source.html">lpsolver.h</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a48fc88567e5e4ce858dd72ddfb0f9aed"></a><!-- doxytag: member="module_lp_solver::LPSolver::addObjective" ref="a48fc88567e5e4ce858dd72ddfb0f9aed" args="(const string &amp;c)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void module_lp_solver::LPSolver::addObjective </td>
          <td>(</td>
          <td class="paramtype">const string &amp;&nbsp;</td>
          <td class="paramname"> <em>c</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Append a new objective to the list. </p>

<p>Definition at line <a class="el" href="a00216_source.html#l00146">146</a> of file <a class="el" href="a00216_source.html">lpsolver.h</a>.</p>

</div>
</div>
<a class="anchor" id="a1efedc96cb52751b3b3efca56401fd30"></a><!-- doxytag: member="module_lp_solver::LPSolver::endElement" ref="a1efedc96cb52751b3b3efca56401fd30" args="(XMLInput &amp;pIn, const Attribute &amp;pAttr, const DataElement &amp;pElement)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void module_lp_solver::LPSolver::endElement </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00186.html">XMLInput</a> &amp;&nbsp;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="a00002.html">Attribute</a> &amp;&nbsp;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="a00047.html">DataElement</a> &amp;&nbsp;</td>
          <td class="paramname"></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Called while restoring the model from an XML-file.<br/>
 This is called when the corresponding close element tag is encountered, and the Data() member of pElement is valid. </p>

<p>Reimplemented from <a class="el" href="a00171.html#ab301716662e85f733e8529d305bcc259">frepple::Solver</a>.</p>

<p>Definition at line <a class="el" href="a00215_source.html#l00250">250</a> of file <a class="el" href="a00215_source.html">lpsolver.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a05c791c87438080ee3dccf793d1d7e51"></a><!-- doxytag: member="module_lp_solver::LPSolver::getattro" ref="a05c791c87438080ee3dccf793d1d7e51" args="(const Attribute &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">PyObject * module_lp_solver::LPSolver::getattro </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00002.html">Attribute</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>attr</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Default getattro method. <br/>
 Subclasses are expected to implement an override if the type supports gettattro. </p>

<p>Reimplemented from <a class="el" href="a00171.html#adfd5b71beb06efcdd5f382734df6dcd9">frepple::Solver</a>.</p>

<p>Definition at line <a class="el" href="a00215_source.html#l00270">270</a> of file <a class="el" href="a00215_source.html">lpsolver.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aa06224f89b9a520d833f04e329d69b0f"></a><!-- doxytag: member="module_lp_solver::LPSolver::getDataFile" ref="aa06224f89b9a520d833f04e329d69b0f" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string module_lp_solver::LPSolver::getDataFile </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return the name of the GNU MathProg data file. </p>

<p>Definition at line <a class="el" href="a00216_source.html#l00124">124</a> of file <a class="el" href="a00216_source.html">lpsolver.h</a>.</p>

</div>
</div>
<a class="anchor" id="a644e361a095800c4db61a532cfb13ff9"></a><!-- doxytag: member="module_lp_solver::LPSolver::getMinimum" ref="a644e361a095800c4db61a532cfb13ff9" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool module_lp_solver::LPSolver::getMinimum </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns true when the solver needs to minimize the objective(s).<br/>
 Returns false when the solver needs to maximize the objective(s). </p>

<p>Definition at line <a class="el" href="a00216_source.html#l00140">140</a> of file <a class="el" href="a00216_source.html">lpsolver.h</a>.</p>

</div>
</div>
<a class="anchor" id="a05fb54b8f285cd3f6843c9febde8864d"></a><!-- doxytag: member="module_lp_solver::LPSolver::getModelFile" ref="a05fb54b8f285cd3f6843c9febde8864d" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string module_lp_solver::LPSolver::getModelFile </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return the name of the GNU MathProg model file. </p>

<p>Definition at line <a class="el" href="a00216_source.html#l00118">118</a> of file <a class="el" href="a00216_source.html">lpsolver.h</a>.</p>

</div>
</div>
<a class="anchor" id="ae57e697cc8bcc4dcacfbf2c64e203f5e"></a><!-- doxytag: member="module_lp_solver::LPSolver::getObjectives" ref="ae57e697cc8bcc4dcacfbf2c64e203f5e" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const list&lt;string&gt;&amp; module_lp_solver::LPSolver::getObjectives </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return a reference to the list of objectives. </p>

<p>Definition at line <a class="el" href="a00216_source.html#l00149">149</a> of file <a class="el" href="a00216_source.html">lpsolver.h</a>.</p>

</div>
</div>
<a class="anchor" id="ab57d0c62de3123a51ac9c147f10a7ad4"></a><!-- doxytag: member="module_lp_solver::LPSolver::getSize" ref="ab57d0c62de3123a51ac9c147f10a7ad4" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual size_t module_lp_solver::LPSolver::getSize </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return the memory size of the object in bytes. </p>

<p>Implements <a class="el" href="a00120.html#ae381655a0e700d1e0d9ef72379792872">frepple::utils::Object</a>.</p>

<p>Definition at line <a class="el" href="a00216_source.html#l00165">165</a> of file <a class="el" href="a00216_source.html">lpsolver.h</a>.</p>

</div>
</div>
<a class="anchor" id="a8adb53e496e6355e86909fef0df5729b"></a><!-- doxytag: member="module_lp_solver::LPSolver::getSolutionFile" ref="a8adb53e496e6355e86909fef0df5729b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string module_lp_solver::LPSolver::getSolutionFile </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return the name of the solution file. </p>

<p>Definition at line <a class="el" href="a00216_source.html#l00130">130</a> of file <a class="el" href="a00216_source.html">lpsolver.h</a>.</p>

</div>
</div>
<a class="anchor" id="a59e80bd6c085f2b987c9382d7e78354d"></a><!-- doxytag: member="module_lp_solver::LPSolver::getType" ref="a59e80bd6c085f2b987c9382d7e78354d" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual const <a class="el" href="a00115.html">MetaClass</a>&amp; module_lp_solver::LPSolver::getType </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>This returns the type information on the object, a bit similar to the standard type_info information. </p>

<p>Reimplemented from <a class="el" href="a00171.html#aa616e2bc3ea78ac9fbf467544032fdc5">frepple::Solver</a>.</p>

<p>Definition at line <a class="el" href="a00216_source.html#l00163">163</a> of file <a class="el" href="a00216_source.html">lpsolver.h</a>.</p>

</div>
</div>
<a class="anchor" id="a5b351b4d36fa31bd2ef24c6691b16e13"></a><!-- doxytag: member="module_lp_solver::LPSolver::initialize" ref="a5b351b4d36fa31bd2ef24c6691b16e13" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int module_lp_solver::LPSolver::initialize </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reimplemented from <a class="el" href="a00171.html#a9410da1315fa0ea25e61b7e867c34bac">frepple::Solver</a>.</p>

<p>Definition at line <a class="el" href="a00215_source.html#l00090">90</a> of file <a class="el" href="a00215_source.html">lpsolver.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a4717526cb4db2ca217646e8af799de8b"></a><!-- doxytag: member="module_lp_solver::LPSolver::setattro" ref="a4717526cb4db2ca217646e8af799de8b" args="(const Attribute &amp;, const PythonObject &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int module_lp_solver::LPSolver::setattro </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00002.html">Attribute</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>attr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="a00154.html">PythonObject</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>field</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Default setattro method. <br/>
 Subclasses are expected to implement an override if the type supports settattro. </p>

<p>Reimplemented from <a class="el" href="a00171.html#a238d13fba4132fee44d612f3e2d5b335">frepple::Solver</a>.</p>

<p>Definition at line <a class="el" href="a00215_source.html#l00296">296</a> of file <a class="el" href="a00215_source.html">lpsolver.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="af708b6aa075482fc0a15156101cf764a"></a><!-- doxytag: member="module_lp_solver::LPSolver::setDataFile" ref="af708b6aa075482fc0a15156101cf764a" args="(const string &amp;c)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void module_lp_solver::LPSolver::setDataFile </td>
          <td>(</td>
          <td class="paramtype">const string &amp;&nbsp;</td>
          <td class="paramname"> <em>c</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Update the name of the GNU MathProg data file. </p>

<p>Definition at line <a class="el" href="a00216_source.html#l00127">127</a> of file <a class="el" href="a00216_source.html">lpsolver.h</a>.</p>

</div>
</div>
<a class="anchor" id="a6401173b7600ee08b35322dd8078bc53"></a><!-- doxytag: member="module_lp_solver::LPSolver::setMinimum" ref="a6401173b7600ee08b35322dd8078bc53" args="(bool m)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void module_lp_solver::LPSolver::setMinimum </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>m</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Update the solver direction: minimization or maximization. </p>

<p>Definition at line <a class="el" href="a00216_source.html#l00143">143</a> of file <a class="el" href="a00216_source.html">lpsolver.h</a>.</p>

</div>
</div>
<a class="anchor" id="ac225e17c08274edccba96f31b18f22c3"></a><!-- doxytag: member="module_lp_solver::LPSolver::setModelFile" ref="ac225e17c08274edccba96f31b18f22c3" args="(const string &amp;c)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void module_lp_solver::LPSolver::setModelFile </td>
          <td>(</td>
          <td class="paramtype">const string &amp;&nbsp;</td>
          <td class="paramname"> <em>c</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Update the name of the GNU MathProg model file. </p>

<p>Definition at line <a class="el" href="a00216_source.html#l00121">121</a> of file <a class="el" href="a00216_source.html">lpsolver.h</a>.</p>

</div>
</div>
<a class="anchor" id="a14bae3e7e9bf5a5dc57e3f7e75bdb868"></a><!-- doxytag: member="module_lp_solver::LPSolver::setSolutionFile" ref="a14bae3e7e9bf5a5dc57e3f7e75bdb868" args="(const string &amp;c)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void module_lp_solver::LPSolver::setSolutionFile </td>
          <td>(</td>
          <td class="paramtype">const string &amp;&nbsp;</td>
          <td class="paramname"> <em>c</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Update the name of the solution file. <br/>
 After running the solver the solution is written to this flat file. </p>

<p>Definition at line <a class="el" href="a00216_source.html#l00135">135</a> of file <a class="el" href="a00216_source.html">lpsolver.h</a>.</p>

</div>
</div>
<a class="anchor" id="ae17238aac24456062ecf2939201e5b74"></a><!-- doxytag: member="module_lp_solver::LPSolver::solve" ref="ae17238aac24456062ecf2939201e5b74" args="(void *=NULL)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void module_lp_solver::LPSolver::solve </td>
          <td>(</td>
          <td class="paramtype">void *&nbsp;</td>
          <td class="paramname"> <em>v</em> = <code>NULL</code></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>This method creates a new column in the model for every demand. It's value represents the planned quantity of that demand. </p>
<dl><dt><b>Exceptions:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>DataException</em>&nbsp;</td><td>Generated when no calendar has been specified. </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="a00171.html#aa24859d5719ee02c89188323f9c47e56">frepple::Solver</a>.</p>

<p>Definition at line <a class="el" href="a00215_source.html#l00140">140</a> of file <a class="el" href="a00215_source.html">lpsolver.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a85c8ba00f73569c997bb002970764aab"></a><!-- doxytag: member="module_lp_solver::LPSolver::writeElement" ref="a85c8ba00f73569c997bb002970764aab" args="(XMLOutput *, const Keyword &amp;, mode=DEFAULT) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void module_lp_solver::LPSolver::writeElement </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00189.html">XMLOutput</a> *&nbsp;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="a00096.html">Keyword</a> &amp;&nbsp;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00257.html#a20c2c7e4c6b668e71c154ae3eb18f398">mode</a>&nbsp;</td>
          <td class="paramname"> = <code>DEFAULT</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Called while writing the model into an XML-file. The user class should write itself out, using the IOutStream members for its "simple" members and calling writeElement recursively for any contained objects. Not all classes are expected to implement this method. In instances of such a class can be created but can't be persisted. E.g. Command </p>

<p>Reimplemented from <a class="el" href="a00171.html#a710cb60097e6931be16ff0d842e1cb3b">frepple::Solver</a>.</p>

<p>Definition at line <a class="el" href="a00215_source.html#l00222">222</a> of file <a class="el" href="a00215_source.html">lpsolver.cpp</a>.</p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a06fe14f0a32d32564b39e14933b8dcc1"></a><!-- doxytag: member="module_lp_solver::LPSolver::metadata" ref="a06fe14f0a32d32564b39e14933b8dcc1" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="a00115.html">MetaClass</a> * <a class="el" href="a00112.html#a06fe14f0a32d32564b39e14933b8dcc1">module_lp_solver::LPSolver::metadata</a><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reimplemented from <a class="el" href="a00171.html#a71e7d22ae04bc1aa927b489f1f022745">frepple::Solver</a>.</p>

<p>Definition at line <a class="el" href="a00216_source.html#l00164">164</a> of file <a class="el" href="a00216_source.html">lpsolver.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="a00216_source.html">lpsolver.h</a></li>
<li><a class="el" href="a00215_source.html">lpsolver.cpp</a></li>
</ul>
</div>
<hr size="1"/><address style="align: right;"><small>Documentation generated for frePPLe by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"/></a></small></address>
</div>
</div>
</body>
</html>