CMPL (<Coliop|Coin> Mathematical Programming Language) is a mathematical programming language and a system for mathematical programming and optimisation of linear optimisation problems. The CMPL syntax is similar in formulation to the original mathematical model but also includes syntactic elements from modern programming languages. CMPL is intended to combine the clarity of mathematical models with the flexibility of programming languages. CMPL executes HiGHS, SCIP, CBC, GLPK, Gurobi or CPLEX directly to solve the generated model instance. The CMPL package contains HiGHS as a standard solver as well as SCIP. Because it is also possible to transform the mathematical problem into MPS or Free-MPS, alternative solvers can be used. CMPL is an open-source project licensed under GPL. It is written in C++ and is available for most of the relevant operating systems (Windows, OS X and Linux).
The CMPL distribution contains Coliop which is CMPL’s IDE (Integrated Development Environment). Coliop is an open-source project licensed under GPL. It is written in C++ and is as an integral part of the CMPL distribution. The CMPL package also contains pyCMPL, jCMPL and CMPLServer.
pyCMPL is the CMPL application programming interface (API) for Python and an interactive shell and jCMPL is CMPL's Java API. The main idea of this APIs is to define sets and parameters within the user application, to start and control the solving process and to read the solution(s) into the application if the problem is feasible. All variables, objective functions and constraints are defined in CMPL. These functionalities can be used with a local CMPL installation or a CMPLServer.
CMPLServer is an XML-RPC-based web service for distributed and grid optimisation that can be used with CMPL, pyCMPL and jCMPL. It is reasonable to solve large models remotely on the CMPLServer that is installed on a high performance system. CMPL provides four XML-based file formats for the communication between a CMPLServer and its clients. (CmplInstance, CmplSolutions, CmplMessages, CmplInfo).
pyCMPL, jCMPL and CMPLServer are licensed under LGPLv3.
CMPL, Coliop, pyCMPL, jCMPL and CMPLServer are COIN-OR projects initiated by the Technical University of Applied Sciences Wildau.
The executable files for Windows, macOs and Linux, examples and the manual can be found under the following link: http://coliop.org
An installation is not required after unpacking the ZIP or tar.gz file. The CMPL package works out of the box in any folder.
To use CMPL on macOS the following installation steps are necessary:
- Download CMPL from http://www.coliop.org
- Unzip CMPL package and copy (or move) the Cmpl2 folder to
/Applications
- Open Terminal
The easiest way to open Terminal is to press
Cmd+Space
to open Spotlight Search. Afterward type typeTerminal
in the Spotlight input field. Simply select the Terminal entry in the search result list to open Terminal. - Run Cmpl setup script in Terminal (just copy and paste the following command and press enter)
/Applications/Cmpl2/cmpl_setup
To start CmplShell, the link cmplShell in/Applications/Cmpl2
have to be double-clicked. In addition a user can do so in Coliop (Menu Actions -> Open CmplShell). To startcmpl
on the command line please use it inside CmplShell. Ifcmpl.opt
orcmplServer.opt
need to be edited, just open them via the links in the/Applications/Cmpl2/opt
subfolder.
The source code is available on Github:
- [Cmpl official realeases] (https://github.com/coin-or/Cmpl)
- [Cmpl working git] (https://github.com/MikeSteglich/Cmpl2)
- [Coliop] (https://github.com/MikeSteglich/Coliop)
- [pyCmpl] (https://github.com/MikeSteglich/pyCmpl3)
- [jCmpl] (https://github.com/MikeSteglich/jCmpl)
Please use the GitHub functionalities to post issues and bugs at https://github.com/coin-or/Cmpl/issues or for general discussions at https://github.com/coin-or/Cmpl/discussions.
Thomas Schleiff - Halle(Saale), Germany
Mike Steglich - Technical University of Applied Sciences Wildau, Germany
Mike Steglich - Technical University of Applied Sciences Wildau, Germany
Mike Steglich - Technical University of Applied Sciences Wildau, Germany
Bernhard Knie - formerly Technical University of Applied Sciences Wildau, Germany