CPLEX

OPL keyword to specify MP.

Purpose

OPL keyword to specify that the model must be solved by the CPLEX engine.

context
Model files (.mod)

Syntax

using CPLEX;

Description

Use this keyword at the beginning of your model to specify that it must be solved by the CPLEX engine.

CPLEX is a powerful mathematical programming engine. It can solve linear, mixed-integer, quadratic, and quadratically constrained programming problems. See the CPLEX documentation and code samples for details.

To specify the CPLEX engine, start your model with the statement


using CPLEX;

CPLEX is the default solving engine. Therefore, it you do not specify any using statement, your model will be solved by the CPLEX engine.

The other engine supported by OPL is CP Optimizer.