Display variable and constraint names using OPL API

Technote (FAQ)


Question

How to display variable and constraint names using OPL API?

Answer

By default to ensure the performance of a model is not hindered the Variable and Constraint names are not displayed in deploy mode.

If you want to display the Variable and Constraint names using OPL API, then set the OPL Settings parameter setWithNames to true as shown below:

IloOplSettings settings = oplF.createOplSettings(errHandler);
settings.setWithNames(true);


Cross reference information
Segment Product Component Platform Version Edition
Business Integration IBM ILOG OPL-CPLEX Analyst Studio All Editions
Business Integration IBM ILOG OPL-CPLEX Developer Edition All Editions
Commerce IBM ILOG CPLEX Optimization Studio Area:Interfaces/Component Libraries (C++- Java- .NET) 6.1, 6.1.1, 6.2, 6.3 All Editions

Rate this page:

(0 users)Average rating

Document information


More support for:

IBM ILOG CPLEX Optimization Studio
Area:Interfaces/Component Libraries (C++- Java- .NET)

Software version:

12.2, 12.2.0.1, 12.3, 12.4

Operating system(s):

Linux, Windows

Software edition:

All Editions

Reference #:

1609518

Modified date:

2012-08-29

Translate my page

Machine Translation

Content navigation