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.66.1"><link rel="start" href="index.html" title="CLP User Guide"><link rel="up" href="index.html" title="CLP User Guide"><link rel="prev" href="ch04s02.html" title="Common CLP Tasks in the Samples"><link rel="next" href="ch05s02.html" title=" |
---|
4 | Online Help and Basic Usage |
---|
5 | "></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. |
---|
6 | The CLP Executable |
---|
7 | </th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch04s02.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="ch05s02.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. |
---|
8 | The CLP Executable |
---|
9 | </h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="ch05.html#id4776091">Quick Start</a></span></dt><dt><span class="section"><a href="ch05s02.html"> |
---|
10 | Online Help and Basic Usage |
---|
11 | </a></span></dt><dt><span class="section"><a href="ch05s03.html">A Sample Session</a></span></dt></dl></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id4776091"></a>Quick Start</h2></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 | The executable can be used to perform various unit tests, but can also be used |
---|
16 | as a standalone solver. As the executable has a very simple solution file format, |
---|
17 | the user may wish to modify <tt class="filename">COIN/Clp/Test/ClpMain.cpp</tt>, |
---|
18 | which contains the source of the executable (modifications could even be |
---|
19 | offered as a contribution to CLP). |
---|
20 | </p><p> |
---|
21 | The <tt class="filename">clp</tt> executable operates in command line mode or |
---|
22 | prompted mode. Entering <b class="userinput"><tt>clp</tt></b> will invoke the prompted |
---|
23 | mode, while <b class="userinput"><tt>clp <filename></tt></b> will import a problem |
---|
24 | in MPS format from <tt class="filename">filename</tt>, solve it using the dual |
---|
25 | simplex method and exit. The command |
---|
26 | <b class="userinput"><tt>clp <filename> -primalsimplex</tt></b> instructs the |
---|
27 | executable tp import a file and solve using the primal simplex method. An |
---|
28 | additional solitary dash ("<b class="userinput"><tt>-</tt></b>") starts the |
---|
29 | prompt mode once the execution of the initial command has been completed. The |
---|
30 | "<b class="userinput"><tt>-</tt></b>" is necessary as part of the command; |
---|
31 | invoking prompt mode as a separate command will result in the loss of problem |
---|
32 | information related to the initial command. So, the following sequences of commands |
---|
33 | are equivalent in the sense that both maximize a problem using the dual |
---|
34 | simplex method and write a solution to file: |
---|
35 | <tt class="filename">solfile</tt>: |
---|
36 | </p><div class="blockquote"><blockquote class="blockquote"><div class="literallayout"><p><br> |
---|
37 | <tt class="prompt">$</tt> <b class="userinput"><tt><span><b class="command">clp</b></span> <i class="replaceable"><tt>filename</tt></i> -maximize -dualsimplex -solution solfile</tt></b><br> |
---|
38 | </p></div></blockquote></div><p> |
---|
39 | </p><div class="blockquote"><blockquote class="blockquote"><div class="literallayout"><p><br> |
---|
40 | <tt class="prompt">$</tt> <b class="userinput"><tt><span><b class="command">clp</b></span> <i class="replaceable"><tt>filename</tt></i> -maximize -</tt></b><br> |
---|
41 | <tt class="prompt">Clp:</tt><b class="userinput"><tt><span><b class="command">duals</b></span></tt></b><br> |
---|
42 | <tt class="prompt">Clp:</tt><b class="userinput"><tt><span><b class="command">solution</b></span> solfile</tt></b><br> |
---|
43 | <tt class="prompt">Clp:</tt><b class="userinput"><tt><span><b class="command">quit</b></span></tt></b><br> |
---|
44 | </p></div></blockquote></div><p> |
---|
45 | </p><p> |
---|
46 | The executable is at a very early stage of development. Comments and |
---|
47 | suggestions would be appreciated. |
---|
48 | </p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch04s02.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="ch05s02.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Common CLP Tasks in the Samples </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> |
---|
49 | Online Help and Basic Usage |
---|
50 | </td></tr></table></div></body></html> |
---|