source: html/userguide/ch04s02.html @ 2182

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

Temporary version, trying to fix problems in server change, real release to follow

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 5.8 KB
Line 
1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Common CLP Tasks in the Samples</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="ch04.html" title="Chapter 4. 
2More Samples
3"><link rel="prev" href="ch04.html" title="Chapter 4. 
4More Samples
5"><link rel="next" href="ch05.html" title="Chapter 5. 
6  The CLP Executable
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">Common CLP Tasks in the Samples</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch04.html">Prev</a> </td><th width="60%" align="center">Chapter 4. 
8More Samples
9</th><td width="20%" align="right"> <a accesskey="n" href="ch05.html">Next</a></td></tr></table><hr></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id4774239"></a>Common CLP Tasks in the Samples</h2></div></div></div><p>
10Below is a listing of a number of common CLP tasks, such as loading a problem
11from an MPS file, matched with a list of each Sample file which illustrates the
12performance of a given task.
13</p><div class="table"><a name="id4774251"></a><p class="title"><b>Table 4.4. Contents of the Samples directory</b></p><table summary="Contents of the Samples directory" border="0"><colgroup><col><col><col></colgroup><thead><tr><th align="left" valign="bottom">
14        CLP Task(s)
15        </th><th>
16        Method(s)
17        </th><th align="left" valign="bottom">
18        Sample(s)
19        </th></tr></thead><tbody><tr><td>
20        Read problem from MPS file
21        </td><td>
22        <div class="literallayout"><p><tt class="function">int readMps(const char *filename)</tt></p></div>
23        </td><td>
24        <a href="http://www-124.ibm.com/developerworks/opensource/cvs/coin/COIN/Clp/Samples/defaults.cpp" target="_top"><tt class="filename">defaults.cpp</tt></a>, <a href="http://www-124.ibm.com/developerworks/opensource/cvs/coin/COIN/Clp/Samples/driver.cpp" target="_top"><tt class="filename">driver.cpp</tt></a>, <a href="http://www-124.ibm.com/developerworks/opensource/cvs/coin/COIN/Clp/Samples/minimum.cpp" target="_top"><tt class="filename">minimum.cpp</tt></a>
25        </td></tr><tr><td>
26        Solve by primal method
27        </td><td>
28        <div class="literallayout"><p><tt class="function">int primal()</tt></p></div>
29        </td><td>
30        <a href="http://www-124.ibm.com/developerworks/opensource/cvs/coin/COIN/Clp/Samples/driver.cpp" target="_top"><tt class="filename">driver.cpp</tt></a>
31        </td></tr><tr><td>
32        Choose pivot rule
33        </td><td>
34        <div class="literallayout"><p><tt class="function">void setPrimalColumnPivotAlgorithm(ClpPrimalColumnPivot &amp;choice)</tt><br>
35        <tt class="function">void setDualRowPivotAlgorithm(ClpDualRowPivot &amp;choice)</tt></p></div>
36        </td><td>
37        <a href="http://www-124.ibm.com/developerworks/opensource/cvs/coin/COIN/Clp/Samples/defaults.cpp" target="_top"><tt class="filename">defaults.cpp</tt></a>
38        </td></tr><tr><td>
39        Get/set infeasibility cost
40        </td><td>
41        <div class="literallayout"><p><tt class="function">void setInfeasibilityCost(double value)</tt><br>
42        <tt class="function">void setInfeasibilityCost(double value)</tt></p></div>
43        </td><td>
44        <a href="http://www-124.ibm.com/developerworks/opensource/cvs/coin/COIN/Clp/Samples/defaults.cpp" target="_top"><tt class="filename">defaults.cpp</tt></a>
45        </td></tr><tr><td>
46        Get string/"double"/integer information
47        </td><td>
48        <div class="literallayout"><p><tt class="function">bool getStrParam(ClpStrParam key, std::string &amp;value) const</tt><br>
49        <tt class="function">bool getDblParam(ClpDblParam key, double &amp;value) const</tt><br>
50        <tt class="function">bool  getIntParam (ClpIntParam key, int &amp;value) const </tt></p></div>
51        </td><td>
52        <a href="http://www-124.ibm.com/developerworks/opensource/cvs/coin/COIN/Clp/Samples/defaults.cpp" target="_top"><tt class="filename">defaults.cpp</tt></a>
53        </td></tr><tr><td>
54        Set maximum number of iterations
55        </td><td>
56        <div class="literallayout"><p><tt class="function">void setMaximumIterations(int value)</tt></p></div>
57        </td><td>
58        <a href="http://www-124.ibm.com/developerworks/opensource/cvs/coin/COIN/Clp/Samples/defaults.cpp" target="_top"><tt class="filename">defaults.cpp</tt></a>
59        </td></tr><tr><td>
60        Check solution status
61        </td><td>
62        <div class="literallayout"><p><tt class="function">int status() const</tt><br>
63        <tt class="function">bool isAbandoned() const</tt><br>
64        <tt class="function">bool isProvenOptimal() const</tt><br>
65        <tt class="function">bool isProvenPrimalInfeasible() const</tt><br>
66        <tt class="function">bool isProvenDualInfeasible() const</tt><br>
67        <tt class="function">bool isPrimalObjectiveLimitReached() const</tt><br>
68        <tt class="function">bool isDualObjectiveLimitReached() const</tt><br>
69        <tt class="function">bool isIterationLimitReached() const</tt><br>
70        <tt class="function"></tt><br>
71        <tt class="function"></tt></p></div>
72        </td><td>
73       
74        </td></tr><tr><td>
75       
76        </td><td>
77       
78        </td><td>
79       
80        </td></tr><tr><td>
81       
82        </td><td>
83       
84        </td><td>
85       
86        </td></tr><tr><td>
87       
88        </td><td>
89       
90        </td><td>
91       
92        </td></tr><tr><td>
93       
94        </td><td>
95       
96        </td><td>
97       
98        </td></tr><tr><td>
99       
100        </td><td>
101       
102        </td><td>
103       
104        </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="ch04.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch04.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">Chapter 4. 
105More Samples
106 </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 5. 
107  The CLP Executable
108  </td></tr></table></div></body></html>
Note: See TracBrowser for help on using the repository browser.