Optimization Programming Language
Optimization Programming Language (OPL) is an algebraic modeling language for mathematical optimization models, which makes the coding easier and shorter than with a general-purpose programming language. It is part of the CPLEX software package and therefore tailored for the IBM ILOG CPLEX and IBM ILOG CPLEX CP Optimizers. The original author of OPL is Pascal Van Hentenryck.
Optimization Programming Language (OPL) is an algebraic modeling language for mathematical optimization models, which makes the coding easier and shorter than with a general-purpose programming language. It is part of the CPLEX software package and therefore tailored for the IBM ILOG CPLEX and IBM ILOG CPLEX CP Optimizers. The original author of OPL is Pascal Van Hentenryck. // Knapsack capacity, provided externally in the data file int capacity = ...; // Item index set range Items = 1..5; // Item parameters: one value and one weight per item in Items int value[Items] = [6, 7, 3, 9, 6]; int weight[Items] = [11, 7, 9, 13, 12]; // Decision variable: // x[i] = 1 if item i is selected // x[i] = 0 otherwise dvar boolean x[Items]; // obj: maximize total value of selected items maximize obj: sum(i in Items) value[i] * x[i]; subject to { // total weight of selected items cannot exceed capacity sum(i in Items) weight[i] * x[i] The associated data (.dat) file is capacity = 10
References
No reference rows published for this article.
Cite this article
MLA
"Optimization Programming Language." encyclopegia.org, 2026, https://encyclopegia.org/wiki/optimization-programming-language. Accessed 24 November 2026.
Chicago
"Optimization Programming Language." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/optimization-programming-language.
APA
encyclopegia.org. (2026). Optimization Programming Language. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/optimization-programming-language
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON