source: html/ch08.html @ 2246

Last change on this file since 2246 was 561, checked in by ladanyi, 12 years ago

Cbc static pages moved

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 6.4 KB
1<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2<html xmlns=""><head><title>Chapter 8. 
3More Samples
4</title><meta name="generator" content="DocBook XSL Stylesheets V1.61.2"/><link rel="home" href="index.html" title="CBC User Guide"/><link rel="up" href="index.html" title="CBC User Guide"/><link rel="previous" href="ch07s02.html" title="Quadratic MIP"/><link rel="next" href="ch09.html" title="Chapter 9. &#10;  Messages&#10;  "/></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 8. 
5More Samples
6</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch07s02.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="ch09.html">Next</a></td></tr></table><hr/></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a id="moreexamples"/>Chapter 8. 
7More Samples
8</h2></div></div><div/></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><a href="ch08.html#id3002467">CBC's Samples Directory</a></dt></dl></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="id3002467"/>CBC's Samples Directory</h2></div></div><div/></div><p>
9The CBC distribution includes a number of <tt class="filename">.cpp</tt> sample files.
10Users are encouraged to use them as starting points for their own CBC projects.
11The files can be found in the <tt class="filename">COIN/Cbc/Samples/</tt> directory.
12For the latest information on compiling and running these samples, please see
13the file <tt class="filename">COIN/Cbc/Samples/INSTALL</tt>.  Most of them can be built
14by </p><pre class="programlisting">make DRIVER=name</pre><p> which produces an executable <tt class="filename">testit</tt>.  Below is a list of
15some of the most useful sample files with a short description for each file.
16</p><div class="table"><a id="id3003424"/><p class="title"><b>Table 8.1. Basic Samples</b></p><table summary="Basic Samples" border="0"><colgroup><col/><col/></colgroup><thead><tr><th align="left" valign="bottom">
17        Source file       
18        </th><th align="left" valign="bottom">
19        Description
20        </th></tr></thead><tbody><tr><td align="left" valign="top"><a href="" target="_top"><tt class="filename">minimum.cpp</tt></a></td><td align="left" valign="top">
21        This is a CBC "Hello, world" program.  It reads a problem
22        in MPS file format, and solves the problem using simple branch-and-bound.
23        </td></tr><tr><td align="left" valign="top"><a href="" target="_top"><tt class="filename">sample2.cpp</tt></a></td><td align="left" valign="top">
24        This is designed to be a file that a user could modify to get a useful
25        driver program for his or her project.  In particular, it demonstrates
26        the use of CGL's  preprocess functionality.
27        It uses <tt class="function">CbcBranchUser.cpp</tt>,
28        <tt class="function">CbcCompareUser.cpp</tt> and
29        <tt class="function">CbcHeuristicUser.cpp</tt> 
30        with corresponding <tt class="function">*.hpp</tt> files.
31        </td></tr></tbody></table></div><div class="table"><a id="id3003598"/><p class="title"><b>Table 8.2. Advanced Samples</b></p><table summary="Advanced Samples" border="0"><colgroup><col/><col/></colgroup><thead><tr><th align="left" valign="bottom">
32        Source file       
33        </th><th align="left" valign="bottom">
34        Description
35        </th></tr></thead><tbody><tr><td align="left" valign="top"><a href="" target="_top"><tt class="filename">crew.cpp</tt></a></td><td align="left" valign="top">
36        This sample shows the use of advanced branching and a use of priorities.
37        It uses <tt class="function">CbcCompareUser.cpp</tt>
38        with corresponding <tt class="function">*.hpp</tt> files.
39        </td></tr><tr><td align="left" valign="top"><a href="" target="_top"><tt class="filename">longthin.cpp</tt></a></td><td align="left" valign="top">
40        This sample shows the advanced use of a solver.  It also has coding for
41        a greedy heuristic.
42        The solver is given in <tt class="function">CbcSolver2.hpp</tt> and
43        <tt class="function">CbcSolver2.cpp</tt>.
44        The heuristic is given in <tt class="function">CbcHeuristicGreedy.hpp</tt> and
45        <tt class="function">CbcHeuristicGreedy.cpp</tt>.
46        It uses <tt class="function">CbcBranchUser.cpp</tt> and
47        <tt class="function">CbcCompareUser.cpp</tt>
48        with corresponding <tt class="function">*.hpp</tt> files.
49        </td></tr><tr><td align="left" valign="top"><a href="" target="_top"><tt class="filename">qmip.cpp</tt></a></td><td align="left" valign="top">
50        This solves a quadratic MIP.  It is to show advanced use of a solver.
51        The solver is given in <tt class="function">ClpQuadInterface.hpp</tt> and
52        <tt class="function">ClpQuadInterface.cpp</tt>.
53        It uses <tt class="function">CbcBranchUser.cpp</tt> and
54        <tt class="function">CbcCompareUser.cpp</tt>
55        with corresponding <tt class="function">*.hpp</tt> files.
56        </td></tr><tr><td align="left" valign="top"><a href="" target="_top"><tt class="filename">sos.cpp</tt></a></td><td align="left" valign="top">
57        This artificially creates a Special Ordered Set problem.
58        </td></tr><tr><td align="left" valign="top"><a href="" target="_top"><tt class="filename">lotsize.cpp</tt></a></td><td align="left" valign="top">
59        This artificially creates a Lot Sizing problem.
60        </td></tr></tbody></table></div></div></div><div class="navfooter"><hr/><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch07s02.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="ch09.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Quadratic MIP </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 9. 
61  Messages
62  </td></tr></table></div></body></html>
Note: See TracBrowser for help on using the repository browser.