-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathINSTALL
executable file
·53 lines (39 loc) · 1.7 KB
/
INSTALL
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
===============================================================================
Basic Installation Instructions
===============================================================================
Run the following command in COLA directory.
./get_dependencies.sh && compile.sh
get_dependencies.sh will download Osi, CoinUtils, OsiConic and Clp. compile.sh
will compile dependencies and Cola and it will install dependency libraries and
Cola library to COLA/build/lib. Header files will be installed to
COLA/build/include/coin. Pkg-config .pc files will be installed to
COLA/build/lib/pkgconfig.
Then you can run cola on mps files using the following command.
./build/bin/cola ex.mps
===============================================================================
Advanced Installation Instructions
===============================================================================
Dependencies:
You should make sure that the following libraries can be accessed through pkg-config;
osi-clp, osi, coinutils.
First you must use autotools to create configure script. You can do this by
running 'autoreconf --install'
Then, configure, make and 'make install' steps should work. We install to the current
directory by default. You can install to specific directories using --prefix
option of configure.
Create configure script:
autoreconf --install
Install to ./build:
installs binary to ./build/bin library to ./build/lib and header files to
./build/include
mkdir build
cd build
../configure
make
make install
Install to some-path:
../configure --prefix='some-path'
make
make install
You can go to test and run solve.sh to run cola on problems in Data/random/
directory. You may need to edit solve.sh depending on where you installed cola.