The material presented here documents (or more precisely points to the documentation of) the native C API functions. It does not contain discussions of strategies for solving optimization problems, or suggestions on how to develop an application using Library functions.
Table of contents:
The Optimization Library native C API, as its name implies, provides a native C user interface to the latest version (V3) of the Library. This is accomplished by providing a full complement of support functions, described here, and an additional include file. A struct, or class, called EKKModel contains all the elements of a mathematical programming model. An instantiation of EKKModel can be populated by an I/O function, named ekk_importModel, that reads data from a file, or from stdin, in standard MPS format, or by using the matrix manipulation functions. As many models as needed may be defined after the OSL context struct, called EKKContext, has been instantiated. The new include file is called ekk_c_api.h (in most cases ekkc.h will not be needed). This file contains function prototypes for all the C API functions, and some useful comments from the principal developers.
Solvers: | ||
LP (Simplex based): | primal, dual, or either | |
LP (Interior point based): | barrier, regularized barrier, and | crossover to a simplex solution |
MIP: | branch and bound | |
Network: | primal network simplex | dual network simplex |
QP: | quadratic simplex | quadratic barrier |
Solver related functions: | ||
setMaximize | setMinimize | setRmaxmin |
setCompressOff | setCompressOn | |
Variable type | Get functions | Set functions |