File: moresamples.xml

package info (click to toggle)
coinor-cbc 2.9.9+repack1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 7,848 kB
  • ctags: 5,787
  • sloc: cpp: 104,337; sh: 8,921; xml: 2,950; makefile: 520; ansic: 491; awk: 197
file content (131 lines) | stat: -rw-r--r-- 4,215 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<?xml version="1.0" encoding="ISO-8859-1"?>
<chapter id="moreexamples">
<title>
More Samples
</title>
<section >
<title>CBC's Samples Directory</title>
<para>
The CBC distribution includes a number of <filename>.cpp</filename> sample files.
Users are encouraged to use them as starting points for their own CBC projects.
The files can be found in the <filename>&cbcsamplesdir;</filename> directory.
For the latest information on compiling and running these samples, please see
the file <filename>&cbcsamplesdir;INSTALL</filename>.  Most of them can be built
by <programlisting>make DRIVER=name</programlisting> which produces an executable <filename>testit</filename>.  Below is a list of
some of the most useful sample files with a short description for each file.
</para>
<table frame="none">
  <title>Basic Samples</title>
  <tgroup cols="2">
    <thead>
      <row>
        <entry align="left" valign="bottom">
	Source file&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	</entry>
        <entry align="left" valign="bottom">
	Description
	</entry>
      </row>
    </thead>
    <tbody>
      <row>
        <entry align="left" valign="top">
	&minimumcpp;
	</entry>
        <entry align="left" valign="top">
	This is a CBC &quot;Hello, world&quot; program.  It reads a problem
	in MPS file format, and solves the problem using simple branch-and-bound.
	</entry>
      </row>
      <row>
        <entry align="left" valign="top">
	&sample2cpp;
	</entry>
        <entry align="left" valign="top">
	This is designed to be a file that a user could modify to get a useful
	driver program for his or her project.  In particular, it demonstrates
	the use of CGL's  preprocess functionality.
        It uses <function>CbcBranchUser.cpp</function>,
        <function>CbcCompareUser.cpp</function> and
        <function>CbcHeuristicUser.cpp</function> 
        with corresponding <function>*.hpp</function> files.
	</entry>
      </row>
    </tbody>
  </tgroup>
</table>
<table frame="none">
  <title>Advanced Samples</title>
  <tgroup cols="2">
    <thead>
      <row>
        <entry align="left" valign="bottom">
	Source file&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	</entry>
        <entry align="left" valign="bottom">
	Description
	</entry>
      </row>
    </thead>
    <tbody>
      <row>
        <entry align="left" valign="top">
	&crewcpp;
	</entry>
        <entry align="left" valign="top">
	This sample shows the use of advanced branching and a use of priorities.
        It uses <function>CbcCompareUser.cpp</function>
        with corresponding <function>*.hpp</function> files.
	</entry>
      </row>
      <row>
        <entry align="left" valign="top">
	&longthincpp;
	</entry>
        <entry align="left" valign="top">
	This sample shows the advanced use of a solver.  It also has coding for
	a greedy heuristic.
        The solver is given in <function>CbcSolver2.hpp</function> and
        <function>CbcSolver2.cpp</function>.
        The heuristic is given in <function>CbcHeuristicGreedy.hpp</function> and
        <function>CbcHeuristicGreedy.cpp</function>.
        It uses <function>CbcBranchUser.cpp</function> and
        <function>CbcCompareUser.cpp</function>
        with corresponding <function>*.hpp</function> files.
	</entry>
      </row>
      <row>
        <entry align="left" valign="top">
	&qmipcpp;
	</entry>
        <entry align="left" valign="top">
	This solves a quadratic MIP.  It is to show advanced use of a solver.
        The solver is given in <function>ClpQuadInterface.hpp</function> and
        <function>ClpQuadInterface.cpp</function>.
        It uses <function>CbcBranchUser.cpp</function> and
        <function>CbcCompareUser.cpp</function>
        with corresponding <function>*.hpp</function> files.
	</entry>
      </row>
      <row>
        <entry align="left" valign="top">
	&soscpp;
	</entry>
        <entry align="left" valign="top">
	This artificially creates a Special Ordered Set problem.
	</entry>
      </row>
      <row>
        <entry align="left" valign="top">
	&lotsizecpp;
	</entry>
        <entry align="left" valign="top">
	This artificially creates a Lot Sizing problem.
	</entry>
      </row>
    </tbody>
  </tgroup>
</table>

</section>
</chapter>