source: trunk/README @ 349

Last change on this file since 349 was 349, checked in by forrest, 16 years ago

For JP

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 KB
Line 
1To build Clp see INSTALL file
2
3To use Clp you need the Clp and Coin libraries
4
5To make the unitTest and standalone executable do
6
7make unitTest in the Clp directory (or make in Clp/test).  This creates an executable clp.in Clp
8
9Running clp gives you some hints.  It can do a unit test (clp -unitTest) and solve netlib
10problems (-netlib or -netlibp using primal).  It can also solve problems and set tolerances etc.  Just do
11
12clp
13 
14and then try ? or setting various stuff.
15
16clp filename   reads file, does presolve and dual algorithm
17clp filename -primalsimplex would use primal instead
18
19On Linux clp can do file completion and line editing if it can find history, readline and termcap.. 
20
21If you want to stress the code you can set various stuff e.g. dantzig pricing
22 and then go into netlib testing.  I do not guarantee that it will solve all
23netlib if you get too creative.  For instance using presolve makes netlib
24solve faster - but pilot87 prefers a large infeasibility weight.  So
25
26clp -presolve on -dualbound 1.0e10 -netlib
27
28works well.
29
30There are samples in ./Samples.  To create an executable - testit do
31
32make DRIVER=minimum to use minimum.cpp
33
34or whichever driver you want.  A list is in Makefile.
35
36Three useful samples are:
37
38minimum.cpp  This is the simplest possible program to read an mps file.
39
40defaults.cpp.  This does not do much more, but it does it in much more
41complicated way by specifically setting defaults so it does give more
42useful information.  It also prints a solution in a format "similar" to that
43of MPSX.
44
45presolve.cpp.  This is a good driver for larger problems.
46
47Other ones can get complicated so start simple and work your way up.
Note: See TracBrowser for help on using the repository browser.