Skip to content
Snippets Groups Projects
Commit 74c4b8f2 authored by Radim Sojka's avatar Radim Sojka
Browse files

Some corrections of Clp.md

parent 77bcfed1
No related branches found
No related tags found
7 merge requests!368Update prace.md to document the change from qprace to qprod as the default...,!367Update prace.md to document the change from qprace to qprod as the default...,!366Update prace.md to document the change from qprace to qprod as the default...,!323extended-acls-storage-section,!196Master,!163Clp module,!162Clp module
# Clp # Clp
## Introduction ## Introduction
The Clp (Coin-or linear programming) is an open-source linear programming solver written in C++. It is primarily meant to be used as a callable library, but a basic, stand-alone executable version is also available. The library Clp (Coin-or linear programming) is an open-source linear programming solver written in C++. It is primarily meant to be used as a callable library, but a basic, stand-alone executable version is also available.
The Clp (https://projects.coin-or.org/Clp) is a part of COIN-OR (The Computational Infrastracture for Operations Research) project (https://www.coin-or.org/). Clp (https://projects.coin-or.org/Clp) is a part of the COIN-OR (The Computational Infrastracture for Operations Research) project (https://www.coin-or.org/).
## Modules ## Modules
The Clp, version 1.16.10 is available on Salomon via module Clp: Clp, version 1.16.10 is available on Salomon via module Clp:
```sh ```sh
$ ml Clp $ ml Clp
``` ```
The module sets up environment variables, required for linking and running applications using Clp. This particular command loads the default module, which is Clp/1.16.10-intel-2017a. The module use intel compiler. The module sets up environment variables required for linking and running applications using Clp. This particular command loads the default module Clp/1.16.10-intel-2017a, Intel module intel/2017a and other related modules.
## Compiling and linking ## Compiling and linking
!!! note !!! note
...@@ -24,7 +24,7 @@ $ icc myprog.c -o myprog.x -Wl,-rpath=$LIBRARY_PATH -lClp ...@@ -24,7 +24,7 @@ $ icc myprog.c -o myprog.x -Wl,-rpath=$LIBRARY_PATH -lClp
``` ```
## Example ## Example
Following is an example of Clp enabled application. The library solve linear programming problem loaded from file. An example of Clp enabled application follows. In this example, the library solves linear programming problem loaded from file.
```cpp ```cpp
#include "coin/ClpSimplex.hpp" #include "coin/ClpSimplex.hpp"
...@@ -49,4 +49,4 @@ int main (int argc, const char *argv[]) ...@@ -49,4 +49,4 @@ int main (int argc, const char *argv[])
ml Clp ml Clp
icc lp.c -o lp.x -Wl,-rpath=$LIBRARY_PATH -lClp icc lp.c -o lp.x -Wl,-rpath=$LIBRARY_PATH -lClp
``` ```
In this example, the lp.c code is compiled using the Intel compiler and link it to the Clp. To run the code, the Intel module have to be loaded. In this example, the lp.c code is compiled using the Intel compiler and linked with Clp. To run the code, the Intel module has to be loaded.
\ No newline at end of file \ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment