1 | This is the Clp project. For information on the purpose of |
---|
2 | this project please visit https://github.com/coin-or/Clp |
---|
3 | |
---|
4 | The information below should be migrated into README.md or the User's Guide. |
---|
5 | |
---|
6 | Running clp gives you some hints. It can do a unit test (clp -unitTest) and solve netlib |
---|
7 | problems (-netlib or -netlibp using primal). It can also solve problems and set tolerances etc. Just do |
---|
8 | |
---|
9 | clp |
---|
10 | |
---|
11 | and then try ? or setting various stuff. |
---|
12 | |
---|
13 | clp filename reads file, does presolve and dual algorithm |
---|
14 | clp filename -primalsimplex would use primal instead |
---|
15 | |
---|
16 | On Linux clp can do file completion and line editing if it can find history, readline and termcap.. |
---|
17 | |
---|
18 | If you want to stress the code you can set various stuff e.g. dantzig pricing |
---|
19 | and then go into netlib testing. I do not guarantee that it will solve all |
---|
20 | netlib if you get too creative. For instance using presolve makes netlib |
---|
21 | solve faster - but pilot87 prefers a large infeasibility weight. So |
---|
22 | |
---|
23 | clp -presolve on -dualbound 1.0e10 -netlib |
---|
24 | |
---|
25 | works well. |
---|
26 | |
---|
27 | There are samples in ./Samples. To create an executable - testit do |
---|
28 | |
---|
29 | make DRIVER=minimum to use minimum.cpp |
---|
30 | |
---|
31 | or whichever driver you want. A list is in Makefile. |
---|
32 | |
---|
33 | Three useful samples are: |
---|
34 | |
---|
35 | minimum.cpp This is the simplest possible program to read an mps file. |
---|
36 | |
---|
37 | defaults.cpp. This does not do much more, but it does it in much more |
---|
38 | complicated way by specifically setting defaults so it does give more |
---|
39 | useful information. It also prints a solution in a format "similar" to that |
---|
40 | of MPSX. |
---|
41 | |
---|
42 | presolve.cpp. This is a good driver for larger problems. |
---|
43 | |
---|
44 | Other ones can get complicated so start simple and work your way up. |
---|