source: html/trunk/Clp/userguide/ch05.html @ 956

Last change on this file since 956 was 956, checked in by ddelanu, 16 years ago

First revision of user guide

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 5.3 KB
1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 5. 
2  The CLP Executable
3  </title><meta name="generator" content="DocBook XSL Stylesheets V1.65.1"><link rel="home" href="index.html" title="CLP User Manual"><link rel="up" href="index.html" title="CLP User Manual"><link rel="previous" href="ch04.html" title="Chapter 4. 
4More Samples
5"><link rel="next" href="ch06.html" title="Chapter 6. 
6  Messages
7  "></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 5. 
8  The CLP Executable
9  </th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch04.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="ch06.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="clpexe"></a>Chapter 5. 
10  The CLP Executable
11  </h2></div></div><div></div></div><p>
12  The result of <b class="userinput"><tt>make unitTest</tt></b> (executed in
13  <tt class="filename">COIN/Clp</tt>) is an executable
14  <tt class="filename">clp</tt> as well as the CLP and COIN libraries.
15  This can be used to do various unit tests, but can also be used as a standalone
16  solver.  As it only has a very simple solution file format the user may wish to
17  modify that part of <tt class="filename">COIN/Clp/Test/ClpMain.cpp</tt> and even
18  offer the modifications as contribution to CLP.
19  </p><p>
20  The <tt class="filename">clp</tt> executable operates in command line mode or
21  prompted mode.  Entering <b class="userinput"><tt>clp</tt></b> will bring being "prompt
22  mode", while <b class="userinput"><tt>clp &lt;filename&gt;</tt></b> will import an MPS file
23  from filename and solve it using the dual simplex method and exit.  Again
24  <b class="userinput"><tt>clp &lt;filename&gt; -primalsimplex</tt></b> will import a file
25  and solve using the primal simplex method.  A dash
26  ("<b class="userinput"><tt>-</tt></b>") by itself changes to prompt mode.  In
27  command line mode "<b class="userinput"><tt>-</tt></b>" is needed (apart from
28  first parameter which is taken as file name).  So the following are equivalent
29  and maximize a problem using dual and write a solution to file
30  <tt class="filename">solfile</tt>:
31  </p><div class="blockquote"><blockquote class="blockquote"><div class="literallayout"><p><br>
32    <tt class="prompt">$</tt> <b class="userinput"><tt>clp <i class="replaceable"><tt>filename</tt></i> -maximize -dualsimplex -solution solfile</tt></b><br>
33    </p></div></blockquote></div><p>
34  </p><div class="blockquote"><blockquote class="blockquote"><div class="literallayout"><p><br>
35    <tt class="prompt">$</tt> <b class="userinput"><tt>clp <i class="replaceable"><tt>filename</tt></i> -maximize -</tt></b><br>
36    <tt class="prompt">Clp:</tt><b class="userinput"><tt>duals</tt></b><br>
37    <tt class="prompt">Clp:</tt><b class="userinput"><tt>solution solfile</tt></b><br>
38    <tt class="prompt">Clp:</tt><b class="userinput"><tt>quit</tt></b><br>
39    </p></div></blockquote></div><p>
40  </p><p>
41  The executable has some command-completion functionality as well as some inline
42  help.  Below is a table with some examples which summarize these capabilities.
43  </p><div class="table"><a name="id4763197"></a><p class="title"><b>Table 5.1. Command examples for the clp executable</b></p><table summary="Command examples for the clp executable" border="0"><colgroup><col><col></colgroup><thead><tr><th align="left">
44        Command    
45        </th><th align="left">
46        Result
47        </th></tr></thead><tbody><tr><td><span><b class="command">?</b></span></td><td>
48        Gives a list of all  commands
49        </td></tr><tr><td><span><b class="command">p?</b></span></td><td>
50        Gives a list of all commands which begin with &lt;p&gt;.
51        </td></tr><tr><td><span><b class="command">p??</b></span></td><td>
52        Gives a list of all commands which begin with &lt;p&gt;., with a short
53        explanation for each.
54        </td></tr><tr><td><span><b class="command">primals??</b></span></td><td>
55        If is this is enough to uniquely determine a command (in this example,
56        <span><b class="command">primalS</b></span>, for primal simplex), a long explanation
57        is given.
58        </td></tr></tbody></table></div><p>
59  In addition, matching a name without a ? will either execute the command or give
60  the value of the corresponding parameter.  So,
61  <span><b class="command">primalweight</b></span> will give the current value of  the
62  primalWeight parameter while <span><b class="command">primalw 1.0e7</b></span> will change
63  it to 1.0e7.
64  </p><p>
65  The executable is at a very early stage and comments will graciously
66  welcomed.
67  </p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch04.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="index.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch06.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 4. 
68More Samples
69 </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 6. 
70  Messages
71  </td></tr></table></div></body></html>
Note: See TracBrowser for help on using the repository browser.