source: html/trunk/Clp/userguide/ch04.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: 4.6 KB
1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 4. 
2More Samples
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="ch03s03.html" title="Message Handling"><link rel="next" href="ch05.html" title="Chapter 5. 
4  The CLP Executable
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 4. 
6More Samples
7</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch03s03.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="ch05.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="moreexamples"></a>Chapter 4. 
8More Samples
10CLP includes a number of <tt class="filename">.cpp</tt> sample files.  They can be
11found in the <tt class="filename">COIN/Clp/Samples</tt> directory.  Below is a table
12listing some of the sample files with a short description for each.
13</p><div class="table"><a name="id4761596"></a><p class="title"><b>Table 4.1. Contents of the Samples directory</b></p><table summary="Contents of the Samples directory" border="0"><colgroup><col><col></colgroup><thead><tr><th align="left" valign="bottom">
14        Filename       
15        </th><th align="left" valign="bottom">
16        Description
17        </th></tr></thead><tbody><tr><td align="left" valign="top"><tt class="filename">minimum.cpp</tt></td><td align="left" valign="top">
18        This is a CLP &lt;Hello, world&gt; program.  It reads an MPS file, and
19        solves the problem.
20        </td></tr><tr><td align="left" valign="top"><tt class="filename">defaults.cpp</tt></td><td align="left" valign="top">
21        This is one of the simpler drivers.  It sets tolerances to defaults and
22        is a useful place to find simple use of "sets" and
23        "gets".  It also prints out a full MPS-like solutions.
24        </td></tr><tr><td align="left" valign="top"><tt class="filename">driver.cpp</tt></td><td align="left" valign="top">
25        This is designed to be the file that people modify to get a useful
26        driver.  It does presolve.
27        </td></tr><tr><td align="left" valign="top"><tt class="filename">piece.cpp</tt></td><td align="left" valign="top">
28        This simple example takes a matrix read in by
29        <tt class="classname">CoinMpsIo</tt> (can be used to read in MPS files
30        without a solver), deletes every second column and solves the
31        resulting problem.
32        </td></tr><tr><td align="left" valign="top"><tt class="filename">network.cpp</tt></td><td align="left" valign="top">
33        This shows the use of non-standard matrices and how to load a problem
34        without the use of MPS files.
35        </td></tr><tr><td align="left" valign="top"><tt class="filename">decompose.cpp</tt></td><td align="left" valign="top">
36        This does full Dantzig-Wolfe decomposition.  It illustrates
37        the use of many models, adding columns, et cetera.
38        </td></tr><tr><td align="left" valign="top"><tt class="filename">sprint.cpp</tt></td><td align="left" valign="top">
39        This solves a long, thin problem by solving smaller subsets.  It is a
40        simplified version of work done by one of the authors on aircrew
41        scheduling problems.  It shows the use of two models and their
42        synchronization.  A more general version can be found in
43        <tt class="filename">COIN/Clp/ClpSolve.cpp</tt></td></tr><tr><td align="left" valign="top"><tt class="filename">sprint2.cpp</tt></td><td align="left" valign="top">
44        This is similar to <tt class="filename">sprint.cpp</tt> but is designed for
45        solving large problems with little choice.  The idea is that if
46        relatively few variables are fixed, presolve can greatly reduce the
47        problem size so that a series of solves can get close to the optimal
48        solution much faster than would a naïve solve of the full problem.
49        </td></tr></tbody></table></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch03s03.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="ch05.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Message Handling </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 5. 
50  The CLP Executable
51  </td></tr></table></div></body></html>
Note: See TracBrowser for help on using the repository browser.