source: html/userguide/ch05s03.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: 6.3 KB
Line 
1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>A Sample Session</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="ch05.html" title="Chapter 5. 
2  The CLP Executable
3  "><link rel="prev" href="ch05s02.html" title="
4  Online Help and Basic Usage
5  "><link rel="next" href="ch06.html" title="Chapter 6. 
6  Messages
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">A Sample Session</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch05s02.html">Prev</a> </td><th width="60%" align="center">Chapter 5. 
8  The CLP Executable
9  </th><td width="20%" align="right"> <a accesskey="n" href="ch06.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="id4776775"></a>A Sample Session</h2></div></div></div><p>
10  Below is a sample CLP executable prompt-mode session.  A small problem is
11  loaded and solved under various conditions with the primal and dual
12  simplex methods.  Note the use of the <span><b class="command">allslack</b></span> command; it
13  sets the basis to all slacks and resets the solution.
14  </p><p>
15    </p><pre class="screen">
16    <tt class="prompt">$</tt><span><b class="command">clp</b></span>
17    Coin LP version 0.99.9, build Sep 14 2004
18    Clp takes input from arguments ( - switches to stdin)
19    Enter ? for list of commands or help
20    <tt class="prompt">Clp:</tt><b class="userinput"><tt><span><b class="command">import</b></span><tt class="filename">../Mps/Sample/p0033.mps</tt></tt></b>
21    At line 15 NAME          P0033
22    At line 16 ROWS
23    At line 34 COLUMNS
24    At line 109 RHS
25    At line 118 BOUNDS
26    At line 152 ENDATA
27    Problem P0033 has 16 rows, 33 columns and 98 elements
28    Model was imported from ./../Mps/Sample/p0033.mps in 0 seconds
29    <tt class="prompt">Clp:</tt><b class="userinput"><tt><span><b class="command">primals</b></span></tt></b>
30    Presolve 15 (-1) rows, 32 (-1) columns and 97 (-1) elements
31    0  Obj 0 Primal inf 27.2175 (10) Dual inf 6.42094e+11 (32)
32    32  Obj 2520.57
33    Optimal - objective value 2520.57
34    After Postsolve, objective 2520.57, infeasibilities - dual 0 (0), primal 0 (0)
35    Optimal objective 2520.571739 - 32 iterations time 0.012, Presolve 0.01
36    <tt class="prompt">Clp:</tt><b class="userinput"><tt><span><b class="command">max</b></span></tt></b>
37    <tt class="prompt">Clp:</tt><b class="userinput"><tt><span><b class="command">primals</b></span></tt></b>
38    Presolve 11 (-5) rows, 25 (-8) columns and 84 (-14) elements
39    0  Obj 4807.92 Dual inf 1700.71 (15)
40    End of values pass after 2 iterations
41    2  Obj 4921.7 Dual inf 580.637 (5)
42    9  Obj 5299.7
43    Optimal - objective value 5299.7
44    After Postsolve, objective 5299.7, infeasibilities - dual 643.608 (9), primal 27.0826 (10)
45    Presolved model was optimal, full model needs cleaning up
46    0  Obj 5299.7
47    0  Obj 5299.7
48    Optimal - objective value 5299.7
49    Optimal objective 5299.698868 - 9 iterations time 0.022, Presolve 0.02
50    <tt class="prompt">Clp:</tt><b class="userinput"><tt><span><b class="command">allslack</b></span></tt></b>
51    <tt class="prompt">Clp:</tt><b class="userinput"><tt><span><b class="command">duals</b></span></tt></b>
52    Presolve 11 (-5) rows, 25 (-8) columns and 84 (-14) elements
53    0  Obj 2752 Primal inf 24.4867 (6) Dual inf 4280.55 (25)
54    8  Obj 5299.7
55    Optimal - objective value 5299.7
56    After Postsolve, objective 5299.7, infeasibilities - dual 704.58 (8), primal 27.0792 (10)
57    Presolved model was optimal, full model needs cleaning up
58    0  Obj 5299.7
59    0  Obj 5299.7
60    Optimal - objective value 5299.7
61    Optimal objective 5299.698868 - 8 iterations time 0.032, Presolve 0.01
62    <tt class="prompt">Clp:</tt><b class="userinput"><tt><span><b class="command">min</b></span></tt></b>
63    <tt class="prompt">Clp:</tt><b class="userinput"><tt><span><b class="command">duals</b></span></tt></b>
64    Presolve 15 (-1) rows, 32 (-1) columns and 97 (-1) elements
65    0  Obj 5299.7 Dual inf 4632.26 (28)
66    16  Obj 2520.57
67    Optimal - objective value 2520.57
68    After Postsolve, objective 2520.57, infeasibilities - dual 2052.5 (13), primal 27.1143 (10)
69    Presolved model was optimal, full model needs cleaning up
70    0  Obj 2520.57
71    0  Obj 2520.57
72    Optimal - objective value 2520.57
73    Optimal objective 2520.571739 - 16 iterations time 0.012, Presolve 0.01
74    <tt class="prompt">Clp:</tt><b class="userinput"><tt><span><b class="command">allslack</b></span></tt></b>
75    <tt class="prompt">Clp:</tt><b class="userinput"><tt><span><b class="command">presolve off</b></span></tt></b>
76    <tt class="prompt">Clp:</tt><b class="userinput"><tt><span><b class="command">primals</b></span></tt></b>
77    0  Obj 0 Primal inf 27.2175 (10) Dual inf 6.39167e+11 (32)
78    32  Obj 2520.57
79    Optimal - objective value 2520.57
80    Optimal objective 2520.571739 - 32 iterations time 0.002
81    <tt class="prompt">Clp:</tt><b class="userinput"><tt><span><b class="command">allslack</b></span></tt></b>
82    <tt class="prompt">Clp:</tt><b class="userinput"><tt><span><b class="command">maxIt</b></span> 10</tt></b>
83    maxIterations was changed from 99999999 to 10
84    <tt class="prompt">Clp:</tt><b class="userinput"><tt><span><b class="command">primals</b></span></tt></b>
85    0  Obj 0 Primal inf 27.2175 (10) Dual inf 6.39167e+11 (32)
86    Stopped - objective value 4.24664e+10
87    Stopped objective 4.246637759e+10 - 10 iterations time 0.002
88    <tt class="prompt">Clp:</tt><b class="userinput"><tt><span><b class="command">quit</b></span></tt></b>
89    </pre><p>
90  </p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch05s02.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch05.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch06.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">
91  Online Help and Basic Usage
92   </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 6. 
93  Messages
94  </td></tr></table></div></body></html>
Note: See TracBrowser for help on using the repository browser.