<h3>1 <span class="Heading">Installation and Preface</span></h3>
<p>To install the package, just unpack it in your packages directory (usually <code class="code">~/gap/pkg</code> for local installation). To use <strong class="pkg">polymaking</strong>, you need a working installation of the program polymake <span class="URL"><a href="https://polymake.org">https://polymake.org</a></span>. The package has been tested on linux and Mac OS X (10.4, 10.5 and 10.6). But it should be as platform independent as <strong class="pkg">GAP</strong> and polymake.</p>
<p>The interaction with polymake is restricted to writing files and carrying out simple operations. These looked like <br /> <code class="code">polymake file KEYWORD1 KEYWORD2 KEYWORD3</code> <br/> on the command line for polymake versions before 4. The keywords are polymake methods without arguments. Since polymake no longer supports this interface the polymaking package provides the script <code class="code">lib/pm_script_arg.pl</code> to emulate this. <br /> <code class="code">polymake ––script lib/pm_script_arg.pl KEYWORD1 KEYWORD2 KEYWORD3</code> <br /> Using custom scripts is not supported.<br /> Every call to polymake will re-start the program anew. This causes considerable overhead. The number of calls to polymake is reduced by caching the results in the so-called <code class="keyw">PolymakeObject</code> in GAP. As of polymaking version 0.8.0, old versions of polymake (i.e. versions before 2.7.9) are not supported anymore.</p>
<h4>1.1 <span class="Heading">A few words about the installation of polymake</span></h4>
<p><strong class="pkg">polymaking</strong> will try to guess the location of polymake. If this fails, a warning is issued at load time (<code class="keyw">InfoWarning</code> level 1). Note that the guessing procedure is suppressed when <code class="func">POLYMAKE_COMMAND</code> (<a href="chap3_mj.html#X7B35A5217C8C7B04"><span class="RefLink">3.2-1</span></a>) is set manually (see <a href="chap1_mj.html#X7943B579846BDB76"><span class="RefLink">1.2-3</span></a>). <br /> <code class="code">setenv PATH ${PATH}:<your polymakepath></code> <br /> The general rule is: If <strong class="pkg">polymaking</strong> finds polymake by itself, there is nothing to worry about.</p>
<h4>1.2 <span class="Heading">Setting variables for external programs</span></h4>
<p>As <strong class="pkg">polymaking</strong> uses the program polymake, it needs to know where this program lives. The communication with polymake is done by writing files for polymake and reading its output (as returned to standard output"the prompt"). Note that the interface does not read any polymake file.</p>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ SetPolymakeDataDirectory</code>( <var class="Arg">dir</var> )</td><td class="tdright">( method )</td></tr></table></div>
<p>Sets the directory in which all polymake files are created to <var class="Arg">dir</var>. The standard place for these files is a temporary directory generated when the package is loaded. This manipulates <code class="func">POLYMAKE_DATA_DIR</code> (<a href="chap3_mj.html#X7C07B16B873BA46D"><span class="RefLink">3.2-2</span></a>).</p>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ SetPolymakeCommand</code>( <var class="Arg">command</var> )</td><td class="tdright">( method )</td></tr></table></div>
<p>Sets the name for the polymake program to <var class="Arg">command</var>. This manipulates <codeclass="func">POLYMAKE_COMMAND</code> (<a href="chap3_mj.html#X7B35A5217C8C7B04"><span class="RefLink">3.2-1</span></a>).</p>
<p>To permanently set the values of <code class="func">POLYMAKE_COMMAND</code> (<a href="chap3_mj.html#X7B35A5217C8C7B04"><span class="RefLink">3.2-1</span></a>), and <code class="func">POLYMAKE_DATA_DIR</code> (<a href="chap3_mj.html#X7C07B16B873BA46D"><span class="RefLink">3.2-2</span></a>), add the lines</p>
<p>to your <code class="file">.gaprc</code> file (see <a href="../../../doc/ref/chap3_mj.html#X7FD66F977A3B02DF"><span class="RefLink">Reference: The gap.ini and gaprc files</span></a>). Note that these have to be <em>before</em> the <code class="code">LoadPackage("polymaking");</code> line. Or you can change the values of the above variables by editing <code class="file">lib/environment.gi</code></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.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.